PERFORCE change 126193 for review

Marko Zec zec at FreeBSD.org
Sat Sep 8 11:24:22 PDT 2007


http://perforce.freebsd.org/chv.cgi?CH=126193

Change 126193 by zec at zec_tpx32 on 2007/09/08 18:23:19

	Wrap an INET6 related sysctl instance into an #ifdef,
	fixing compilation issues with nooptions INET6 configurations.
	
	While here, clean up some whitespace noise.

Affected files ...

.. //depot/projects/vimage/src/sys/net/if_gif.c#11 edit

Differences ...

==== //depot/projects/vimage/src/sys/net/if_gif.c#11 (text+ko) ====

@@ -131,11 +131,13 @@
 static int max_gif_nesting;
 #endif
 SYSCTL_V_INT(V_NET, vnet_gif, _net_link_gif, OID_AUTO, max_nesting,
-	CTLFLAG_RW, max_gif_nesting, 0, "Max nested tunnels");
+    CTLFLAG_RW, max_gif_nesting, 0, "Max nested tunnels");
 
+#ifdef INET6
 SYSCTL_DECL(_net_inet6_ip6);
 SYSCTL_V_INT(V_NET, vnet_gif, _net_inet6_ip6, IPV6CTL_GIF_HLIM,
-        gifhlim, CTLFLAG_RW,    ip6_gif_hlim,                   0, "");
+    gifhlim, CTLFLAG_RW, ip6_gif_hlim, 0, "");
+#endif
 
 /*
  * By default, we disallow creation of multiple tunnels between the same
@@ -244,7 +246,6 @@
 	V_parallel_tunnels = 1;
 #endif
 	V_ip_gif_ttl = GIF_TTL;
-
 #ifdef INET6
 	V_ip6_gif_hlim = GIF_HLIM;
 #endif


More information about the p4-projects mailing list