aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Graf <tgraf@suug.ch>2005-04-20 01:35:07 -0400
committerDavid S. Miller <davem@davemloft.net>2005-04-20 01:35:07 -0400
commit240eed95eb55b43a3daadbf0cd7298f44eaa737c (patch)
tree308f6a87c0558ed32c2c4950d22efc8e4ed16685
parent3320da8906d8a7277ef54fd1b3646f85354cb66a (diff)
[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>
-rw-r--r--net/core/rtnetlink.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c
index d69ad90e5811..15e968c697cc 100644
--- a/net/core/rtnetlink.c
+++ b/net/core/rtnetlink.c
@@ -647,7 +647,8 @@ static struct rtnetlink_link link_rtnetlink_table[RTM_MAX-RTM_BASE+1] =
647 [RTM_GETROUTE - RTM_BASE] = { .dumpit = rtnetlink_dump_all }, 647 [RTM_GETROUTE - RTM_BASE] = { .dumpit = rtnetlink_dump_all },
648 [RTM_NEWNEIGH - RTM_BASE] = { .doit = neigh_add }, 648 [RTM_NEWNEIGH - RTM_BASE] = { .doit = neigh_add },
649 [RTM_DELNEIGH - RTM_BASE] = { .doit = neigh_delete }, 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
653static int rtnetlink_event(struct notifier_block *this, unsigned long event, void *ptr) 654static int rtnetlink_event(struct notifier_block *this, unsigned long event, void *ptr)