From 3fcff9bd3a9ee548b59182a2b48e1a9726db94e7 Mon Sep 17 00:00:00 2001 From: provos Date: Wed, 10 Jun 1998 23:57:08 +0000 Subject: make the packets which were successfully processed by IPSec available to bpf via the enc0 interface, using linktype DLT_ENC. --- sys/netinet/ip_ip4.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/netinet/ip_ip4.c') diff --git a/sys/netinet/ip_ip4.c b/sys/netinet/ip_ip4.c index 2c99421b24c..016689783c9 100644 --- a/sys/netinet/ip_ip4.c +++ b/sys/netinet/ip_ip4.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_ip4.c,v 1.18 1998/05/22 07:29:20 angelos Exp $ */ +/* $OpenBSD: ip_ip4.c,v 1.19 1998/06/10 23:57:12 provos Exp $ */ /* * The authors of this code are John Ioannidis (ji@tla.org), @@ -167,6 +167,8 @@ ip4_input(m, va_alist) m->m_pkthdr.len -= iphlen; m->m_data += iphlen; + m->m_flags |= M_TUNNEL; + /* * Interface pointer stays the same; if no IPsec processing has * been done (or will be done), this will point to a normal -- cgit v1.2.3-59-g8ed1b