From 5d2c6e8c37e32d5a6ba172b69829289710aaccfa Mon Sep 17 00:00:00 2001 From: silby Date: Sat, 9 Aug 2003 02:55:11 +0000 Subject: #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 --- sys/net/if_loop.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/net') diff --git a/sys/net/if_loop.c b/sys/net/if_loop.c index 7158b3d..459498e 100644 --- a/sys/net/if_loop.c +++ b/sys/net/if_loop.c @@ -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; -- cgit v1.1