diff options
author | Brad Smith <brad@cvs.openbsd.org> | 1999-05-26 19:26:12 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 1999-05-26 19:26:12 +0000 |
commit | faf86db5d86ff6f8ef3259c5546db80c09d914dc (patch) | |
tree | a75989a130770afc5cfebbbecf35f13dae22fe68 /sys/net | |
parent | de10dac352a86e6b9574c74e453c9ed33226d6c7 (diff) |
Implement DLT_RAW, DLT_{SLIP,PPP}_BSDOS from libpcap 0.4
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/bpf.c | 3 | ||||
-rw-r--r-- | sys/net/bpf.h | 5 |
2 files changed, 6 insertions, 2 deletions
diff --git a/sys/net/bpf.c b/sys/net/bpf.c index 47cbc11a0a0..65fd1e3a1ef 100644 --- a/sys/net/bpf.c +++ b/sys/net/bpf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bpf.c,v 1.15 1999/04/22 20:02:42 art Exp $ */ +/* $OpenBSD: bpf.c,v 1.16 1999/05/26 19:26:11 brad Exp $ */ /* $NetBSD: bpf.c,v 1.33 1997/02/21 23:59:35 thorpej Exp $ */ /* @@ -168,6 +168,7 @@ bpf_movein(uio, linktype, mp, sockp) hlen = 24; 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 a6bfd36a2c1..ecc10b0fe28 100644 --- a/sys/net/bpf.h +++ b/sys/net/bpf.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bpf.h,v 1.8 1998/06/26 09:13:11 deraadt Exp $ */ +/* $OpenBSD: bpf.h,v 1.9 1999/05/26 19:26:11 brad Exp $ */ /* $NetBSD: bpf.h,v 1.15 1996/12/13 07:57:33 mikel Exp $ */ /* @@ -181,6 +181,9 @@ struct bpf_hdr { #define DLT_ATM_RFC1483 11 /* LLC/SNAP encapsulated atm */ #define DLT_LOOP 12 /* loopback type (af header) */ #define DLT_ENC 13 /* IPSEC enc type (af header, spi, flags) */ +#define DLT_RAW 12 /* raw IP */ +#define DLT_SLIP_BSDOS 13 /* BSD/OS Serial Line IP */ +#define DLT_PPP_BSDOS 14 /* BSD/OS Point-to-point Protocol */ /* * The instruction encondings. |