diff options
author | 2004-01-26 02:20:24 +0000 | |
---|---|---|
committer | 2004-01-26 02:20:24 +0000 | |
commit | 92f41fde21906323a041d3514d78c8e84888cfe0 (patch) | |
tree | af5c73472e9f3129282763d3c15ba4b089900b01 /lib/libpcap | |
parent | sync (diff) | |
download | wireguard-openbsd-92f41fde21906323a041d3514d78c8e84888cfe0.tar.xz wireguard-openbsd-92f41fde21906323a041d3514d78c8e84888cfe0.zip |
add DLT_IEEE802_11 support; from NetBSD. bump minor.
deraadt@ ok.
Diffstat (limited to 'lib/libpcap')
-rw-r--r-- | lib/libpcap/gencode.c | 9 | ||||
-rw-r--r-- | lib/libpcap/shlib_version | 2 |
2 files changed, 8 insertions, 3 deletions
diff --git a/lib/libpcap/gencode.c b/lib/libpcap/gencode.c index 473f3a10f47..ad5522c8656 100644 --- a/lib/libpcap/gencode.c +++ b/lib/libpcap/gencode.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gencode.c,v 1.19 2003/05/14 08:50:37 canacar Exp $ */ +/* $OpenBSD: gencode.c,v 1.20 2004/01/26 02:20:24 fgsch Exp $ */ /* * Copyright (c) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998 @@ -22,7 +22,7 @@ */ #ifndef lint static const char rcsid[] = - "@(#) $Header: /home/cvs/src/lib/libpcap/gencode.c,v 1.19 2003/05/14 08:50:37 canacar Exp $ (LBL)"; + "@(#) $Header: /home/cvs/src/lib/libpcap/gencode.c,v 1.20 2004/01/26 02:20:24 fgsch Exp $ (LBL)"; #endif #include <sys/types.h> @@ -601,6 +601,11 @@ init_linktype(type) off_nl = 22; return; + case DLT_IEEE802_11: + off_linktype = 30; /* XXX variable */ + off_nl = 32; + return; + case DLT_ATM_RFC1483: /* * assume routed, non-ISO PDUs diff --git a/lib/libpcap/shlib_version b/lib/libpcap/shlib_version index b52599a164f..c6e3f4d3fc0 100644 --- a/lib/libpcap/shlib_version +++ b/lib/libpcap/shlib_version @@ -1,2 +1,2 @@ major=2 -minor=0 +minor=1 |