| /src/external/bsd/libpcap/dist/ |
| pcap-util.c | 51 u_int caplen = hdr->caplen; local 56 if (caplen < (u_int) (offsetof(struct pfloghdr, uid) + sizeof pflhdr->uid) || 70 if (caplen < (u_int) (offsetof(struct pfloghdr, pid) + sizeof pflhdr->pid) || 81 if (caplen < (u_int) (offsetof(struct pfloghdr, rule_uid) + sizeof pflhdr->rule_uid) || 92 if (caplen < (u_int) (offsetof(struct pfloghdr, rule_pid) + sizeof pflhdr->rule_pid) || 120 swap_socketcan_header(uint16_t protocol, u_int caplen, u_int length, 135 if (caplen < (u_int) (offsetof(pcap_can_socketcan_hdr, can_id) + sizeof hdrp->can_id) || 150 if (caplen < (u_int) (offsetof(pcap_can_socketcan_xl_hdr, priority_vcid) + sizeof xl_hdrp->priority_vcid) || 156 if (caplen < (u_int) (offsetof(pcap_can_socketcan_xl_hdr, payload_length) + sizeof xl_hdrp->payload_length) | 190 u_int caplen = hdr->caplen; local 215 u_int caplen = hdr->caplen; local 399 u_int caplen = hdr->caplen; local [all...] |
| /src/external/bsd/tcpdump/dist/ |
| print-bt.c | 50 * 'h->len' is the length of the packet off the wire, and 'h->caplen' 57 u_int caplen = h->caplen; local 64 caplen -= BT_HDRLEN; 72 ND_DEFAULTPRINT(p, caplen);
|
| print-cip.c | 51 * 'h->len' is the length of the packet off the wire, and 'h->caplen' 57 u_int caplen = h->caplen; local 74 llc_hdrlen = llc_print(ndo, p, length, caplen, NULL, NULL); 78 ND_DEFAULTPRINT(p, caplen);
|
| print-unsupported.c | 31 hex_and_ascii_print(ndo, "\n\t", p, h->caplen);
|
| print-ppi.c | 66 * 'h->len' is the length of the packet off the wire, and 'h->caplen' 75 u_int caplen = h->caplen; local 83 if (caplen < sizeof(ppi_header_t)) { 85 ndo->ndo_ll_hdr_len += caplen; 96 ndo->ndo_ll_hdr_len += caplen; 99 if (caplen < len) { 105 ndo->ndo_ll_hdr_len += caplen; 114 caplen -= len; 120 nhdr.caplen = caplen [all...] |
| print-802_15_4.c | 933 u_int caplen, 942 if (caplen < 2) { 965 if (caplen < 2U + ie_len) { 987 caplen -= 2 + ie_len; 995 } while (caplen != 0); 1420 u_int caplen) 1427 if (caplen < 2) { 1447 if (caplen < 2U + ie_len) { 1504 caplen -= 2 + ie_len; 1508 } while (caplen != 0) 2524 u_int caplen = h->caplen; local [all...] |
| print-arcnet.c | 107 u_int length, u_int caplen); 180 * 'h->len' is the length of the packet off the wire, and 'h->caplen' 186 u_int caplen = h->caplen; local 196 if (caplen < ARC_HDRLEN) { 197 ndo->ndo_ll_hdr_len += caplen; 217 if (caplen < ARC_HDRNEWLEN) { 220 ndo->ndo_ll_hdr_len += caplen; 226 if (caplen < ARC_HDRNEWLEN_EXC) { 229 ndo->ndo_ll_hdr_len += caplen; 279 u_int caplen = h->caplen; local [all...] |
| print-sll.c | 220 * 'h->len' is the length of the packet off the wire, and 'h->caplen' 226 u_int caplen = h->caplen; local 246 caplen -= SLL_HDR_LEN; 259 ndo->ndo_ll_hdr_len += ieee802_11_radio_print(ndo, p, length, caplen); 287 llc_hdrlen = llc_print(ndo, p, length, caplen, NULL, NULL); 299 ND_DEFAULTPRINT(p, caplen); 307 if (caplen < 4) { 310 ndo->ndo_ll_hdr_len += hdrlen + caplen; 328 caplen -= 4 409 u_int caplen = h->caplen; local [all...] |
| print-ether.c | 142 u_int caplen, 156 if (length < caplen) { 157 ND_PRINT("[length %u < caplen %u]", length, caplen); 161 if (caplen < ETHER_HDRLEN + switch_tag_len) { 163 return caplen; 182 caplen -= 2*MAC_ADDR_LEN; 196 caplen -= switch_tag_len; 208 caplen -= 2; 227 int ret = macsec_print(ndo, &p, &length, &caplen, &hdrlen [all...] |
| print-brcmtag.c | 115 u_int caplen = h->caplen; local 120 ether_switch_tag_print(ndo, p, length, caplen, 128 u_int caplen = h->caplen; local 141 caplen -= BRCM_TAG_LEN; 147 ether_print(ndo, p, length, caplen, NULL, NULL);
|
| print-ipoib.c | 66 ipoib_print(netdissect_options *ndo, const u_char *p, u_int length, u_int caplen, 73 if (caplen < IPOIB_HDRLEN) { 75 ndo->ndo_ll_hdr_len += caplen; 95 caplen -= IPOIB_HDRLEN; 99 if (ethertype_print(ndo, ether_type, p, length, caplen, NULL, NULL) == 0) { 108 ND_DEFAULTPRINT(p, caplen); 115 * 'h->len' is the length of the packet off the wire, and 'h->caplen' 122 ipoib_print(ndo, p, h->len, h->caplen, NULL, NULL);
|
| print-llc.c | 153 llc_print(netdissect_options *ndo, const u_char *p, u_int length, u_int caplen, 162 if (caplen < 3) { 164 ND_DEFAULTPRINT((const u_char *)p, caplen); 165 return (caplen); 169 ND_DEFAULTPRINT((const u_char *)p, caplen); 194 if (caplen < 4) { 196 ND_DEFAULTPRINT((const u_char *)p, caplen); 197 return (caplen); 201 ND_DEFAULTPRINT((const u_char *)p, caplen); 260 caplen -= hdrlen [all...] |
| print-macsec.c | 114 u_int caplen = *caplenp; local 124 if (caplen < MACSEC_SECTAG_LEN_NOSCI) { 127 return hdrlen + caplen; 132 return hdrlen + caplen; 137 if (caplen < MACSEC_SECTAG_LEN_SCI) { 140 return hdrlen + caplen; 145 return hdrlen + caplen; 154 return hdrlen + caplen; 208 return hdrlen + caplen; 213 return hdrlen + caplen; [all...] |
| print-vsock.c | 166 const u_char *p, const u_int caplen) 171 if (caplen < sizeof(struct af_vsockmon_hdr) + transport_size) { 189 vsock_hdr_print(netdissect_options *ndo, const u_char *p, const u_int caplen) 205 ret = vsock_transport_hdr_print(ndo, hdr_transport, p, caplen); 220 caplen); 230 if (caplen > total_hdr_size) { 235 caplen - total_hdr_size); 249 u_int caplen = h->caplen; local 253 if (caplen < sizeof(struct af_vsockmon_hdr)) [all...] |
| print-symantec.c | 73 * 'h->len' is the length of the packet off the wire, and 'h->caplen' 80 u_int caplen = h->caplen; local 92 caplen -= sizeof (struct symantec_header); 104 ND_DEFAULTPRINT(p, caplen); 105 } else if (ethertype_print(ndo, ether_type, p, length, caplen, NULL, NULL) == 0) { 111 ND_DEFAULTPRINT(p, caplen);
|
| print-null.c | 76 * 'h->len' is the length of the packet off the wire, and 'h->caplen' 83 u_int caplen = h->caplen; local 107 caplen -= NULL_HDRLEN; 139 ND_DEFAULTPRINT(p, caplen);
|
| print-sunatm.c | 63 * 'h->len' is the length of the packet off the wire, and 'h->caplen' 70 u_int caplen = h->caplen; local 101 caplen -= PKT_BEGIN_POS; 104 atm_print(ndo, vpi, vci, traftype, p, length, caplen);
|
| print-nflog.c | 153 u_int caplen = h->caplen; local 157 if (caplen < NFLOG_HDR_LEN) { 159 ndo->ndo_ll_hdr_len += caplen; 175 caplen -= NFLOG_HDR_LEN; 181 if (caplen < NFLOG_TLV_LEN) 195 if (caplen < size) 207 caplen -= NFLOG_TLV_LEN; 214 caplen -= size; 233 ND_DEFAULTPRINT(p, caplen); [all...] |
| print-ap1394.c | 88 * 'h->len' is the length of the packet off the wire, and 'h->caplen' 95 u_int caplen = h->caplen; local 108 caplen -= FIREWIRE_HDRLEN; 117 if (ethertype_print(ndo, ether_type, p, length, caplen, &src, &dst) == 0) { 123 ND_DEFAULTPRINT(p, caplen);
|
| print-ipfc.c | 94 ipfc_print(netdissect_options *ndo, const u_char *p, u_int length, u_int caplen) 119 caplen -= IPFC_HDRLEN; 122 llc_hdrlen = llc_print(ndo, p, length, caplen, &src, &dst); 129 ND_DEFAULTPRINT(p, caplen); 138 * 'h->len' is the length of the packet off the wire, and 'h->caplen' 145 ndo->ndo_ll_hdr_len += ipfc_print(ndo, p, h->len, h->caplen);
|
| print-token.c | 149 token_print(netdissect_options *ndo, const u_char *p, u_int length, u_int caplen) 161 if (caplen < TOKEN_HDRLEN) { 179 if (caplen < TOKEN_HDRLEN + 2) { 185 if (caplen < hdr_len) { 217 caplen -= hdr_len; 222 llc_hdrlen = llc_print(ndo, p, length, caplen, &src, &dst); 226 ND_DEFAULTPRINT(p, caplen); 237 ND_DEFAULTPRINT(p, caplen); 245 * 'h->len' is the length of the packet off the wire, and 'h->caplen' 252 ndo->ndo_ll_hdr_len += token_print(ndo, p, h->len, h->caplen); [all...] |
| print-pktap.c | 99 * 'h->len' is the length of the packet off the wire, and 'h->caplen' 107 u_int caplen = h->caplen; local 145 caplen -= hdrlen; 159 nhdr.caplen = caplen; 169 ND_DEFAULTPRINT(p, caplen);
|
| print-ipnet.c | 65 ipnet_print(netdissect_options *ndo, const u_char *p, u_int length, u_int caplen) 76 caplen -= sizeof(ipnet_hdr_t); 96 ND_DEFAULTPRINT(p, caplen); 104 * 'h->len' is the length of the packet off the wire, and 'h->caplen' 112 ipnet_print(ndo, p, h->len, h->caplen);
|
| print.c | 351 if (h->caplen == 0) { 353 ND_PRINT("[Invalid header: caplen==0"); 362 } else if (h->len < h->caplen) { 368 ND_PRINT(" len(%u) < caplen(%u)", h->len, h->caplen); 370 if (h->caplen > MAXIMUM_SNAPLEN) { 376 ND_PRINT(" caplen(%u) > %u", h->caplen, MAXIMUM_SNAPLEN); 420 ndo->ndo_snapend = sp + h->caplen; 458 ndo->ndo_snapend = sp + h->caplen; [all...] |
| print-lane.c | 82 lane_print(netdissect_options *ndo, const u_char *p, u_int length, u_int caplen) 105 caplen -= 2; 112 ether_print(ndo, p, length, caplen, lane_hdr_print, p - 2);
|