aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/ipv6/ndisc.c27
1 files changed, 11 insertions, 16 deletions
diff --git a/net/ipv6/ndisc.c b/net/ipv6/ndisc.c
index cf43b6550f5..4c02e6ab96e 100644
--- a/net/ipv6/ndisc.c
+++ b/net/ipv6/ndisc.c
@@ -370,12 +370,12 @@ static void pndisc_destructor(struct pneigh_entry *n)
370 ipv6_dev_mc_dec(dev, &maddr); 370 ipv6_dev_mc_dec(dev, &maddr);
371} 371}
372 372
373struct sk_buff *ndisc_build_skb(struct net_device *dev, 373static struct sk_buff *ndisc_build_skb(struct net_device *dev,
374 const struct in6_addr *daddr, 374 const struct in6_addr *daddr,
375 const struct in6_addr *saddr, 375 const struct in6_addr *saddr,
376 struct icmp6hdr *icmp6h, 376 struct icmp6hdr *icmp6h,
377 const struct in6_addr *target, 377 const struct in6_addr *target,
378 int llinfo) 378 int llinfo)
379{ 379{
380 struct net *net = dev_net(dev); 380 struct net *net = dev_net(dev);
381 struct sock *sk = net->ipv6.ndisc_sk; 381 struct sock *sk = net->ipv6.ndisc_sk;
@@ -431,14 +431,11 @@ struct sk_buff *ndisc_build_skb(struct net_device *dev,
431 return skb; 431 return skb;
432} 432}
433 433
434EXPORT_SYMBOL(ndisc_build_skb); 434static void ndisc_send_skb(struct sk_buff *skb, struct net_device *dev,
435 435 struct neighbour *neigh,
436void ndisc_send_skb(struct sk_buff *skb, 436 const struct in6_addr *daddr,
437 struct net_device *dev, 437 const struct in6_addr *saddr,
438 struct neighbour *neigh, 438 struct icmp6hdr *icmp6h)
439 const struct in6_addr *daddr,
440 const struct in6_addr *saddr,
441 struct icmp6hdr *icmp6h)
442{ 439{
443 struct flowi6 fl6; 440 struct flowi6 fl6;
444 struct dst_entry *dst; 441 struct dst_entry *dst;
@@ -473,8 +470,6 @@ void ndisc_send_skb(struct sk_buff *skb,
473 rcu_read_unlock(); 470 rcu_read_unlock();
474} 471}
475 472
476EXPORT_SYMBOL(ndisc_send_skb);
477
478/* 473/*
479 * Send a Neighbour Discover packet 474 * Send a Neighbour Discover packet
480 */ 475 */