tree 308f6a87c0558ed32c2c4950d22efc8e4ed16685
parent 3320da8906d8a7277ef54fd1b3646f85354cb66a
author Thomas Graf <[EMAIL PROTECTED]> Wed, 20 Apr 2005 12:35:07 -0700
committer David S. Miller <[EMAIL PROTECTED]> Wed, 20 Apr 2005 12:35:07 -0700
[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 <[EMAIL PROTECTED]>
Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
core/rtnetlink.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
Index: net/core/rtnetlink.c
===================================================================
--- 97b9e465bc72ed95a0d3959cf0abb3786f9d7517/net/core/rtnetlink.c (mode:100644
sha1:d69ad90e58116594de2d66a26f9bc78dfa183d95)
+++ 308f6a87c0558ed32c2c4950d22efc8e4ed16685/net/core/rtnetlink.c (mode:100644
sha1:15e968c697cce165a242b693608e221e3b0c6b66)
@@ -647,7 +647,8 @@
[RTM_GETROUTE - RTM_BASE] = { .dumpit = rtnetlink_dump_all },
[RTM_NEWNEIGH - RTM_BASE] = { .doit = neigh_add },
[RTM_DELNEIGH - RTM_BASE] = { .doit = neigh_delete },
- [RTM_GETNEIGH - RTM_BASE] = { .dumpit = neigh_dump_info }
+ [RTM_GETNEIGH - RTM_BASE] = { .dumpit = neigh_dump_info },
+ [RTM_GETRULE - RTM_BASE] = { .dumpit = rtnetlink_dump_all }
};
static int rtnetlink_event(struct notifier_block *this, unsigned long event,
void *ptr)
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html