Implement DLT_RAW from libpcap
This commit is contained in:
parent
287e61c39f
commit
22f05c4320
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=38423
@ -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;
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user