diff options
Diffstat (limited to 'net/core')
-rw-r--r-- | net/core/rtnetlink.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c index 5cc09f82f6d6..294c2f209a31 100644 --- a/net/core/rtnetlink.c +++ b/net/core/rtnetlink.c | |||
@@ -959,12 +959,6 @@ static void rtnetlink_rcv(struct sock *sk, int len) | |||
959 | } while (qlen); | 959 | } while (qlen); |
960 | } | 960 | } |
961 | 961 | ||
962 | static struct rtnetlink_link link_rtnetlink_table[RTM_NR_MSGTYPES] = | ||
963 | { | ||
964 | [RTM_GETADDR - RTM_BASE] = { .dumpit = rtnl_dump_all }, | ||
965 | [RTM_GETROUTE - RTM_BASE] = { .dumpit = rtnl_dump_all }, | ||
966 | }; | ||
967 | |||
968 | static int rtnetlink_event(struct notifier_block *this, unsigned long event, void *ptr) | 962 | static int rtnetlink_event(struct notifier_block *this, unsigned long event, void *ptr) |
969 | { | 963 | { |
970 | struct net_device *dev = ptr; | 964 | struct net_device *dev = ptr; |
@@ -1014,6 +1008,9 @@ void __init rtnetlink_init(void) | |||
1014 | 1008 | ||
1015 | rtnl_register(PF_UNSPEC, RTM_GETLINK, rtnl_getlink, rtnl_dump_ifinfo); | 1009 | rtnl_register(PF_UNSPEC, RTM_GETLINK, rtnl_getlink, rtnl_dump_ifinfo); |
1016 | rtnl_register(PF_UNSPEC, RTM_SETLINK, rtnl_setlink, NULL); | 1010 | rtnl_register(PF_UNSPEC, RTM_SETLINK, rtnl_setlink, NULL); |
1011 | |||
1012 | rtnl_register(PF_UNSPEC, RTM_GETADDR, NULL, rtnl_dump_all); | ||
1013 | rtnl_register(PF_UNSPEC, RTM_GETROUTE, NULL, rtnl_dump_all); | ||
1017 | } | 1014 | } |
1018 | 1015 | ||
1019 | EXPORT_SYMBOL(__rta_fill); | 1016 | EXPORT_SYMBOL(__rta_fill); |