diff options
author | Niels Provos <provos@cvs.openbsd.org> | 2001-06-25 23:03:33 +0000 |
---|---|---|
committer | Niels Provos <provos@cvs.openbsd.org> | 2001-06-25 23:03:33 +0000 |
commit | 6da2f6912909339f1fec52c89d496254c3827d23 (patch) | |
tree | 2e701e840a67ab9084af4691b22c5dabb910ee44 /lib/libpcap/gencode.c | |
parent | f55ef036c92caa4df42d57eab4a0fee70673fcaa (diff) |
DLT_PFLOG
Diffstat (limited to 'lib/libpcap/gencode.c')
-rw-r--r-- | lib/libpcap/gencode.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/libpcap/gencode.c b/lib/libpcap/gencode.c index 12b342ea647..df8145a4621 100644 --- a/lib/libpcap/gencode.c +++ b/lib/libpcap/gencode.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gencode.c,v 1.12 2000/04/26 21:25:52 jakob Exp $ */ +/* $OpenBSD: gencode.c,v 1.13 2001/06/25 23:03:32 provos Exp $ */ /* * Copyright (c) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998 @@ -22,7 +22,7 @@ */ #ifndef lint static const char rcsid[] = - "@(#) $Header: /cvs/OpenBSD/src/lib/libpcap/gencode.c,v 1.12 2000/04/26 21:25:52 jakob Exp $ (LBL)"; + "@(#) $Header: /cvs/OpenBSD/src/lib/libpcap/gencode.c,v 1.13 2001/06/25 23:03:32 provos Exp $ (LBL)"; #endif #include <sys/types.h> @@ -615,6 +615,11 @@ init_linktype(type) off_nl = 12; return; + case DLT_PFLOG: + off_linktype = -1; + off_nl = 28; + return; + case DLT_RAW: off_linktype = -1; off_nl = 0; @@ -714,6 +719,7 @@ gen_linktype(proto) case DLT_LOOP: case DLT_ENC: + case DLT_PFLOG: case DLT_NULL: /* XXX */ if (proto == ETHERTYPE_IP) |