summaryrefslogtreecommitdiffstats
path: root/sys/net
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1998-08-18 10:13:11 +0000
committerache <ache@FreeBSD.org>1998-08-18 10:13:11 +0000
commit60fc86d17128d6d6f28863b37eb2d2a0126ec528 (patch)
tree0cead133e71e049da3453cd9ae20ee740fc257c4 /sys/net
parent95c3baa7ee4b5dd88be242a814c7fbe0c238c5e1 (diff)
downloadFreeBSD-src-60fc86d17128d6d6f28863b37eb2d2a0126ec528.zip
FreeBSD-src-60fc86d17128d6d6f28863b37eb2d2a0126ec528.tar.gz
Implement DLT_RAW from libpcap
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/bpf.c3
-rw-r--r--sys/net/bpf.h3
2 files changed, 4 insertions, 2 deletions
diff --git a/sys/net/bpf.c b/sys/net/bpf.c
index c65bbff..63bca3b 100644
--- a/sys/net/bpf.c
+++ b/sys/net/bpf.c
@@ -37,7 +37,7 @@
*
* @(#)bpf.c 8.2 (Berkeley) 3/28/94
*
- * $Id: bpf.c,v 1.39 1998/06/07 17:12:01 dfr Exp $
+ * $Id: bpf.c,v 1.40 1998/07/29 05:34:59 kjc Exp $
*/
#include "bpfilter.h"
@@ -192,6 +192,7 @@ bpf_movein(uio, linktype, mp, sockp, datlen)
#endif
break;
+ case DLT_RAW:
case DLT_NULL:
sockp->sa_family = AF_UNSPEC;
hlen = 0;
diff --git a/sys/net/bpf.h b/sys/net/bpf.h
index 9bcd100..e9a4586 100644
--- a/sys/net/bpf.h
+++ b/sys/net/bpf.h
@@ -38,7 +38,7 @@
* @(#)bpf.h 8.1 (Berkeley) 6/10/93
* @(#)bpf.h 1.34 (LBL) 6/16/96
*
- * $Id: bpf.h,v 1.12 1997/02/22 09:40:55 peter Exp $
+ * $Id: bpf.h,v 1.13 1998/07/13 10:44:02 bde Exp $
*/
#ifndef _NET_BPF_H_
@@ -147,6 +147,7 @@ struct bpf_hdr {
#define DLT_PPP 9 /* Point-to-point Protocol */
#define DLT_FDDI 10 /* FDDI */
#define DLT_ATM_RFC1483 11 /* LLC/SNAP encapsulated atm */
+#define DLT_RAW 12 /* raw IP */
/*
* The instruction encodings.
OpenPOWER on IntegriCloud