]> git.baikalelectronics.ru Git - kernel.git/commit
net: rtnetlink: decouple rtnetlink address families from real address families
authorPatrick McHardy <kaber@trash.net>
Mon, 26 Apr 2010 14:02:05 +0000 (16:02 +0200)
committerPatrick McHardy <kaber@trash.net>
Mon, 26 Apr 2010 14:13:54 +0000 (16:13 +0200)
commit8e1f49d5af2e6032d2e672d96f2575167345de1b
treec3f36730571a7eb185abcd973b2f4c9616bd8096
parentdec0eb0516de77c99c1dbe83b0a489785df7bc7d
net: rtnetlink: decouple rtnetlink address families from real address families

Decouple rtnetlink address families from real address families in socket.h to
be able to add rtnetlink interfaces to code that is not a real address family
without increasing AF_MAX/NPROTO.

This will be used to add support for multicast route dumping from all tables
as the proc interface can't be extended to support anything but the main table
without breaking compatibility.

This partialy undoes the patch to introduce independant families for routing
rules and converts ipmr routing rules to a new rtnetlink family. Similar to
that patch, values up to 127 are reserved for real address families, values
above that may be used arbitrarily.

Signed-off-by: Patrick McHardy <kaber@trash.net>
include/linux/fib_rules.h
include/linux/rtnetlink.h
net/core/rtnetlink.c
net/decnet/dn_rules.c
net/ipv4/fib_rules.c
net/ipv4/ipmr.c
net/ipv6/fib6_rules.c