Skip to contentSkip to conversation

/proc/sys/net/ipv6/conf/*/autoconf_route

PATCH New Jan Rekorajski 1 participant 1 message Nov 7, 2000

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 /proc/sys/net/ipv6/conf/*/autoconf_route

Hi,
This patch adds /proc/sys/net/ipv6/conf/*/autoconf_route that controls if default route is added or not if there are no routers on the link, it also makes use of gcc struct initializers. If putting new members inside a struct or enum is a wrong thing here I can change it. The patch is against 2.4.0-test9,10.

Jan

Signature · 3 lines
Jan Rękorajski            |  ALL SUSPECTS ARE GUILTY. PERIOD!
baggins<at>mimuw.edu.pl   |  OTHERWISE THEY WOULDN'T BE SUSPECTS, WOULD THEY?
BOFH, type MANIAC         |                   -- TROOPS by Kevin Rubio
include/linux/sysctl.h +5 -4
diff -ur linux.orig/include/linux/sysctl.h linux.v6/include/linux/sysctl.h
@@ -342,10 +342,11 @@
 	NET_IPV6_ACCEPT_RA=4,
 	NET_IPV6_ACCEPT_REDIRECTS=5,
 	NET_IPV6_AUTOCONF=6,
-	NET_IPV6_DAD_TRANSMITS=7,
-	NET_IPV6_RTR_SOLICITS=8,
-	NET_IPV6_RTR_SOLICIT_INTERVAL=9,
-	NET_IPV6_RTR_SOLICIT_DELAY=10
+	NET_IPV6_AUTOCONF_ROUTE=7,
+	NET_IPV6_DAD_TRANSMITS=8,
+	NET_IPV6_RTR_SOLICITS=9,
+	NET_IPV6_RTR_SOLICIT_INTERVAL=10,
+	NET_IPV6_RTR_SOLICIT_DELAY=11
 };
 
 /* /proc/sys/net/<protocol>/neigh/<dev> */
include/net/if_inet6.h +1 -0
diff -ur linux.orig/include/net/if_inet6.h linux.v6/include/net/if_inet6.h
@@ -82,6 +82,7 @@
 	int		accept_ra;
 	int		accept_redirects;
 	int		autoconf;
+	int		autoconf_route;
 	int		dad_transmits;
 	int		rtr_solicits;
 	int		rtr_solicit_interval;
net/ipv6/addrconf.c +38 -28

102 lines not on this page · raw message