* netlink NLM_F_DUMP for unsupported address family / PF_UNSPEC
@ 2012-12-27 15:19 Timo Teras
0 siblings, 0 replies; only message in thread
From: Timo Teras @ 2012-12-27 15:19 UTC (permalink / raw)
To: netdev
It seems that currently PF_UNSPEC is overloaded when dumping rtnetlink
things. It is used for two purposes: as wildcard entry to dump
all protocol families, and as fallback for unsupported families.
On my system with IPv[46] only and no IPX, running "ip -f ipx
route" would print the IPv4 and IPv6 routes instead of "unsupported" or
"not implemented" error which is rather confusing and unexpected.
Just removing the fallback from rtnl_get_dumpit() does not sound right
since some commands seem to rely on this behaviour e.g. RTM_GETQDISC.
Perhaps rtnl_dump_all should check that request family truly was
PF_UNSPEC or error out if not?
- Timo
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-12-27 15:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-27 15:19 netlink NLM_F_DUMP for unsupported address family / PF_UNSPEC Timo Teras
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox