summaryrefslogtreecommitdiffstats
path: root/sys/net
diff options
context:
space:
mode:
authorsilby <silby@FreeBSD.org>2003-08-09 02:55:11 +0000
committersilby <silby@FreeBSD.org>2003-08-09 02:55:11 +0000
commit5d2c6e8c37e32d5a6ba172b69829289710aaccfa (patch)
treece8313e30ccef58e46e98e6e2df5ed3de5bf89a4 /sys/net
parent892df4d6175d0656bd4d556877ab6efbad2cbbfb (diff)
downloadFreeBSD-src-5d2c6e8c37e32d5a6ba172b69829289710aaccfa.zip
FreeBSD-src-5d2c6e8c37e32d5a6ba172b69829289710aaccfa.tar.gz
#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
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if_loop.c2
1 files changed, 2 insertions, 0 deletions
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;
OpenPOWER on IntegriCloud