rtnetlink.c (1da177e4c3f41524e886b7f1b8a0c1fc7321cac2) rtnetlink.c (240eed95eb55b43a3daadbf0cd7298f44eaa737c)
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>

--- 633 unchanged lines hidden (view full) ---

642static struct rtnetlink_link link_rtnetlink_table[RTM_MAX-RTM_BASE+1] =
643{
644 [RTM_GETLINK - RTM_BASE] = { .dumpit = rtnetlink_dump_ifinfo },
645 [RTM_SETLINK - RTM_BASE] = { .doit = do_setlink },
646 [RTM_GETADDR - RTM_BASE] = { .dumpit = rtnetlink_dump_all },
647 [RTM_GETROUTE - RTM_BASE] = { .dumpit = rtnetlink_dump_all },
648 [RTM_NEWNEIGH - RTM_BASE] = { .doit = neigh_add },
649 [RTM_DELNEIGH - RTM_BASE] = { .doit = neigh_delete },
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>

--- 633 unchanged lines hidden (view full) ---

642static struct rtnetlink_link link_rtnetlink_table[RTM_MAX-RTM_BASE+1] =
643{
644 [RTM_GETLINK - RTM_BASE] = { .dumpit = rtnetlink_dump_ifinfo },
645 [RTM_SETLINK - RTM_BASE] = { .doit = do_setlink },
646 [RTM_GETADDR - RTM_BASE] = { .dumpit = rtnetlink_dump_all },
647 [RTM_GETROUTE - RTM_BASE] = { .dumpit = rtnetlink_dump_all },
648 [RTM_NEWNEIGH - RTM_BASE] = { .doit = neigh_add },
649 [RTM_DELNEIGH - RTM_BASE] = { .doit = neigh_delete },
650 [RTM_GETNEIGH - RTM_BASE] = { .dumpit = neigh_dump_info }
650 [RTM_GETNEIGH - RTM_BASE] = { .dumpit = neigh_dump_info },
651 [RTM_GETRULE - RTM_BASE] = { .dumpit = rtnetlink_dump_all }
651};
652
653static int rtnetlink_event(struct notifier_block *this, unsigned long event, void *ptr)
654{
655 struct net_device *dev = ptr;
656 switch (event) {
657 case NETDEV_UNREGISTER:
658 rtmsg_ifinfo(RTM_DELLINK, dev, ~0U);

--- 53 unchanged lines hidden ---
652};
653
654static int rtnetlink_event(struct notifier_block *this, unsigned long event, void *ptr)
655{
656 struct net_device *dev = ptr;
657 switch (event) {
658 case NETDEV_UNREGISTER:
659 rtmsg_ifinfo(RTM_DELLINK, dev, ~0U);

--- 53 unchanged lines hidden ---