]> The Tcpdump Group git mirrors - libpcap/blobdiff - pcap/bpf.h
Update config.{guess,sub}, timestamps 2023-01-01,2023-01-21
[libpcap] / pcap / bpf.h
index bfc60d2c72cf782346c409d4b4a1160341e74f5c..3970d0a18426321a2ad1d8278488521df2dc18bb 100644 (file)
@@ -80,6 +80,7 @@
 #define lib_pcap_bpf_h
 
 #include <pcap/funcattrs.h>
+#include <pcap/dlt.h>
 
 #ifdef __cplusplus
 extern "C" {
@@ -117,8 +118,6 @@ struct bpf_program {
        struct bpf_insn *bf_insns;
 };
 
-#include <pcap/dlt.h>
-
 /*
  * The instruction encodings.
  *
@@ -150,7 +149,7 @@ struct bpf_program {
 #define                BPF_B           0x10
 /*                             0x18    reserved; used by BSD/OS */
 #define BPF_MODE(code) ((code) & 0xe0)
-#define                BPF_IMM         0x00
+#define                BPF_IMM 0x00
 #define                BPF_ABS         0x20
 #define                BPF_IND         0x40
 #define                BPF_MEM         0x60
@@ -244,8 +243,8 @@ struct bpf_program {
  */
 struct bpf_insn {
        u_short code;
-       u_char  jt;
-       u_char  jf;
+       u_char  jt;
+       u_char  jf;
        bpf_u_int32 k;
 };