Neighbor subsystem of linux protocol stack (related process 3)

  
 

I have already analyzed before, after finding the route, it will call arp_bind_neighbour to bind a neighbor item int arp_bind_neighbour(struct dst_entry *dst){struct net_device *dev = dst->dev;struct neighbour *n = dst-> ;neighbour;if (dev == NULL)return -EINVAL;//If the neighbor does not exist if (n == NULL) {u32 nexthop = ((struct rtable*)dst)->rt_gateway;if (dev-> ;flags&(IFF_LOOPBACK

Copyright © Windows knowledge All Rights Reserved