Classes | Macros | Typedefs | Functions
bpf.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  bpf_insn
 A single BPF pseudo-instruction. More...
 
struct  bpf_program
 A BPF pseudo-assembly program. More...
 
struct  bpf_version
 

Macros

#define BPF_A   0x10
 
#define BPF_ABS   0x20
 
#define BPF_ADD   0x00
 
#define BPF_ALIGNMENT   sizeof(bpf_int32)
 
#define BPF_ALU   0x04
 
#define BPF_AND   0x50
 
#define BPF_B   0x10
 
#define BPF_CLASS(code)   ((code) & 0x07)
 
#define BPF_DIV   0x30
 
#define BPF_H   0x08
 
#define BPF_IMM   0x00
 
#define BPF_IND   0x40
 
#define BPF_JA   0x00
 
#define BPF_JEQ   0x10
 
#define BPF_JGE   0x30
 
#define BPF_JGT   0x20
 
#define BPF_JMP   0x05
 
#define BPF_JSET   0x40
 
#define BPF_JUMP(code, k, jt, jf)   { (u_short)(code), jt, jf, k }
 
#define BPF_K   0x00
 
#define BPF_LD   0x00
 
#define BPF_LDX   0x01
 
#define BPF_LEN   0x80
 
#define BPF_LSH   0x60
 
#define BPF_MAJOR_VERSION   1
 
#define BPF_MAXBUFSIZE   0x8000
 
#define BPF_MEM   0x60
 
#define BPF_MEMWORDS   16
 
#define BPF_MINBUFSIZE   32
 
#define BPF_MINOR_VERSION   1
 
#define BPF_MISC   0x07
 
#define BPF_MISCOP(code)   ((code) & 0xf8)
 
#define BPF_MODE(code)   ((code) & 0xe0)
 
#define BPF_MSH   0xa0
 
#define BPF_MUL   0x20
 
#define BPF_NEG   0x80
 
#define BPF_OP(code)   ((code) & 0xf0)
 
#define BPF_OR   0x40
 
#define BPF_RELEASE   199606
 
#define BPF_RET   0x06
 
#define BPF_RSH   0x70
 
#define BPF_RVAL(code)   ((code) & 0x18)
 
#define BPF_SIZE(code)   ((code) & 0x18)
 
#define BPF_SRC(code)   ((code) & 0x08)
 
#define BPF_ST   0x02
 
#define BPF_STMT(code, k)   { (u_short)(code), 0, 0, k }
 
#define BPF_STX   0x03
 
#define BPF_SUB   0x10
 
#define BPF_TAX   0x00
 
#define BPF_TXA   0x80
 
#define BPF_W   0x00
 
#define BPF_WORDALIGN(x)   (((x)+(BPF_ALIGNMENT-1))&~(BPF_ALIGNMENT-1))
 
#define BPF_X   0x08
 
#define DLT_A429   184
 
#define DLT_A653_ICM   185
 
#define DLT_AIRONET_HEADER   120
 
#define DLT_APPLE_IP_OVER_IEEE1394   138
 
#define DLT_ARCNET   7 /* ARCNET, with BSD-style header */
 
#define DLT_ARCNET_LINUX   129 /* ARCNET */
 
#define DLT_ATM_CLIP   19 /* Linux Classical-IP over ATM */
 
#define DLT_ATM_RFC1483   11 /* LLC-encapsulated ATM */
 
#define DLT_AURORA   126 /* Xilinx Aurora link layer */
 
#define DLT_AX25   3 /* Amateur Radio AX.25 */
 
#define DLT_AX25_KISS   202
 
#define DLT_BACNET_MS_TP   165
 
#define DLT_BLUETOOTH_HCI_H4   187
 
#define DLT_BLUETOOTH_HCI_H4_WITH_PHDR   201
 
#define DLT_C_HDLC   104 /* Cisco HDLC */
 
#define DLT_C_HDLC_WITH_DIR   205 /* Cisco HDLC */
 
#define DLT_CAN20B   190
 
#define DLT_CHAOS   5 /* Chaos */
 
#define DLT_CHDLC   DLT_C_HDLC
 
#define DLT_CISCO_IOS   118
 
#define DLT_CLASS(x)   ((x) & 0x03ff0000)
 
#define DLT_CLASS_NETBSD_RAWAF   0x02240000
 
#define DLT_DOCSIS   143
 
#define DLT_ECONET   115
 
#define DLT_EN10MB   1 /* Ethernet (10Mb) */
 
#define DLT_EN3MB   2 /* Experimental Ethernet (3Mb) */
 
#define DLT_ENC   109
 
#define DLT_ERF   197
 
#define DLT_ERF_ETH   175 /* Ethernet */
 
#define DLT_ERF_POS   176 /* Packet-over-SONET */
 
#define DLT_FDDI   10 /* FDDI */
 
#define DLT_FLEXRAY   210
 
#define DLT_FRELAY   107
 
#define DLT_FRELAY_WITH_DIR   206 /* Frame Relay */
 
#define DLT_GCOM_SERIAL   173
 
#define DLT_GCOM_T1E1   172
 
#define DLT_GPF_F   171 /* GPF-F (ITU-T G.7041/Y.1303) */
 
#define DLT_GPF_T   170 /* GPF-T (ITU-T G.7041/Y.1303) */
 
#define DLT_GPRS_LLC   169 /* GPRS LLC */
 
#define DLT_HHDLC   121
 
#define DLT_IBM_SN   146
 
#define DLT_IBM_SP   145
 
#define DLT_IEEE802   6 /* 802.5 Token Ring */
 
#define DLT_IEEE802_11   105 /* IEEE 802.11 wireless */
 
#define DLT_IEEE802_11_RADIO   127 /* 802.11 plus radiotap radio header */
 
#define DLT_IEEE802_11_RADIO_AVS   163 /* 802.11 plus AVS radio header */
 
#define DLT_IEEE802_15_4   195
 
#define DLT_IEEE802_15_4_LINUX   191
 
#define DLT_IEEE802_15_4_NONASK_PHY   215
 
#define DLT_IEEE802_16_MAC_CPS   188
 
#define DLT_IEEE802_16_MAC_CPS_RADIO   193
 
#define DLT_IP_OVER_FC   122
 
#define DLT_IPFILTER   116
 
#define DLT_IPMB   199
 
#define DLT_IPMB_LINUX   209
 
#define DLT_IS_NETBSD_RAWAF(x)   (DLT_CLASS(x) == DLT_CLASS_NETBSD_RAWAF)
 
#define DLT_JUNIPER_ATM1   137
 
#define DLT_JUNIPER_ATM2   135
 
#define DLT_JUNIPER_CHDLC   181
 
#define DLT_JUNIPER_ES   132
 
#define DLT_JUNIPER_ETHER   178
 
#define DLT_JUNIPER_FRELAY   180
 
#define DLT_JUNIPER_GGSN   133
 
#define DLT_JUNIPER_ISM   194
 
#define DLT_JUNIPER_MFR   134
 
#define DLT_JUNIPER_MLFR   131
 
#define DLT_JUNIPER_MLPPP   130
 
#define DLT_JUNIPER_MONITOR   164
 
#define DLT_JUNIPER_PIC_PEER   174
 
#define DLT_JUNIPER_PPP   179
 
#define DLT_JUNIPER_PPPOE   167
 
#define DLT_JUNIPER_PPPOE_ATM   168
 
#define DLT_JUNIPER_SERVICES   136
 
#define DLT_JUNIPER_ST   200
 
#define DLT_JUNIPER_VP   183
 
#define DLT_LAPB_WITH_DIR   207 /* LAPB */
 
#define DLT_LAPD   203
 
#define DLT_LIN   212
 
#define DLT_LINUX_IRDA   144
 
#define DLT_LINUX_LAPD   177
 
#define DLT_LINUX_PPP_WITHDIRECTION   DLT_PPP_PPPD
 
#define DLT_LINUX_SLL   113
 
#define DLT_LOOP   108
 
#define DLT_LTALK   114
 
#define DLT_MFR   182
 
#define DLT_MOST   211
 
#define DLT_MTP2   140 /* MTP2, without pseudo-header */
 
#define DLT_MTP2_WITH_PHDR   139 /* pseudo-header with various info, followed by MTP2 */
 
#define DLT_MTP3   141 /* MTP3, without pseudo-header or MTP2 */
 
#define DLT_NETBSD_RAWAF(af)   (DLT_CLASS_NETBSD_RAWAF | (af))
 
#define DLT_NETBSD_RAWAF_AF(x)   ((x) & 0x0000ffff)
 
#define DLT_NULL   0 /* BSD loopback encapsulation */
 
#define DLT_PCI_EXP   125 /* PCI Express */
 
#define DLT_PFLOG   117
 
#define DLT_PPI   192
 
#define DLT_PPP   9 /* Point-to-point Protocol */
 
#define DLT_PPP_BSDOS   16 /* BSD/OS Point-to-point Protocol */
 
#define DLT_PPP_ETHER   51 /* PPP over Ethernet */
 
#define DLT_PPP_PPPD   166
 
#define DLT_PPP_SERIAL   50 /* PPP over serial with HDLC encapsulation */
 
#define DLT_PPP_WITH_DIR   204 /* PPP - don't confuse with DLT_PPP_WITH_DIRECTION */
 
#define DLT_PPP_WITH_DIRECTION   DLT_PPP_PPPD
 
#define DLT_PRISM_HEADER   119
 
#define DLT_PRONET   4 /* Proteon ProNET Token Ring */
 
#define DLT_RAIF1   198
 
#define DLT_RAW   12 /* raw IP */
 
#define DLT_REDBACK_SMARTEDGE   32
 
#define DLT_RIO   124 /* RapidIO */
 
#define DLT_SCCP   142 /* SCCP, without pseudo-header or MTP2 or MTP3 */
 
#define DLT_SITA   196
 
#define DLT_SLIP   8 /* Serial Line IP */
 
#define DLT_SLIP_BSDOS   15 /* BSD/OS Serial Line IP */
 
#define DLT_SUNATM   123 /* Solaris+SunATM */
 
#define DLT_SYMANTEC_FIREWALL   99
 
#define DLT_TZSP   128 /* Tazmen Sniffer Protocol */
 
#define DLT_USB   186
 
#define DLT_USB_LINUX   189
 
#define DLT_USER0   147
 
#define DLT_USER1   148
 
#define DLT_USER10   157
 
#define DLT_USER11   158
 
#define DLT_USER12   159
 
#define DLT_USER13   160
 
#define DLT_USER14   161
 
#define DLT_USER15   162
 
#define DLT_USER2   149
 
#define DLT_USER3   150
 
#define DLT_USER4   151
 
#define DLT_USER5   152
 
#define DLT_USER6   153
 
#define DLT_USER7   154
 
#define DLT_USER8   155
 
#define DLT_USER9   156
 
#define DLT_X2E_SERIAL   213
 
#define DLT_X2E_XORAYA   214
 

Typedefs

typedef int bpf_int32
 
typedef u_int bpf_u_int32
 

Functions

u_int bpf_filter ()
 
int bpf_validate ()
 

Macro Definition Documentation

◆ BPF_A

#define BPF_A   0x10

Definition at line 894 of file bpf.h.

◆ BPF_ABS

#define BPF_ABS   0x20

Definition at line 866 of file bpf.h.

◆ BPF_ADD

#define BPF_ADD   0x00

Definition at line 874 of file bpf.h.

◆ BPF_ALIGNMENT

#define BPF_ALIGNMENT   sizeof(bpf_int32)

Definition at line 76 of file bpf.h.

◆ BPF_ALU

#define BPF_ALU   0x04

Definition at line 854 of file bpf.h.

◆ BPF_AND

#define BPF_AND   0x50

Definition at line 879 of file bpf.h.

◆ BPF_B

#define BPF_B   0x10

Definition at line 863 of file bpf.h.

◆ BPF_CLASS

#define BPF_CLASS (   code)    ((code) & 0x07)

Definition at line 849 of file bpf.h.

◆ BPF_DIV

#define BPF_DIV   0x30

Definition at line 877 of file bpf.h.

◆ BPF_H

#define BPF_H   0x08

Definition at line 862 of file bpf.h.

◆ BPF_IMM

#define BPF_IMM   0x00

Definition at line 865 of file bpf.h.

◆ BPF_IND

#define BPF_IND   0x40

Definition at line 867 of file bpf.h.

◆ BPF_JA

#define BPF_JA   0x00

Definition at line 883 of file bpf.h.

◆ BPF_JEQ

#define BPF_JEQ   0x10

Definition at line 884 of file bpf.h.

◆ BPF_JGE

#define BPF_JGE   0x30

Definition at line 886 of file bpf.h.

◆ BPF_JGT

#define BPF_JGT   0x20

Definition at line 885 of file bpf.h.

◆ BPF_JMP

#define BPF_JMP   0x05

Definition at line 855 of file bpf.h.

◆ BPF_JSET

#define BPF_JSET   0x40

Definition at line 887 of file bpf.h.

◆ BPF_JUMP

#define BPF_JUMP (   code,
  k,
  jt,
  jf 
)    { (u_short)(code), jt, jf, k }

Definition at line 915 of file bpf.h.

◆ BPF_K

#define BPF_K   0x00

Definition at line 889 of file bpf.h.

◆ BPF_LD

#define BPF_LD   0x00

Definition at line 850 of file bpf.h.

◆ BPF_LDX

#define BPF_LDX   0x01

Definition at line 851 of file bpf.h.

◆ BPF_LEN

#define BPF_LEN   0x80

Definition at line 869 of file bpf.h.

◆ BPF_LSH

#define BPF_LSH   0x60

Definition at line 880 of file bpf.h.

◆ BPF_MAJOR_VERSION

#define BPF_MAJOR_VERSION   1

Definition at line 109 of file bpf.h.

◆ BPF_MAXBUFSIZE

#define BPF_MAXBUFSIZE   0x8000

Definition at line 82 of file bpf.h.

◆ BPF_MEM

#define BPF_MEM   0x60

Definition at line 868 of file bpf.h.

◆ BPF_MEMWORDS

#define BPF_MEMWORDS   16

Definition at line 928 of file bpf.h.

◆ BPF_MINBUFSIZE

#define BPF_MINBUFSIZE   32

Definition at line 83 of file bpf.h.

◆ BPF_MINOR_VERSION

#define BPF_MINOR_VERSION   1

Definition at line 110 of file bpf.h.

◆ BPF_MISC

#define BPF_MISC   0x07

Definition at line 857 of file bpf.h.

◆ BPF_MISCOP

#define BPF_MISCOP (   code)    ((code) & 0xf8)

Definition at line 897 of file bpf.h.

◆ BPF_MODE

#define BPF_MODE (   code)    ((code) & 0xe0)

Definition at line 864 of file bpf.h.

◆ BPF_MSH

#define BPF_MSH   0xa0

Definition at line 870 of file bpf.h.

◆ BPF_MUL

#define BPF_MUL   0x20

Definition at line 876 of file bpf.h.

◆ BPF_NEG

#define BPF_NEG   0x80

Definition at line 882 of file bpf.h.

◆ BPF_OP

#define BPF_OP (   code)    ((code) & 0xf0)

Definition at line 873 of file bpf.h.

◆ BPF_OR

#define BPF_OR   0x40

Definition at line 878 of file bpf.h.

◆ BPF_RELEASE

#define BPF_RELEASE   199606

Definition at line 61 of file bpf.h.

◆ BPF_RET

#define BPF_RET   0x06

Definition at line 856 of file bpf.h.

◆ BPF_RSH

#define BPF_RSH   0x70

Definition at line 881 of file bpf.h.

◆ BPF_RVAL

#define BPF_RVAL (   code)    ((code) & 0x18)

Definition at line 893 of file bpf.h.

◆ BPF_SIZE

#define BPF_SIZE (   code)    ((code) & 0x18)

Definition at line 860 of file bpf.h.

◆ BPF_SRC

#define BPF_SRC (   code)    ((code) & 0x08)

Definition at line 888 of file bpf.h.

◆ BPF_ST

#define BPF_ST   0x02

Definition at line 852 of file bpf.h.

◆ BPF_STMT

#define BPF_STMT (   code,
 
)    { (u_short)(code), 0, 0, k }

Definition at line 914 of file bpf.h.

◆ BPF_STX

#define BPF_STX   0x03

Definition at line 853 of file bpf.h.

◆ BPF_SUB

#define BPF_SUB   0x10

Definition at line 875 of file bpf.h.

◆ BPF_TAX

#define BPF_TAX   0x00

Definition at line 898 of file bpf.h.

◆ BPF_TXA

#define BPF_TXA   0x80

Definition at line 899 of file bpf.h.

◆ BPF_W

#define BPF_W   0x00

Definition at line 861 of file bpf.h.

◆ BPF_WORDALIGN

#define BPF_WORDALIGN (   x)    (((x)+(BPF_ALIGNMENT-1))&~(BPF_ALIGNMENT-1))

Definition at line 80 of file bpf.h.

◆ BPF_X

#define BPF_X   0x08

Definition at line 890 of file bpf.h.

◆ DLT_A429

#define DLT_A429   184

Definition at line 629 of file bpf.h.

◆ DLT_A653_ICM

#define DLT_A653_ICM   185

Definition at line 636 of file bpf.h.

◆ DLT_AIRONET_HEADER

#define DLT_AIRONET_HEADER   120

Definition at line 323 of file bpf.h.

◆ DLT_APPLE_IP_OVER_IEEE1394

#define DLT_APPLE_IP_OVER_IEEE1394   138

Definition at line 424 of file bpf.h.

◆ DLT_ARCNET

#define DLT_ARCNET   7 /* ARCNET, with BSD-style header */

Definition at line 135 of file bpf.h.

◆ DLT_ARCNET_LINUX

#define DLT_ARCNET_LINUX   129 /* ARCNET */

Definition at line 392 of file bpf.h.

◆ DLT_ATM_CLIP

#define DLT_ATM_CLIP   19 /* Linux Classical-IP over ATM */

Definition at line 179 of file bpf.h.

◆ DLT_ATM_RFC1483

#define DLT_ATM_RFC1483   11 /* LLC-encapsulated ATM */

Definition at line 149 of file bpf.h.

◆ DLT_AURORA

#define DLT_AURORA   126 /* Xilinx Aurora link layer */

Definition at line 362 of file bpf.h.

◆ DLT_AX25

#define DLT_AX25   3 /* Amateur Radio AX.25 */

Definition at line 131 of file bpf.h.

◆ DLT_AX25_KISS

#define DLT_AX25_KISS   202

Definition at line 750 of file bpf.h.

◆ DLT_BACNET_MS_TP

#define DLT_BACNET_MS_TP   165

Definition at line 528 of file bpf.h.

◆ DLT_BLUETOOTH_HCI_H4

#define DLT_BLUETOOTH_HCI_H4   187

Definition at line 648 of file bpf.h.

◆ DLT_BLUETOOTH_HCI_H4_WITH_PHDR

#define DLT_BLUETOOTH_HCI_H4_WITH_PHDR   201

Definition at line 741 of file bpf.h.

◆ DLT_C_HDLC

#define DLT_C_HDLC   104 /* Cisco HDLC */

Definition at line 224 of file bpf.h.

◆ DLT_C_HDLC_WITH_DIR

#define DLT_C_HDLC_WITH_DIR   205 /* Cisco HDLC */

Definition at line 766 of file bpf.h.

◆ DLT_CAN20B

#define DLT_CAN20B   190

Definition at line 669 of file bpf.h.

◆ DLT_CHAOS

#define DLT_CHAOS   5 /* Chaos */

Definition at line 133 of file bpf.h.

◆ DLT_CHDLC

#define DLT_CHDLC   DLT_C_HDLC

Definition at line 225 of file bpf.h.

◆ DLT_CISCO_IOS

#define DLT_CISCO_IOS   118

Definition at line 310 of file bpf.h.

◆ DLT_CLASS

#define DLT_CLASS (   x)    ((x) & 0x03ff0000)

Definition at line 830 of file bpf.h.

◆ DLT_CLASS_NETBSD_RAWAF

#define DLT_CLASS_NETBSD_RAWAF   0x02240000

Definition at line 839 of file bpf.h.

◆ DLT_DOCSIS

#define DLT_DOCSIS   143

Definition at line 438 of file bpf.h.

◆ DLT_ECONET

#define DLT_ECONET   115

Definition at line 288 of file bpf.h.

◆ DLT_EN10MB

#define DLT_EN10MB   1 /* Ethernet (10Mb) */

Definition at line 129 of file bpf.h.

◆ DLT_EN3MB

#define DLT_EN3MB   2 /* Experimental Ethernet (3Mb) */

Definition at line 130 of file bpf.h.

◆ DLT_ENC

#define DLT_ENC   109

Definition at line 265 of file bpf.h.

◆ DLT_ERF

#define DLT_ERF   197

Definition at line 714 of file bpf.h.

◆ DLT_ERF_ETH

#define DLT_ERF_ETH   175 /* Ethernet */

Definition at line 586 of file bpf.h.

◆ DLT_ERF_POS

#define DLT_ERF_POS   176 /* Packet-over-SONET */

Definition at line 587 of file bpf.h.

◆ DLT_FDDI

#define DLT_FDDI   10 /* FDDI */

Definition at line 138 of file bpf.h.

◆ DLT_FLEXRAY

#define DLT_FLEXRAY   210

Definition at line 785 of file bpf.h.

◆ DLT_FRELAY

#define DLT_FRELAY   107

Definition at line 242 of file bpf.h.

◆ DLT_FRELAY_WITH_DIR

#define DLT_FRELAY_WITH_DIR   206 /* Frame Relay */

Definition at line 767 of file bpf.h.

◆ DLT_GCOM_SERIAL

#define DLT_GCOM_SERIAL   173

Definition at line 571 of file bpf.h.

◆ DLT_GCOM_T1E1

#define DLT_GCOM_T1E1   172

Definition at line 570 of file bpf.h.

◆ DLT_GPF_F

#define DLT_GPF_F   171 /* GPF-F (ITU-T G.7041/Y.1303) */

Definition at line 564 of file bpf.h.

◆ DLT_GPF_T

#define DLT_GPF_T   170 /* GPF-T (ITU-T G.7041/Y.1303) */

Definition at line 563 of file bpf.h.

◆ DLT_GPRS_LLC

#define DLT_GPRS_LLC   169 /* GPRS LLC */

Definition at line 562 of file bpf.h.

◆ DLT_HHDLC

#define DLT_HHDLC   121

Definition at line 328 of file bpf.h.

◆ DLT_IBM_SN

#define DLT_IBM_SN   146

Definition at line 461 of file bpf.h.

◆ DLT_IBM_SP

#define DLT_IBM_SP   145

Definition at line 460 of file bpf.h.

◆ DLT_IEEE802

#define DLT_IEEE802   6 /* 802.5 Token Ring */

Definition at line 134 of file bpf.h.

◆ DLT_IEEE802_11

#define DLT_IEEE802_11   105 /* IEEE 802.11 wireless */

Definition at line 227 of file bpf.h.

◆ DLT_IEEE802_11_RADIO

#define DLT_IEEE802_11_RADIO   127 /* 802.11 plus radiotap radio header */

Definition at line 369 of file bpf.h.

◆ DLT_IEEE802_11_RADIO_AVS

#define DLT_IEEE802_11_RADIO_AVS   163 /* 802.11 plus AVS radio header */

Definition at line 515 of file bpf.h.

◆ DLT_IEEE802_15_4

#define DLT_IEEE802_15_4   195

Definition at line 701 of file bpf.h.

◆ DLT_IEEE802_15_4_LINUX

#define DLT_IEEE802_15_4_LINUX   191

Definition at line 675 of file bpf.h.

◆ DLT_IEEE802_15_4_NONASK_PHY

#define DLT_IEEE802_15_4_NONASK_PHY   215

Definition at line 822 of file bpf.h.

◆ DLT_IEEE802_16_MAC_CPS

#define DLT_IEEE802_16_MAC_CPS   188

Definition at line 654 of file bpf.h.

◆ DLT_IEEE802_16_MAC_CPS_RADIO

#define DLT_IEEE802_16_MAC_CPS_RADIO   193

Definition at line 687 of file bpf.h.

◆ DLT_IP_OVER_FC

#define DLT_IP_OVER_FC   122

Definition at line 338 of file bpf.h.

◆ DLT_IPFILTER

#define DLT_IPFILTER   116

Definition at line 293 of file bpf.h.

◆ DLT_IPMB

#define DLT_IPMB   199

Definition at line 728 of file bpf.h.

◆ DLT_IPMB_LINUX

#define DLT_IPMB_LINUX   209

Definition at line 779 of file bpf.h.

◆ DLT_IS_NETBSD_RAWAF

#define DLT_IS_NETBSD_RAWAF (   x)    (DLT_CLASS(x) == DLT_CLASS_NETBSD_RAWAF)

Definition at line 842 of file bpf.h.

◆ DLT_JUNIPER_ATM1

#define DLT_JUNIPER_ATM1   137

Definition at line 407 of file bpf.h.

◆ DLT_JUNIPER_ATM2

#define DLT_JUNIPER_ATM2   135

Definition at line 405 of file bpf.h.

◆ DLT_JUNIPER_CHDLC

#define DLT_JUNIPER_CHDLC   181

Definition at line 607 of file bpf.h.

◆ DLT_JUNIPER_ES

#define DLT_JUNIPER_ES   132

Definition at line 402 of file bpf.h.

◆ DLT_JUNIPER_ETHER

#define DLT_JUNIPER_ETHER   178

Definition at line 604 of file bpf.h.

◆ DLT_JUNIPER_FRELAY

#define DLT_JUNIPER_FRELAY   180

Definition at line 606 of file bpf.h.

◆ DLT_JUNIPER_GGSN

#define DLT_JUNIPER_GGSN   133

Definition at line 403 of file bpf.h.

◆ DLT_JUNIPER_ISM

#define DLT_JUNIPER_ISM   194

Definition at line 695 of file bpf.h.

◆ DLT_JUNIPER_MFR

#define DLT_JUNIPER_MFR   134

Definition at line 404 of file bpf.h.

◆ DLT_JUNIPER_MLFR

#define DLT_JUNIPER_MLFR   131

Definition at line 401 of file bpf.h.

◆ DLT_JUNIPER_MLPPP

#define DLT_JUNIPER_MLPPP   130

Definition at line 400 of file bpf.h.

◆ DLT_JUNIPER_MONITOR

#define DLT_JUNIPER_MONITOR   164

Definition at line 523 of file bpf.h.

◆ DLT_JUNIPER_PIC_PEER

#define DLT_JUNIPER_PIC_PEER   174

Definition at line 578 of file bpf.h.

◆ DLT_JUNIPER_PPP

#define DLT_JUNIPER_PPP   179

Definition at line 605 of file bpf.h.

◆ DLT_JUNIPER_PPPOE

#define DLT_JUNIPER_PPPOE   167

Definition at line 559 of file bpf.h.

◆ DLT_JUNIPER_PPPOE_ATM

#define DLT_JUNIPER_PPPOE_ATM   168

Definition at line 560 of file bpf.h.

◆ DLT_JUNIPER_SERVICES

#define DLT_JUNIPER_SERVICES   136

Definition at line 406 of file bpf.h.

◆ DLT_JUNIPER_ST

#define DLT_JUNIPER_ST   200

Definition at line 735 of file bpf.h.

◆ DLT_JUNIPER_VP

#define DLT_JUNIPER_VP   183

Definition at line 620 of file bpf.h.

◆ DLT_LAPB_WITH_DIR

#define DLT_LAPB_WITH_DIR   207 /* LAPB */

Definition at line 768 of file bpf.h.

◆ DLT_LAPD

#define DLT_LAPD   203

Definition at line 757 of file bpf.h.

◆ DLT_LIN

#define DLT_LIN   212

Definition at line 799 of file bpf.h.

◆ DLT_LINUX_IRDA

#define DLT_LINUX_IRDA   144

Definition at line 455 of file bpf.h.

◆ DLT_LINUX_LAPD

#define DLT_LINUX_LAPD   177

Definition at line 595 of file bpf.h.

◆ DLT_LINUX_PPP_WITHDIRECTION

#define DLT_LINUX_PPP_WITHDIRECTION   DLT_PPP_PPPD

Definition at line 551 of file bpf.h.

◆ DLT_LINUX_SLL

#define DLT_LINUX_SLL   113

Definition at line 278 of file bpf.h.

◆ DLT_LOOP

#define DLT_LOOP   108

Definition at line 254 of file bpf.h.

◆ DLT_LTALK

#define DLT_LTALK   114

Definition at line 283 of file bpf.h.

◆ DLT_MFR

#define DLT_MFR   182

Definition at line 612 of file bpf.h.

◆ DLT_MOST

#define DLT_MOST   211

Definition at line 792 of file bpf.h.

◆ DLT_MTP2

#define DLT_MTP2   140 /* MTP2, without pseudo-header */

Definition at line 431 of file bpf.h.

◆ DLT_MTP2_WITH_PHDR

#define DLT_MTP2_WITH_PHDR   139 /* pseudo-header with various info, followed by MTP2 */

Definition at line 430 of file bpf.h.

◆ DLT_MTP3

#define DLT_MTP3   141 /* MTP3, without pseudo-header or MTP2 */

Definition at line 432 of file bpf.h.

◆ DLT_NETBSD_RAWAF

#define DLT_NETBSD_RAWAF (   af)    (DLT_CLASS_NETBSD_RAWAF | (af))

Definition at line 840 of file bpf.h.

◆ DLT_NETBSD_RAWAF_AF

#define DLT_NETBSD_RAWAF_AF (   x)    ((x) & 0x0000ffff)

Definition at line 841 of file bpf.h.

◆ DLT_NULL

#define DLT_NULL   0 /* BSD loopback encapsulation */

Definition at line 128 of file bpf.h.

◆ DLT_PCI_EXP

#define DLT_PCI_EXP   125 /* PCI Express */

Definition at line 361 of file bpf.h.

◆ DLT_PFLOG

#define DLT_PFLOG   117

Definition at line 305 of file bpf.h.

◆ DLT_PPI

#define DLT_PPI   192

Definition at line 681 of file bpf.h.

◆ DLT_PPP

#define DLT_PPP   9 /* Point-to-point Protocol */

Definition at line 137 of file bpf.h.

◆ DLT_PPP_BSDOS

#define DLT_PPP_BSDOS   16 /* BSD/OS Point-to-point Protocol */

Definition at line 170 of file bpf.h.

◆ DLT_PPP_ETHER

#define DLT_PPP_ETHER   51 /* PPP over Ethernet */

Definition at line 193 of file bpf.h.

◆ DLT_PPP_PPPD

#define DLT_PPP_PPPD   166

Definition at line 544 of file bpf.h.

◆ DLT_PPP_SERIAL

#define DLT_PPP_SERIAL   50 /* PPP over serial with HDLC encapsulation */

Definition at line 192 of file bpf.h.

◆ DLT_PPP_WITH_DIR

#define DLT_PPP_WITH_DIR   204 /* PPP - don't confuse with DLT_PPP_WITH_DIRECTION */

Definition at line 765 of file bpf.h.

◆ DLT_PPP_WITH_DIRECTION

#define DLT_PPP_WITH_DIRECTION   DLT_PPP_PPPD

Definition at line 550 of file bpf.h.

◆ DLT_PRISM_HEADER

#define DLT_PRISM_HEADER   119

Definition at line 317 of file bpf.h.

◆ DLT_PRONET

#define DLT_PRONET   4 /* Proteon ProNET Token Ring */

Definition at line 132 of file bpf.h.

◆ DLT_RAIF1

#define DLT_RAIF1   198

Definition at line 721 of file bpf.h.

◆ DLT_RAW

#define DLT_RAW   12 /* raw IP */

Definition at line 154 of file bpf.h.

◆ DLT_REDBACK_SMARTEDGE

#define DLT_REDBACK_SMARTEDGE   32

Definition at line 185 of file bpf.h.

◆ DLT_RIO

#define DLT_RIO   124 /* RapidIO */

Definition at line 360 of file bpf.h.

◆ DLT_SCCP

#define DLT_SCCP   142 /* SCCP, without pseudo-header or MTP2 or MTP3 */

Definition at line 433 of file bpf.h.

◆ DLT_SITA

#define DLT_SITA   196

Definition at line 707 of file bpf.h.

◆ DLT_SLIP

#define DLT_SLIP   8 /* Serial Line IP */

Definition at line 136 of file bpf.h.

◆ DLT_SLIP_BSDOS

#define DLT_SLIP_BSDOS   15 /* BSD/OS Serial Line IP */

Definition at line 169 of file bpf.h.

◆ DLT_SUNATM

#define DLT_SUNATM   123 /* Solaris+SunATM */

Definition at line 354 of file bpf.h.

◆ DLT_SYMANTEC_FIREWALL

#define DLT_SYMANTEC_FIREWALL   99

Definition at line 202 of file bpf.h.

◆ DLT_TZSP

#define DLT_TZSP   128 /* Tazmen Sniffer Protocol */

Definition at line 379 of file bpf.h.

◆ DLT_USB

#define DLT_USB   186

Definition at line 642 of file bpf.h.

◆ DLT_USB_LINUX

#define DLT_USB_LINUX   189

Definition at line 660 of file bpf.h.

◆ DLT_USER0

#define DLT_USER0   147

Definition at line 488 of file bpf.h.

◆ DLT_USER1

#define DLT_USER1   148

Definition at line 489 of file bpf.h.

◆ DLT_USER10

#define DLT_USER10   157

Definition at line 498 of file bpf.h.

◆ DLT_USER11

#define DLT_USER11   158

Definition at line 499 of file bpf.h.

◆ DLT_USER12

#define DLT_USER12   159

Definition at line 500 of file bpf.h.

◆ DLT_USER13

#define DLT_USER13   160

Definition at line 501 of file bpf.h.

◆ DLT_USER14

#define DLT_USER14   161

Definition at line 502 of file bpf.h.

◆ DLT_USER15

#define DLT_USER15   162

Definition at line 503 of file bpf.h.

◆ DLT_USER2

#define DLT_USER2   149

Definition at line 490 of file bpf.h.

◆ DLT_USER3

#define DLT_USER3   150

Definition at line 491 of file bpf.h.

◆ DLT_USER4

#define DLT_USER4   151

Definition at line 492 of file bpf.h.

◆ DLT_USER5

#define DLT_USER5   152

Definition at line 493 of file bpf.h.

◆ DLT_USER6

#define DLT_USER6   153

Definition at line 494 of file bpf.h.

◆ DLT_USER7

#define DLT_USER7   154

Definition at line 495 of file bpf.h.

◆ DLT_USER8

#define DLT_USER8   155

Definition at line 496 of file bpf.h.

◆ DLT_USER9

#define DLT_USER9   156

Definition at line 497 of file bpf.h.

◆ DLT_X2E_SERIAL

#define DLT_X2E_SERIAL   213

Definition at line 805 of file bpf.h.

◆ DLT_X2E_XORAYA

#define DLT_X2E_XORAYA   214

Definition at line 811 of file bpf.h.

Typedef Documentation

◆ bpf_int32

typedef int bpf_int32

Definition at line 67 of file bpf.h.

◆ bpf_u_int32

typedef u_int bpf_u_int32

Definition at line 68 of file bpf.h.

Function Documentation

◆ bpf_filter()

u_int bpf_filter ( )

◆ bpf_validate()

int bpf_validate ( )


soem
Author(s): Arthur Ketels and M.J.G. van den Molengraft
autogenerated on Wed Mar 2 2022 01:01:49