diff options
| author | thorpej <thorpej@NetBSD.org> | 2002-09-22 16:13:01 +0000 |
|---|---|---|
| committer | thorpej <thorpej@NetBSD.org> | 2002-09-22 16:13:01 +0000 |
| commit | bfd8b5c80d92cdb9cd14e266d66210686b086701 (patch) | |
| tree | f9e857b198afa308398a6e8568534075ff7ec8fd /lib/libpcap/gencode.c | |
| parent | cf45a27b249ddeb87e118ee341becc5eef25c3bc (diff) | |
* Add support for DLT_IEEE802_11.
* When opening a live pcap, obtain the list of supported DLTs from
the BPF.
* Add pcap_list_datalinks() to obtain a list of supported DLTs
supported by the interface associated with the pcap descriptor.
* Add pcap_set_datalink() to set the current DLT of the pcap.
* Bump shlib 1.2 -> 1.3; new functions added.
From David Young <dyoung@ojctech.com>, with some minor changes by me.
Diffstat (limited to 'lib/libpcap/gencode.c')
| -rw-r--r-- | lib/libpcap/gencode.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/libpcap/gencode.c b/lib/libpcap/gencode.c index eb5bda1456c..2867dd99d62 100644 --- a/lib/libpcap/gencode.c +++ b/lib/libpcap/gencode.c @@ -1,4 +1,4 @@ -/* $NetBSD: gencode.c,v 1.31 2002/08/26 11:21:18 yamt Exp $ */ +/* $NetBSD: gencode.c,v 1.32 2002/09/22 16:13:01 thorpej Exp $ */ /* * Copyright (c) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997 @@ -26,7 +26,7 @@ static const char rcsid[] = "@(#) Header: gencode.c,v 1.93 97/06/12 14:22:47 leres Exp (LBL)"; #else -__RCSID("$NetBSD: gencode.c,v 1.31 2002/08/26 11:21:18 yamt Exp $"); +__RCSID("$NetBSD: gencode.c,v 1.32 2002/09/22 16:13:01 thorpej Exp $"); #endif #endif @@ -562,6 +562,11 @@ init_linktype(type) off_nl = 6; /* XXX in reality, variable! */ return; + case DLT_IEEE802_11: + off_linktype = 30; /* XXX variable */ + off_nl = 32; + return; + case DLT_EN10MB: off_linktype = 12; off_nl = 14; |
