From 6da2f6912909339f1fec52c89d496254c3827d23 Mon Sep 17 00:00:00 2001 From: Niels Provos Date: Mon, 25 Jun 2001 23:03:33 +0000 Subject: DLT_PFLOG --- lib/libpcap/gencode.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'lib') 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 @@ -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) -- cgit v1.2.3