diff options
Diffstat (limited to 'net/ipv4/arp.c')
-rw-r--r-- | net/ipv4/arp.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/net/ipv4/arp.c b/net/ipv4/arp.c index 4412b57f6ff6..3e5545675ccf 100644 --- a/net/ipv4/arp.c +++ b/net/ipv4/arp.c | |||
@@ -517,30 +517,6 @@ EXPORT_SYMBOL(arp_find); | |||
517 | 517 | ||
518 | /* END OF OBSOLETE FUNCTIONS */ | 518 | /* END OF OBSOLETE FUNCTIONS */ |
519 | 519 | ||
520 | int arp_bind_neighbour(struct dst_entry *dst) | ||
521 | { | ||
522 | struct net_device *dev = dst->dev; | ||
523 | struct neighbour *n = dst->neighbour; | ||
524 | |||
525 | if (dev == NULL) | ||
526 | return -EINVAL; | ||
527 | if (n == NULL) { | ||
528 | __be32 nexthop = ((struct rtable *)dst)->rt_gateway; | ||
529 | if (dev->flags & (IFF_LOOPBACK | IFF_POINTOPOINT)) | ||
530 | nexthop = 0; | ||
531 | n = __neigh_lookup_errno( | ||
532 | #if defined(CONFIG_ATM_CLIP) || defined(CONFIG_ATM_CLIP_MODULE) | ||
533 | dev->type == ARPHRD_ATM ? | ||
534 | clip_tbl_hook : | ||
535 | #endif | ||
536 | &arp_tbl, &nexthop, dev); | ||
537 | if (IS_ERR(n)) | ||
538 | return PTR_ERR(n); | ||
539 | dst->neighbour = n; | ||
540 | } | ||
541 | return 0; | ||
542 | } | ||
543 | |||
544 | /* | 520 | /* |
545 | * Check if we can use proxy ARP for this path | 521 | * Check if we can use proxy ARP for this path |
546 | */ | 522 | */ |