Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

[RTNETLINK]: Protocol family wildcard dumping for routing rules

Be kind to userspace and don't force them to hardcode protocol
families just to have it changed again once we support routing
rules for more than one protocol family.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Thomas Graf and committed by
David S. Miller
240eed95 3320da89

+2 -1
+2 -1
net/core/rtnetlink.c
··· 647 647 [RTM_GETROUTE - RTM_BASE] = { .dumpit = rtnetlink_dump_all }, 648 648 [RTM_NEWNEIGH - RTM_BASE] = { .doit = neigh_add }, 649 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 }; 652 653 653 654 static int rtnetlink_event(struct notifier_block *this, unsigned long event, void *ptr)