diff options
author | Niels Provos <provos@cvs.openbsd.org> | 1998-06-11 00:01:26 +0000 |
---|---|---|
committer | Niels Provos <provos@cvs.openbsd.org> | 1998-06-11 00:01:26 +0000 |
commit | 281a4fc4a0494a68527aa1d0cc801abd22707d36 (patch) | |
tree | 501eee15745456c40ba0c45d192e72d951d34d9f /lib/libpcap | |
parent | 5d17330258932e13f4c80045949433571f0cd47e (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.c | 8 |
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 */ |