Lines Matching refs:u_int

51 	u_int caplen = hdr->caplen;  in swap_pflog_header()
52 u_int length = hdr->len; in swap_pflog_header()
53 u_int pfloghdr_length; in swap_pflog_header()
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()
64 if (pfloghdr_length < (u_int) (offsetof(struct pfloghdr, uid) + sizeof 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()
81 if (caplen < (u_int) (offsetof(struct pfloghdr, rule_uid) + sizeof pflhdr->rule_uid) || in swap_pflog_header()
82 length < (u_int) (offsetof(struct pfloghdr, rule_uid) + sizeof pflhdr->rule_uid)) { in swap_pflog_header()
86 if (pfloghdr_length < (u_int) (offsetof(struct pfloghdr, rule_uid) + sizeof pflhdr->rule_uid)) { in swap_pflog_header()
92 if (caplen < (u_int) (offsetof(struct pfloghdr, rule_pid) + sizeof pflhdr->rule_pid) || in swap_pflog_header()
93 length < (u_int) (offsetof(struct pfloghdr, rule_pid) + sizeof pflhdr->rule_pid)) { in swap_pflog_header()
97 if (pfloghdr_length < (u_int) (offsetof(struct pfloghdr, rule_pid) + sizeof pflhdr->rule_pid)) { in swap_pflog_header()
120 swap_socketcan_header(uint16_t protocol, u_int caplen, u_int length, in swap_socketcan_header()
135 if (caplen < (u_int) (offsetof(pcap_can_socketcan_hdr, can_id) + sizeof hdrp->can_id) || in swap_socketcan_header()
136 length < (u_int) (offsetof(pcap_can_socketcan_hdr, can_id) + sizeof hdrp->can_id)) { in swap_socketcan_header()
150 …if (caplen < (u_int) (offsetof(pcap_can_socketcan_xl_hdr, priority_vcid) + sizeof xl_hdrp->priorit… in swap_socketcan_header()
151 …length < (u_int) (offsetof(pcap_can_socketcan_xl_hdr, priority_vcid) + sizeof xl_hdrp->priority_vc… in swap_socketcan_header()
156 …if (caplen < (u_int) (offsetof(pcap_can_socketcan_xl_hdr, payload_length) + sizeof xl_hdrp->payloa… in swap_socketcan_header()
157 …length < (u_int) (offsetof(pcap_can_socketcan_xl_hdr, payload_length) + sizeof xl_hdrp->payload_le… in swap_socketcan_header()
162 …if (caplen < (u_int) (offsetof(pcap_can_socketcan_xl_hdr, acceptance_field) + sizeof xl_hdrp->acce… in swap_socketcan_header()
163 …length < (u_int) (offsetof(pcap_can_socketcan_xl_hdr, acceptance_field) + sizeof xl_hdrp->acceptan… in swap_socketcan_header()
190 u_int caplen = hdr->caplen; in swap_linux_sll_socketcan_header()
191 u_int length = hdr->len; in swap_linux_sll_socketcan_header()
194 if (caplen < (u_int) sizeof(struct sll_header) || in swap_linux_sll_socketcan_header()
195 length < (u_int) sizeof(struct sll_header)) { in swap_linux_sll_socketcan_header()
204 caplen - (u_int) sizeof(struct sll_header), in swap_linux_sll_socketcan_header()
205 length - (u_int) sizeof(struct sll_header), in swap_linux_sll_socketcan_header()
215 u_int caplen = hdr->caplen; in swap_linux_sll2_socketcan_header()
216 u_int length = hdr->len; in swap_linux_sll2_socketcan_header()
219 if (caplen < (u_int) sizeof(struct sll2_header) || in swap_linux_sll2_socketcan_header()
220 length < (u_int) sizeof(struct sll2_header)) { in swap_linux_sll2_socketcan_header()
229 caplen - (u_int) sizeof(struct sll2_header), in swap_linux_sll2_socketcan_header()
230 length - (u_int) sizeof(struct sll2_header), in swap_linux_sll2_socketcan_header()
399 u_int caplen = hdr->caplen; in swap_nflog_header()
400 u_int length = hdr->len; in swap_nflog_header()
401 u_int size; in swap_nflog_header()
403 if (caplen < (u_int) sizeof(nflog_hdr_t) || in swap_nflog_header()
404 length < (u_int) sizeof(nflog_hdr_t)) { in swap_nflog_header()
571 u_int len; in pcapint_post_process()