aboutsummaryrefslogtreecommitdiffstats
path: root/bpf
diff options
context:
space:
mode:
authormcr <mcr>2002-01-22 23:36:19 +0000
committermcr <mcr>2002-01-22 23:36:19 +0000
commit8219275ef5a58804b74847aab164952543568e76 (patch)
tree69b709aff8f3d3c5e1d5cea88c95e1f4a3647148 /bpf
parent86c2a855bf7cea4a1d8db5da5761cc5885175973 (diff)
#ifdef to work around NetBSD dlt.h problem.
Diffstat (limited to 'bpf')
-rw-r--r--bpf/net/bpf.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/bpf/net/bpf.h b/bpf/net/bpf.h
index 3cd1c16..aed50bf 100644
--- a/bpf/net/bpf.h
+++ b/bpf/net/bpf.h
@@ -37,7 +37,7 @@
*
* @(#)bpf.h 7.1 (Berkeley) 5/7/91
*
- * @(#) $Header: /tcpdump/master/libpcap/bpf/net/Attic/bpf.h,v 1.51 2001-11-28 05:50:05 guy Exp $ (LBL)
+ * @(#) $Header: /tcpdump/master/libpcap/bpf/net/Attic/bpf.h,v 1.52 2002-01-22 23:36:19 mcr Exp $ (LBL)
*/
#ifndef BPF_MAJOR_VERSION
@@ -206,8 +206,15 @@ struct bpf_hdr {
* continue to compile - even though they won't correctly read
* files of these types.
*/
+#ifdef __NetBSD__
+#ifndef DLT_SLIP_BSDOS
+#define DLT_SLIP_BSDOS 13 /* BSD/OS Serial Line IP */
+#define DLT_PPP_BSDOS 14 /* BSD/OS Point-to-point Protocol */
+#endif
+#else
#define DLT_SLIP_BSDOS 15 /* BSD/OS Serial Line IP */
#define DLT_PPP_BSDOS 16 /* BSD/OS Point-to-point Protocol */
+#endif
#define DLT_ATM_CLIP 19 /* Linux Classical-IP over ATM */