ip_gif_ttl/GIF_TTL are only used by the inet part in in_gif.c,

so put the initialization under #ifdef INET.
This commit is contained in:
Bjoern A. Zeeb 2009-06-10 13:39:51 +00:00
parent f61afb4498
commit 974524bf59

View File

@ -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