]> 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 f813258224c33af00d77127b84d5c4f2fcebdf09..3970d0a18426321a2ad1d8278488521df2dc18bb 100644 (file)
 #if !defined(_NET_BPF_H_) && !defined(_NET_BPF_H_INCLUDED) && !defined(_BPF_H_) && !defined(_H_BPF) && !defined(lib_pcap_bpf_h)
 #define lib_pcap_bpf_h
 
-/* u_char, u_short and u_int */
-#if defined(_WIN32)
-  #include <winsock2.h>
-#elif defined(HAVE_SYS_TYPES_H)
-  #include <sys/types.h>
-#endif
-
 #include <pcap/funcattrs.h>
 #include <pcap/dlt.h>
 
@@ -156,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
@@ -250,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;
 };