aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Hemminger <stephen@networkplumber.org>2013-12-28 14:07:18 -0500
committerDavid S. Miller <davem@davemloft.net>2013-12-28 17:02:46 -0500
commit7195cf72211d77108de8271a247ec2876ae60502 (patch)
tree006f2366bd01cc341850d34656d4abd341d08ab7
parentc9cb6b6ec18ca91d090178d3c6d1dde7428c791b (diff)
arp: make arp_invalidate static
Don't export arp_invalidate, only used in arp.c Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--include/net/arp.h1
-rw-r--r--net/ipv4/arp.c3
2 files changed, 1 insertions, 3 deletions
diff --git a/include/net/arp.h b/include/net/arp.h
index 7509d9da4e36..73c49864076b 100644
--- a/include/net/arp.h
+++ b/include/net/arp.h
@@ -62,6 +62,5 @@ struct sk_buff *arp_create(int type, int ptype, __be32 dest_ip,
62 const unsigned char *src_hw, 62 const unsigned char *src_hw,
63 const unsigned char *target_hw); 63 const unsigned char *target_hw);
64void arp_xmit(struct sk_buff *skb); 64void arp_xmit(struct sk_buff *skb);
65int arp_invalidate(struct net_device *dev, __be32 ip);
66 65
67#endif /* _ARP_H */ 66#endif /* _ARP_H */
diff --git a/net/ipv4/arp.c b/net/ipv4/arp.c
index b67cf805910e..5bf408b466b1 100644
--- a/net/ipv4/arp.c
+++ b/net/ipv4/arp.c
@@ -1112,7 +1112,7 @@ static int arp_req_get(struct arpreq *r, struct net_device *dev)
1112 return err; 1112 return err;
1113} 1113}
1114 1114
1115int arp_invalidate(struct net_device *dev, __be32 ip) 1115static int arp_invalidate(struct net_device *dev, __be32 ip)
1116{ 1116{
1117 struct neighbour *neigh = neigh_lookup(&arp_tbl, &ip, dev); 1117 struct neighbour *neigh = neigh_lookup(&arp_tbl, &ip, dev);
1118 int err = -ENXIO; 1118 int err = -ENXIO;
@@ -1127,7 +1127,6 @@ int arp_invalidate(struct net_device *dev, __be32 ip)
1127 1127
1128 return err; 1128 return err;
1129} 1129}
1130EXPORT_SYMBOL(arp_invalidate);
1131 1130
1132static int arp_req_delete_public(struct net *net, struct arpreq *r, 1131static int arp_req_delete_public(struct net *net, struct arpreq *r,
1133 struct net_device *dev) 1132 struct net_device *dev)