| /src/external/bsd/tcpdump/dist/ |
| 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-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-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-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-pflog.c | 136 u_int caplen = h->caplen; local 142 if (caplen < sizeof(uint8_t)) { 144 ndo->ndo_ll_hdr_len += h->caplen; 157 if (caplen < hdrlen) { 171 caplen -= hdrlen; 201 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-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-pfsync.c | 91 u_int caplen = h->caplen; local 95 if (caplen < PFSYNC_HDRLEN) { 101 caplen - sizeof(struct pfsync_header)); 104 ND_DEFAULTPRINT((const u_char *)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-dsa.c | 200 u_int caplen = h->caplen; local 205 ether_switch_tag_print(ndo, p, length, caplen, dsa_tag_print, DSA_LEN); 211 u_int caplen = h->caplen; local 216 ether_switch_tag_print(ndo, p, length, caplen, edsa_tag_print, EDSA_LEN);
|
| 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-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-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-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);
|
| /src/usr.sbin/mopd/common/ |
| loop-bsd.c | 156 int caplen, hdrlen; local 158 caplen = bhp->bh_caplen; 161 bp += BPF_WORDALIGN(hdrlen + caplen);
|
| /src/crypto/dist/ipsec-tools/src/racoon/ |
| dump.c | 78 uint32_t caplen; /* length of portion present */ member in struct:pcap_sf_pkthdr 170 sf_hdr.caplen = sf_hdr.len = sizeof(ip); 173 sf_hdr.caplen = sf_hdr.len = sizeof(ip6); 176 sf_hdr.caplen += sizeof(af) + sizeof(uh) + msg->l;
|
| /src/usr.sbin/rbootd/ |
| bpf.c | 285 int datlen, caplen, hdrlen; local 310 caplen = bhp->bh_caplen; 313 if (caplen != datlen) 316 caplen, datlen); 317 else if (caplen > (int)sizeof(struct rmp_packet)) 319 caplen); 321 rconn->rmplen = caplen; 325 caplen); 327 bp += BPF_WORDALIGN(caplen + hdrlen);
|
| /src/external/bsd/libpcap/dist/ |
| dlpisubs.c | 142 int n, caplen, origlen; local 193 caplen = sbp->sbh_msglen; 196 caplen = min(p->snapshot, len); 198 bufp += caplen; 201 if (pcapint_filter(p->fcode.bf_insns, pk, origlen, caplen)) { 209 pkthdr.caplen = caplen; 210 /* Insure caplen does not exceed snapshot */ 211 if (pkthdr.caplen > (bpf_u_int32)p->snapshot) 212 pkthdr.caplen = (bpf_u_int32)p->snapshot [all...] |
| pcap-enet.c | 60 register int cc, caplen; local 79 caplen = ph->tap.th_wirelen > snaplen ? snaplen : ph->tap 82 ph->tap.th_wirelen, caplen)) { 87 ph->tap.th_wirelen, caplen); 94 caplen = cc > snaplen ? snaplen : cc ; 95 if (pcapint_filter(fcode, buf.hdr.packet, cc, caplen)) { 98 (*printit)(buf.hdr.packet, &tv, cc, caplen);
|
| pcap-septel.c | 71 int caplen = 0; local 122 caplen = p->snapshot ; 125 if (caplen > packet_len) { 127 caplen = packet_len; 130 if ((p->fcode.bf_insns == NULL) || pcapint_filter(p->fcode.bf_insns, dp, packet_len, caplen)) { 149 pcap_header.caplen = caplen;
|
| 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...] |
| pcap-nit.c | 111 register int caplen; local 184 caplen = nh->nh_wirelen; 185 if (caplen > p->snapshot) 186 caplen = p->snapshot; 187 if (pcapint_filter(p->fcode.bf_insns, cp, nh->nh_wirelen, caplen)) { 191 h.caplen = caplen;
|
| pcap-snit.c | 127 register int caplen; local 194 caplen = nlp->nh_pktlen; 195 if (caplen > p->snapshot) 196 caplen = p->snapshot; 198 if (pcapint_filter(p->fcode.bf_insns, cp, nlp->nh_pktlen, caplen)) { 202 h.caplen = caplen;
|
| pcap-snoop.c | 74 register u_int caplen; local 117 caplen = (datalen < p->snapshot) ? datalen : p->snapshot; 132 pcapint_filter(p->fcode.bf_insns, cp, datalen, caplen)) { 138 h.caplen = caplen;
|
| /src/usr.sbin/npf/npfd/ |
| npfd_log.c | 147 uint32_t caplen; member in struct:__anon8544 157 no = o + sizeof(pkt) + pkt.caplen; 158 if (pkt.caplen > hdr.snaplen) 162 if (fseeko(fp, pkt.caplen, SEEK_CUR) != 0)
|