[RTNETLINK]: Protocol family wildcard dumping for routing rules
authorThomas Graf <tgraf@suug.ch>
Wed, 20 Apr 2005 05:35:07 +0000 (22:35 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Apr 2005 05:35:07 +0000 (22:35 -0700)
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>
net/core/rtnetlink.c

index d69ad90e58116594de2d66a26f9bc78dfa183d95..15e968c697cce165a242b693608e221e3b0c6b66 100644 (file)
@@ -647,7 +647,8 @@ static struct rtnetlink_link link_rtnetlink_table[RTM_MAX-RTM_BASE+1] =
        [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)