#include <netinet/ip_encap.h>
#include <netinet/ip_ecn.h>
-#if INET6
#include <netinet/ip6.h>
-#endif
#include <net/if_gif.h>
break;
}
#endif /* INET */
-#if INET6
case AF_INET6:
{
struct ip6_hdr *ip6;
tos = (ntohl(ip6->ip6_flow) >> 20) & 0xff;
break;
}
-#endif /* INET6 */
default:
#if DEBUG
printf("in_gif_output: warning: unknown family %d passed\n",
break;
}
#endif
-#if INET6
case IPPROTO_IPV6:
{
struct ip6_hdr *ip6;
ip6->ip6_flow |= htonl((u_int32_t)itos << 20);
break;
}
-#endif /* INET6 */
default:
OSAddAtomic(1, &ipstat.ips_nogif);
m_freem(m);