| To: | jamal <hadi@xxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH] RTNETLINK: Protocol family wildcard dumping for routing rules |
| From: | Thomas Graf <tgraf@xxxxxxx> |
| Date: | Fri, 8 Apr 2005 01:24:27 +0200 |
| Cc: | Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>, "David S. Miller" <davem@xxxxxxxxxxxxx>, netdev <netdev@xxxxxxxxxxx> |
| In-reply-to: | <1112915616.1089.27.camel@xxxxxxxxxxxxxxxx> |
| References: | <20050407213838.GW26731@xxxxxxxxxxxxxx> <E1DJfBR-0007Ym-00@xxxxxxxxxxxxxxxxxxxxxxxx> <20050407223847.GX26731@xxxxxxxxxxxxxx> <1112915616.1089.27.camel@xxxxxxxxxxxxxxxx> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
* jamal <1112915616.1089.27.camel@xxxxxxxxxxxxxxxx> 2005-04-07 19:13
> On Thu, 2005-04-07 at 18:38, Thomas Graf wrote:
> > - [RTM_GETNEIGH - RTM_BASE] = { .dumpit = neigh_dump_info }
> > + [RTM_GETNEIGH - RTM_BASE] = { .dumpit = neigh_dump_info },
> > + [RTM_GETRULE - RTM_BASE] = { .dumpit = rtnetlink_dump_all },
> > };
> >
>
> Shouldnt this just work (without this change) if you have
> CONFIG_IP_MULTIPLE_TABLES?
Not sure what you mean, it doesn't even get into the routing
code but already fails in rtnetlink_rcv_msg when it doesn't
find a dumpit implementation for family == AF_UNSPEC.
> If you want to be funky and have some default dumper always,
> why not make the change to set dumpit to rtnetlink_dump_all in the code
> when dumpit is found to be NULL as a last resort?
That is exactly what happens, it will first look up the address
family dumpit and if none exist falls back to the rtnetlink_dump_all
introduced above.
if (link->dumpit == NULL)
link = &(rtnetlink_links[PF_UNSPEC][type]);
if (link->dumpit == NULL)
goto err_inval; /* <-- we used to fail here for PF_UNSPEC */
if ((*errp = netlink_dump_start(rtnl, skb, nlh, ...
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH 2.6.12-rc2 1/17] bonding: make some functions not static, Radheka Godse |
|---|---|
| Next by Date: | [PATCH 2.6.12-rc2 2/17] bonding: split bond creation into new function, Radheka Godse |
| Previous by Thread: | Re: [PATCH] RTNETLINK: Protocol family wildcard dumping for routing rules, jamal |
| Next by Thread: | Re: [PATCH] RTNETLINK: Protocol family wildcard dumping for routing rules, jamal |
| Indexes: | [Date] [Thread] [Top] [All Lists] |