aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/ndisc.c
diff options
context:
space:
mode:
authorYOSHIFUJI Hideaki / 吉藤英明 <yoshfuji@linux-ipv6.org>2013-01-17 21:00:24 -0500
committerDavid S. Miller <davem@davemloft.net>2013-01-18 14:41:13 -0500
commit12fd84f4383b15b0a12cfd50b7c527cd55d6f101 (patch)
treee8cf145bbc734d6012aae24c1dd2c8a0bca232f8 /net/ipv6/ndisc.c
parent4505f40a6f1a6a1bb8f8ef84a4a35263d64b5125 (diff)
ipv6: Remove unused neigh argument for icmp6_dst_alloc() and its callers.
Because of rt->n removal, we do not need neigh argument any more. Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/ndisc.c')
-rw-r--r--net/ipv6/ndisc.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/net/ipv6/ndisc.c b/net/ipv6/ndisc.c
index 5733cd27f4a3..429622d74705 100644
--- a/net/ipv6/ndisc.c
+++ b/net/ipv6/ndisc.c
@@ -432,7 +432,6 @@ static struct sk_buff *ndisc_build_skb(struct net_device *dev,
432} 432}
433 433
434static void ndisc_send_skb(struct sk_buff *skb, struct net_device *dev, 434static void ndisc_send_skb(struct sk_buff *skb, struct net_device *dev,
435 struct neighbour *neigh,
436 const struct in6_addr *daddr, 435 const struct in6_addr *daddr,
437 const struct in6_addr *saddr, 436 const struct in6_addr *saddr,
438 struct icmp6hdr *icmp6h) 437 struct icmp6hdr *icmp6h)
@@ -448,7 +447,7 @@ static void ndisc_send_skb(struct sk_buff *skb, struct net_device *dev,
448 type = icmp6h->icmp6_type; 447 type = icmp6h->icmp6_type;
449 448
450 icmpv6_flow_init(sk, &fl6, type, saddr, daddr, dev->ifindex); 449 icmpv6_flow_init(sk, &fl6, type, saddr, daddr, dev->ifindex);
451 dst = icmp6_dst_alloc(dev, neigh, &fl6); 450 dst = icmp6_dst_alloc(dev, &fl6);
452 if (IS_ERR(dst)) { 451 if (IS_ERR(dst)) {
453 kfree_skb(skb); 452 kfree_skb(skb);
454 return; 453 return;
@@ -474,7 +473,6 @@ static void ndisc_send_skb(struct sk_buff *skb, struct net_device *dev,
474 * Send a Neighbour Discover packet 473 * Send a Neighbour Discover packet
475 */ 474 */
476static void __ndisc_send(struct net_device *dev, 475static void __ndisc_send(struct net_device *dev,
477 struct neighbour *neigh,
478 const struct in6_addr *daddr, 476 const struct in6_addr *daddr,
479 const struct in6_addr *saddr, 477 const struct in6_addr *saddr,
480 struct icmp6hdr *icmp6h, const struct in6_addr *target, 478 struct icmp6hdr *icmp6h, const struct in6_addr *target,
@@ -486,7 +484,7 @@ static void __ndisc_send(struct net_device *dev,
486 if (!skb) 484 if (!skb)
487 return; 485 return;
488 486
489 ndisc_send_skb(skb, dev, neigh, daddr, saddr, icmp6h); 487 ndisc_send_skb(skb, dev, daddr, saddr, icmp6h);
490} 488}
491 489
492static void ndisc_send_na(struct net_device *dev, struct neighbour *neigh, 490static void ndisc_send_na(struct net_device *dev, struct neighbour *neigh,
@@ -521,8 +519,7 @@ static void ndisc_send_na(struct net_device *dev, struct neighbour *neigh,
521 icmp6h.icmp6_solicited = solicited; 519 icmp6h.icmp6_solicited = solicited;
522 icmp6h.icmp6_override = override; 520 icmp6h.icmp6_override = override;
523 521
524 __ndisc_send(dev, neigh, daddr, src_addr, 522 __ndisc_send(dev, daddr, src_addr, &icmp6h, solicited_addr,
525 &icmp6h, solicited_addr,
526 inc_opt ? ND_OPT_TARGET_LL_ADDR : 0); 523 inc_opt ? ND_OPT_TARGET_LL_ADDR : 0);
527} 524}
528 525
@@ -563,8 +560,7 @@ void ndisc_send_ns(struct net_device *dev, struct neighbour *neigh,
563 saddr = &addr_buf; 560 saddr = &addr_buf;
564 } 561 }
565 562
566 __ndisc_send(dev, neigh, daddr, saddr, 563 __ndisc_send(dev, daddr, saddr, &icmp6h, solicit,
567 &icmp6h, solicit,
568 !ipv6_addr_any(saddr) ? ND_OPT_SOURCE_LL_ADDR : 0); 564 !ipv6_addr_any(saddr) ? ND_OPT_SOURCE_LL_ADDR : 0);
569} 565}
570 566
@@ -598,8 +594,7 @@ void ndisc_send_rs(struct net_device *dev, const struct in6_addr *saddr,
598 } 594 }
599 } 595 }
600#endif 596#endif
601 __ndisc_send(dev, NULL, daddr, saddr, 597 __ndisc_send(dev, daddr, saddr, &icmp6h, NULL,
602 &icmp6h, NULL,
603 send_sllao ? ND_OPT_SOURCE_LL_ADDR : 0); 598 send_sllao ? ND_OPT_SOURCE_LL_ADDR : 0);
604} 599}
605 600