#ifdef INET6 the if_loop packet defrag; since only the ipv6 stack (might)

require this to be done, there's no reason to waste time doing it if
ipv6 isn't compiled in.

MFC after:	1 week
This commit is contained in:
Mike Silbersack 2003-08-09 02:55:11 +00:00
parent ac2ded1df3
commit fe3e8c5167

View File

@ -201,6 +201,7 @@ looutput(ifp, m, dst, rt)
return (rt->rt_flags & RTF_BLACKHOLE ? 0 :
rt->rt_flags & RTF_HOST ? EHOSTUNREACH : ENETUNREACH);
}
#ifdef INET6
/*
* KAME requires that the packet to be contiguous on the
* mbuf. We need to make that sure.
@ -222,6 +223,7 @@ looutput(ifp, m, dst, rt)
m = n;
}
}
#endif
ifp->if_opackets++;
ifp->if_obytes += m->m_pkthdr.len;