diff options
author | bz <bz@FreeBSD.org> | 2009-06-10 13:39:51 +0000 |
---|---|---|
committer | bz <bz@FreeBSD.org> | 2009-06-10 13:39:51 +0000 |
commit | 9089a9160f6826db563f8cd764bd16306b546ddf (patch) | |
tree | 3ff65daf28fc6b0896aa482c1fa87e68e7de0def /sys/net | |
parent | 695df43388830e10f7f0e6fe79cd90c57ad1b85a (diff) | |
download | FreeBSD-src-9089a9160f6826db563f8cd764bd16306b546ddf.zip FreeBSD-src-9089a9160f6826db563f8cd764bd16306b546ddf.tar.gz |
ip_gif_ttl/GIF_TTL are only used by the inet part in in_gif.c,
so put the initialization under #ifdef INET.
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/if_gif.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/net/if_gif.c b/sys/net/if_gif.c index 2edab95..06a849a 100644 --- a/sys/net/if_gif.c +++ b/sys/net/if_gif.c @@ -274,7 +274,9 @@ vnet_gif_iattach(const void *unused __unused) #else V_parallel_tunnels = 0; #endif +#ifdef INET V_ip_gif_ttl = GIF_TTL; +#endif #ifdef INET6 V_ip6_gif_hlim = GIF_HLIM; #endif |