More POSIX fixes

This commit is contained in:
qeeg
2021-01-07 10:22:58 -06:00
parent 26fe5dcca4
commit 6015675761
4 changed files with 7 additions and 4 deletions

View File

@@ -81,15 +81,15 @@ struct bpf_program {
typedef struct pcap_if pcap_if_t;
typedef struct timeval {
typedef struct net_timeval {
long tv_sec;
long tv_usec;
} timeval;
} net_timeval;
#define PCAP_ERRBUF_SIZE 256
struct pcap_pkthdr {
struct timeval ts;
struct net_timeval ts;
bpf_u_int32 caplen;
bpf_u_int32 len;
};