rtnetlink.c (10de05afe01c12cedc42eb9ce05b111eed6c8210) | rtnetlink.c (a2835763e130c343ace5320c20d33c281e7097b7) |
---|---|
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> --- 1411 unchanged lines hidden (view full) --- 1420 rtnl_unlock(); 1421} 1422 1423static int rtnetlink_event(struct notifier_block *this, unsigned long event, void *ptr) 1424{ 1425 struct net_device *dev = ptr; 1426 1427 switch (event) { | 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> --- 1411 unchanged lines hidden (view full) --- 1420 rtnl_unlock(); 1421} 1422 1423static int rtnetlink_event(struct notifier_block *this, unsigned long event, void *ptr) 1424{ 1425 struct net_device *dev = ptr; 1426 1427 switch (event) { |
1428 case NETDEV_UNREGISTER: 1429 rtmsg_ifinfo(RTM_DELLINK, dev, ~0U); 1430 break; | |
1431 case NETDEV_UP: 1432 case NETDEV_DOWN: 1433 rtmsg_ifinfo(RTM_NEWLINK, dev, IFF_UP|IFF_RUNNING); 1434 break; 1435 case NETDEV_PRE_UP: 1436 case NETDEV_POST_INIT: 1437 case NETDEV_REGISTER: 1438 case NETDEV_CHANGE: 1439 case NETDEV_GOING_DOWN: | 1428 case NETDEV_UP: 1429 case NETDEV_DOWN: 1430 rtmsg_ifinfo(RTM_NEWLINK, dev, IFF_UP|IFF_RUNNING); 1431 break; 1432 case NETDEV_PRE_UP: 1433 case NETDEV_POST_INIT: 1434 case NETDEV_REGISTER: 1435 case NETDEV_CHANGE: 1436 case NETDEV_GOING_DOWN: |
1437 case NETDEV_UNREGISTER: |
|
1440 case NETDEV_UNREGISTER_BATCH: 1441 break; 1442 default: 1443 rtmsg_ifinfo(RTM_NEWLINK, dev, 0); 1444 break; 1445 } 1446 return NOTIFY_DONE; 1447} --- 55 unchanged lines hidden --- | 1438 case NETDEV_UNREGISTER_BATCH: 1439 break; 1440 default: 1441 rtmsg_ifinfo(RTM_NEWLINK, dev, 0); 1442 break; 1443 } 1444 return NOTIFY_DONE; 1445} --- 55 unchanged lines hidden --- |