Implement DLT_RAW from libpcap

This commit is contained in:
ache 1998-08-18 10:13:11 +00:00
parent 95c3baa7ee
commit 60fc86d171
2 changed files with 4 additions and 2 deletions

View File

@ -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;

View File

@ -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.