54 #ifndef BPF_MAJOR_VERSION 61 #define BPF_RELEASE 199606 76 #define BPF_ALIGNMENT sizeof(bpf_int32) 78 #define BPF_ALIGNMENT sizeof(long) 80 #define BPF_WORDALIGN(x) (((x)+(BPF_ALIGNMENT-1))&~(BPF_ALIGNMENT-1)) 82 #define BPF_MAXBUFSIZE 0x8000 83 #define BPF_MINBUFSIZE 32 109 #define BPF_MAJOR_VERSION 1 110 #define BPF_MINOR_VERSION 1 134 #define DLT_IEEE802 6 149 #define DLT_ATM_RFC1483 11 163 #if defined(__NetBSD__) || defined(__FreeBSD__) 164 #ifndef DLT_SLIP_BSDOS 165 #define DLT_SLIP_BSDOS 13 166 #define DLT_PPP_BSDOS 14 169 #define DLT_SLIP_BSDOS 15 170 #define DLT_PPP_BSDOS 16 179 #define DLT_ATM_CLIP 19 185 #define DLT_REDBACK_SMARTEDGE 32 192 #define DLT_PPP_SERIAL 50 193 #define DLT_PPP_ETHER 51 202 #define DLT_SYMANTEC_FIREWALL 99 224 #define DLT_C_HDLC 104 225 #define DLT_CHDLC DLT_C_HDLC 227 #define DLT_IEEE802_11 105 242 #define DLT_FRELAY 107 278 #define DLT_LINUX_SLL 113 283 #define DLT_LTALK 114 288 #define DLT_ECONET 115 293 #define DLT_IPFILTER 116 302 #define DLT_OLD_PFLOG 17 303 #define DLT_PFSYNC 18 305 #define DLT_PFLOG 117 310 #define DLT_CISCO_IOS 118 317 #define DLT_PRISM_HEADER 119 323 #define DLT_AIRONET_HEADER 120 328 #define DLT_HHDLC 121 338 #define DLT_IP_OVER_FC 122 354 #define DLT_SUNATM 123 361 #define DLT_PCI_EXP 125 362 #define DLT_AURORA 126 369 #define DLT_IEEE802_11_RADIO 127 392 #define DLT_ARCNET_LINUX 129 400 #define DLT_JUNIPER_MLPPP 130 401 #define DLT_JUNIPER_MLFR 131 402 #define DLT_JUNIPER_ES 132 403 #define DLT_JUNIPER_GGSN 133 404 #define DLT_JUNIPER_MFR 134 405 #define DLT_JUNIPER_ATM2 135 406 #define DLT_JUNIPER_SERVICES 136 407 #define DLT_JUNIPER_ATM1 137 424 #define DLT_APPLE_IP_OVER_IEEE1394 138 430 #define DLT_MTP2_WITH_PHDR 139 438 #define DLT_DOCSIS 143 455 #define DLT_LINUX_IRDA 144 460 #define DLT_IBM_SP 145 461 #define DLT_IBM_SN 146 488 #define DLT_USER0 147 489 #define DLT_USER1 148 490 #define DLT_USER2 149 491 #define DLT_USER3 150 492 #define DLT_USER4 151 493 #define DLT_USER5 152 494 #define DLT_USER6 153 495 #define DLT_USER7 154 496 #define DLT_USER8 155 497 #define DLT_USER9 156 498 #define DLT_USER10 157 499 #define DLT_USER11 158 500 #define DLT_USER12 159 501 #define DLT_USER13 160 502 #define DLT_USER14 161 503 #define DLT_USER15 162 515 #define DLT_IEEE802_11_RADIO_AVS 163 523 #define DLT_JUNIPER_MONITOR 164 528 #define DLT_BACNET_MS_TP 165 544 #define DLT_PPP_PPPD 166 550 #define DLT_PPP_WITH_DIRECTION DLT_PPP_PPPD 551 #define DLT_LINUX_PPP_WITHDIRECTION DLT_PPP_PPPD 559 #define DLT_JUNIPER_PPPOE 167 560 #define DLT_JUNIPER_PPPOE_ATM 168 562 #define DLT_GPRS_LLC 169 563 #define DLT_GPF_T 170 564 #define DLT_GPF_F 171 570 #define DLT_GCOM_T1E1 172 571 #define DLT_GCOM_SERIAL 173 578 #define DLT_JUNIPER_PIC_PEER 174 586 #define DLT_ERF_ETH 175 587 #define DLT_ERF_POS 176 595 #define DLT_LINUX_LAPD 177 604 #define DLT_JUNIPER_ETHER 178 605 #define DLT_JUNIPER_PPP 179 606 #define DLT_JUNIPER_FRELAY 180 607 #define DLT_JUNIPER_CHDLC 181 620 #define DLT_JUNIPER_VP 183 636 #define DLT_A653_ICM 185 648 #define DLT_BLUETOOTH_HCI_H4 187 654 #define DLT_IEEE802_16_MAC_CPS 188 660 #define DLT_USB_LINUX 189 669 #define DLT_CAN20B 190 675 #define DLT_IEEE802_15_4_LINUX 191 687 #define DLT_IEEE802_16_MAC_CPS_RADIO 193 695 #define DLT_JUNIPER_ISM 194 701 #define DLT_IEEE802_15_4 195 721 #define DLT_RAIF1 198 735 #define DLT_JUNIPER_ST 200 741 #define DLT_BLUETOOTH_HCI_H4_WITH_PHDR 201 750 #define DLT_AX25_KISS 202 765 #define DLT_PPP_WITH_DIR 204 766 #define DLT_C_HDLC_WITH_DIR 205 767 #define DLT_FRELAY_WITH_DIR 206 768 #define DLT_LAPB_WITH_DIR 207 779 #define DLT_IPMB_LINUX 209 785 #define DLT_FLEXRAY 210 805 #define DLT_X2E_SERIAL 213 811 #define DLT_X2E_XORAYA 214 822 #define DLT_IEEE802_15_4_NONASK_PHY 215 830 #define DLT_CLASS(x) ((x) & 0x03ff0000) 839 #define DLT_CLASS_NETBSD_RAWAF 0x02240000 840 #define DLT_NETBSD_RAWAF(af) (DLT_CLASS_NETBSD_RAWAF | (af)) 841 #define DLT_NETBSD_RAWAF_AF(x) ((x) & 0x0000ffff) 842 #define DLT_IS_NETBSD_RAWAF(x) (DLT_CLASS(x) == DLT_CLASS_NETBSD_RAWAF) 849 #define BPF_CLASS(code) ((code) & 0x07) 857 #define BPF_MISC 0x07 860 #define BPF_SIZE(code) ((code) & 0x18) 864 #define BPF_MODE(code) ((code) & 0xe0) 873 #define BPF_OP(code) ((code) & 0xf0) 887 #define BPF_JSET 0x40 888 #define BPF_SRC(code) ((code) & 0x08) 893 #define BPF_RVAL(code) ((code) & 0x18) 897 #define BPF_MISCOP(code) ((code) & 0xf8) 914 #define BPF_STMT(code, k) { (u_short)(code), 0, 0, k } 915 #define BPF_JUMP(code, k, jt, jf) { (u_short)(code), jt, jf, k } 917 #if __STDC__ || defined(__cplusplus) 928 #define BPF_MEMWORDS 16
A single BPF pseudo-instruction.
A BPF pseudo-assembly program.
struct bpf_insn * bf_insns
A pointer to the first instruction of the program.