Home | History | Annotate | Download | only in pcap

Lines Matching defs:code

5  * This code is derived from the Stanford/CMU enet packet filter,
6 * (net/enet.c) distributed as part of 4.3BSD, and code contributed
13 * 1. Redistributions of source code must retain the above copyright
45 * the stuff needed for the code generator and the userland BPF
51 * At least two programs found by Google Code Search explicitly includes
390 * except for FreeBSD; anybody who wants to compile, on FreeBSD, code
395 * use 18. Code that uses pcap_datalink() to determine the link-layer
398 * capture files; code that doesn't, such as the code in Wireshark,
1253 #define BPF_CLASS(code) ((code) & 0x07)
1264 #define BPF_SIZE(code) ((code) & 0x18)
1268 #define BPF_MODE(code) ((code) & 0xe0)
1277 #define BPF_OP(code) ((code) & 0xf0)
1292 #define BPF_SRC(code) ((code) & 0x08)
1297 #define BPF_RVAL(code) ((code) & 0x18)
1301 #define BPF_MISCOP(code) ((code) & 0xf8)
1309 u_short code;
1318 #define BPF_STMT(code, k) { (u_short)(code), 0, 0, k }
1319 #define BPF_JUMP(code, k, jt, jf) { (u_short)(code), jt, jf, k }