summaryrefslogtreecommitdiff
path: root/lib/libpcap
diff options
context:
space:
mode:
authorNiels Provos <provos@cvs.openbsd.org>1998-06-11 00:01:26 +0000
committerNiels Provos <provos@cvs.openbsd.org>1998-06-11 00:01:26 +0000
commit281a4fc4a0494a68527aa1d0cc801abd22707d36 (patch)
tree501eee15745456c40ba0c45d192e72d951d34d9f /lib/libpcap
parent5d17330258932e13f4c80045949433571f0cd47e (diff)
handle IPSec processed packets (DLT_ENC) in libpcap, display them with
tcpdump + additional info (SPI + which type of transforms where passed).
Diffstat (limited to 'lib/libpcap')
-rw-r--r--lib/libpcap/gencode.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/libpcap/gencode.c b/lib/libpcap/gencode.c
index d6d323ab1a7..91cce624b12 100644
--- a/lib/libpcap/gencode.c
+++ b/lib/libpcap/gencode.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: gencode.c,v 1.7 1998/06/04 23:11:34 deraadt Exp $ */
+/* $OpenBSD: gencode.c,v 1.8 1998/06/11 00:01:18 provos Exp $ */
/*
* Copyright (c) 1990, 1991, 1992, 1993, 1994, 1995, 1996
@@ -498,6 +498,11 @@ init_linktype(type)
off_nl = 4;
return;
+ case DLT_ENC:
+ off_linktype = -1;
+ off_nl = 12;
+ return;
+
case DLT_PPP:
off_linktype = 2;
off_nl = 4;
@@ -580,6 +585,7 @@ gen_linktype(proto)
proto = 0x0021; /* XXX - need ppp.h defs */
break;
+ case DLT_ENC:
case DLT_LOOP:
case DLT_NULL:
/* XXX */