[IPV6]: Consolidate common SNMP code
This patch moves the non-proc SNMP code into addrconf.c and reuses IPv4 SNMP code where applicable. As a result we can skip proc.o if /proc is disabled. Note that I've made a number of functions static since they're only used by addrconf.c for now. If they ever get used elsewhere we can always remove the static. Signed-off-by:Herbert Xu <herbert@gondor.apana.org.au> Acked-by:
YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- include/net/ipv6.h 12 additions, 8 deletionsinclude/net/ipv6.h
- net/ipv6/Makefile 2 additions, 1 deletionnet/ipv6/Makefile
- net/ipv6/addrconf.c 60 additions, 0 deletionsnet/ipv6/addrconf.c
- net/ipv6/af_inet6.c 15 additions, 15 deletionsnet/ipv6/af_inet6.c
- net/ipv6/proc.c 2 additions, 123 deletionsnet/ipv6/proc.c
Loading
Please register or sign in to comment