arp.c (e730c15519d09ea528b4d2f1103681fa5937c0e6) | arp.c (e9dc86534051b78e41e5b746cccc291b57a3a311) |
---|---|
1/* linux/net/ipv4/arp.c 2 * 3 * Version: $Id: arp.c,v 1.99 2001/08/30 22:55:42 davem Exp $ 4 * 5 * Copyright (C) 1994 by Florian La Roche 6 * 7 * This module implements the Address Resolution Protocol ARP (RFC 826), 8 * which is used to convert IP addresses (or in the future maybe other --- 1191 unchanged lines hidden (view full) --- 1200 rtnl_unlock(); 1201 return err; 1202} 1203 1204static int arp_netdev_event(struct notifier_block *this, unsigned long event, void *ptr) 1205{ 1206 struct net_device *dev = ptr; 1207 | 1/* linux/net/ipv4/arp.c 2 * 3 * Version: $Id: arp.c,v 1.99 2001/08/30 22:55:42 davem Exp $ 4 * 5 * Copyright (C) 1994 by Florian La Roche 6 * 7 * This module implements the Address Resolution Protocol ARP (RFC 826), 8 * which is used to convert IP addresses (or in the future maybe other --- 1191 unchanged lines hidden (view full) --- 1200 rtnl_unlock(); 1201 return err; 1202} 1203 1204static int arp_netdev_event(struct notifier_block *this, unsigned long event, void *ptr) 1205{ 1206 struct net_device *dev = ptr; 1207 |
1208 if (dev->nd_net != &init_net) 1209 return NOTIFY_DONE; 1210 |
|
1208 switch (event) { 1209 case NETDEV_CHANGEADDR: 1210 neigh_changeaddr(&arp_tbl, dev); 1211 rt_cache_flush(0); 1212 break; 1213 default: 1214 break; 1215 } --- 215 unchanged lines hidden --- | 1211 switch (event) { 1212 case NETDEV_CHANGEADDR: 1213 neigh_changeaddr(&arp_tbl, dev); 1214 rt_cache_flush(0); 1215 break; 1216 default: 1217 break; 1218 } --- 215 unchanged lines hidden --- |