diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-04-04 21:33:50 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-04-04 21:33:50 +0000 |
commit | c6289e32b640b7abb359b42de3e96f465d6f97ea (patch) | |
tree | 3d3f2056fedfa8fffb838ac8e77f45b443718371 /sys/netinet | |
parent | 5015ef1335596403fe3b9bbdeca2077538430cee (diff) |
fix tunnelling; provos
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/ip_ip4.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/netinet/ip_ip4.c b/sys/netinet/ip_ip4.c index c142d46aa84..af4eba0aee3 100644 --- a/sys/netinet/ip_ip4.c +++ b/sys/netinet/ip_ip4.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_ip4.c,v 1.25 1999/02/25 19:21:09 angelos Exp $ */ +/* $OpenBSD: ip_ip4.c,v 1.26 1999/04/04 21:33:49 deraadt Exp $ */ /* * The authors of this code are John Ioannidis (ji@tla.org), @@ -161,6 +161,10 @@ ip4_input(m, va_alist) m->m_pkthdr.len -= iphlen; m->m_data += iphlen; + /* tdbi is only set in esp or ah, if next protocol is udp or tcp */ + if (m->m_flags & (M_CONF|M_AUTH)) + m->m_pkthdr.tdbi = NULL; + /* * Interface pointer stays the same; if no IPsec processing has * been done (or will be done), this will point to a normal |