]> git.baikalelectronics.ru Git - kernel.git/commit
net: fib_rules: decouple address families from real address families
authorPatrick McHardy <kaber@trash.net>
Tue, 13 Apr 2010 05:03:17 +0000 (05:03 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Apr 2010 21:49:31 +0000 (14:49 -0700)
commitc4738aadbc5ffbdcd09a2b09bb50fe63390d7d22
tree2ce87a26afecd5c0400a6e743534a402a6ca8aec
parent1473b292f048a7f5c8b638f9e803a2a84d70873a
net: fib_rules: decouple address families from real address families

Decouple the address family values used for fib_rules from the real
address families in socket.h. This allows to use fib_rules for
code that is not a real address family without increasing AF_MAX/NPROTO.

Values up to 127 are reserved for real address families and map directly
to the corresponding AF value, values starting from 128 are for other
uses. rtnetlink is changed to invoke the AF_UNSPEC dumpit/doit handlers
for these families.

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