Home
last modified time | relevance | path

Searched refs:pflhdr (Results 1 – 1 of 1) sorted by relevance

/freebsd/contrib/libpcap/
H A Dpcap-util.c54 struct pfloghdr *pflhdr = (struct pfloghdr *)buf; in swap_pflog_header() local
56 if (caplen < (u_int) (offsetof(struct pfloghdr, uid) + sizeof pflhdr->uid) || in swap_pflog_header()
57 length < (u_int) (offsetof(struct pfloghdr, uid) + sizeof pflhdr->uid)) { in swap_pflog_header()
62 pfloghdr_length = pflhdr->length; in swap_pflog_header()
64 if (pfloghdr_length < (u_int) (offsetof(struct pfloghdr, uid) + sizeof pflhdr->uid)) { in swap_pflog_header()
68 pflhdr->uid = SWAPLONG(pflhdr->uid); in swap_pflog_header()
70 if (caplen < (u_int) (offsetof(struct pfloghdr, pid) + sizeof pflhdr->pid) || in swap_pflog_header()
71 length < (u_int) (offsetof(struct pfloghdr, pid) + sizeof pflhdr->pid)) { in swap_pflog_header()
75 if (pfloghdr_length < (u_int) (offsetof(struct pfloghdr, pid) + sizeof pflhdr->pid)) { in swap_pflog_header()
79 pflhdr->pid = SWAPLONG(pflhdr->pid); in swap_pflog_header()
[all …]