rtnetlink.c (bc7ecbcbc2c0ff235382077b55de7896775afc16) | rtnetlink.c (d90a909e1f3e006a1d57fe11fd417173b6494701) |
---|---|
1/* 2 * INET An implementation of the TCP/IP protocol suite for the LINUX 3 * operating system. INET is implemented using the BSD Socket 4 * interface as the means of communication with the user level. 5 * 6 * Routing netlink socket interface: protocol independent part. 7 * 8 * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> --- 1350 unchanged lines hidden (view full) --- 1359static int rtnetlink_event(struct notifier_block *this, unsigned long event, void *ptr) 1360{ 1361 struct net_device *dev = ptr; 1362 1363 switch (event) { 1364 case NETDEV_UNREGISTER: 1365 rtmsg_ifinfo(RTM_DELLINK, dev, ~0U); 1366 break; | 1/* 2 * INET An implementation of the TCP/IP protocol suite for the LINUX 3 * operating system. INET is implemented using the BSD Socket 4 * interface as the means of communication with the user level. 5 * 6 * Routing netlink socket interface: protocol independent part. 7 * 8 * Authors: Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru> --- 1350 unchanged lines hidden (view full) --- 1359static int rtnetlink_event(struct notifier_block *this, unsigned long event, void *ptr) 1360{ 1361 struct net_device *dev = ptr; 1362 1363 switch (event) { 1364 case NETDEV_UNREGISTER: 1365 rtmsg_ifinfo(RTM_DELLINK, dev, ~0U); 1366 break; |
1367 case NETDEV_REGISTER: 1368 rtmsg_ifinfo(RTM_NEWLINK, dev, ~0U); 1369 break; | |
1370 case NETDEV_UP: 1371 case NETDEV_DOWN: 1372 rtmsg_ifinfo(RTM_NEWLINK, dev, IFF_UP|IFF_RUNNING); 1373 break; | 1367 case NETDEV_UP: 1368 case NETDEV_DOWN: 1369 rtmsg_ifinfo(RTM_NEWLINK, dev, IFF_UP|IFF_RUNNING); 1370 break; |
1371 case NETDEV_POST_INIT: 1372 case NETDEV_REGISTER: |
|
1374 case NETDEV_CHANGE: 1375 case NETDEV_GOING_DOWN: | 1373 case NETDEV_CHANGE: 1374 case NETDEV_GOING_DOWN: |
1375 case NETDEV_UNREGISTER_BATCH: |
|
1376 break; 1377 default: 1378 rtmsg_ifinfo(RTM_NEWLINK, dev, 0); 1379 break; 1380 } 1381 return NOTIFY_DONE; 1382} 1383 --- 54 unchanged lines hidden --- | 1376 break; 1377 default: 1378 rtmsg_ifinfo(RTM_NEWLINK, dev, 0); 1379 break; 1380 } 1381 return NOTIFY_DONE; 1382} 1383 --- 54 unchanged lines hidden --- |