summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>2001-09-03 21:07:31 +0000
committerjulian <julian@FreeBSD.org>2001-09-03 21:07:31 +0000
commit4a8dc7084c0c317b0ddd66c13d45738cdce0f1cb (patch)
tree6a92be49cce9382609a67fc89b7ae84f9237cd18 /sys
parent70318b8e978db8026ebb344872a6674d87ec9040 (diff)
downloadFreeBSD-src-4a8dc7084c0c317b0ddd66c13d45738cdce0f1cb.zip
FreeBSD-src-4a8dc7084c0c317b0ddd66c13d45738cdce0f1cb.tar.gz
I really hope this is the right answer.
call ip_input directly but take the offset off the packet first if it's an IPV4 packet encapsulated.
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet/ip_encap.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netinet/ip_encap.c b/sys/netinet/ip_encap.c
index 046f45b..2476d71 100644
--- a/sys/netinet/ip_encap.c
+++ b/sys/netinet/ip_encap.c
@@ -73,6 +73,7 @@
#include <net/route.h>
#include <netinet/in.h>
+#include <netinet/in_var.h>
#include <netinet/in_systm.h>
#include <netinet/ip.h>
#include <netinet/ip_var.h>
@@ -222,7 +223,8 @@ encap4_input(m, va_alist)
* (It is also not compiled in in LINT)
*/
if (proto == IPPROTO_IPV4) {
- ip_input(m, off);
+ m_adj(m, off);
+ ip_input(m/*, off */);
return;
}
OpenPOWER on IntegriCloud