Searched refs:caplen (Results 26 - 50 of 67) sorted by relevance

123

/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/tcpdump-4.4.0/
H A Dprint-fddi.c242 fddi_print(const u_char *p, u_int length, u_int caplen) argument
248 if (caplen < FDDI_HDRLEN) {
264 caplen -= FDDI_HDRLEN;
269 if (llc_print(p, length, caplen, ESRC(&ehdr), EDST(&ehdr),
283 default_print(p, caplen);
286 fddi_smt_print(p, caplen);
293 default_print(p, caplen);
300 * 'h->len' is the length of the packet off the wire, and 'h->caplen'
306 fddi_print(p, h->len, h->caplen);
H A Dprint-usb.c134 * 'h->len' is the length of the packet off the wire, and 'h->caplen'
140 if (h->caplen < sizeof(pcap_usb_header)) {
156 * 'h->len' is the length of the packet off the wire, and 'h->caplen'
162 if (h->caplen < sizeof(pcap_usb_header_mmapped)) {
H A Dprint-802_11.c1714 u_int caplen, hdrlen, meshdrlen; local
1718 caplen = orig_caplen;
1722 return caplen;
1725 if (caplen > length) {
1727 fcslen = caplen - length;
1728 caplen -= fcslen;
1732 if (caplen < IEEE802_11_FC_LEN) {
1749 if (caplen < hdrlen) {
1760 caplen -= hdrlen;
1786 } else if (llc_print(p, length, caplen, ds
2194 ieee802_11_radio_print(const u_char *p, u_int length, u_int caplen) argument
2294 ieee802_11_avs_radio_print(const u_char *p, u_int length, u_int caplen) argument
2345 u_int caplen = h->caplen; local
[all...]
H A Dprint-chdlc.c57 register u_int caplen = h->caplen; local
59 if (caplen < CHDLC_HDRLEN) {
61 return (caplen);
H A Dprint-juniper.c413 u_int32_t caplen; member in struct:juniper_l2info_t
650 ether_print(gndo, p, l2info.length, l2info.caplen, NULL, NULL);
667 ether_print(gndo, p, l2info.length, l2info.caplen, NULL, NULL);
742 l2info.caplen-ETHERTYPE_LEN) == 0)
789 isoclns_print(p,l2info.length,l2info.caplen);
844 isoclns_print(p,l2info.length,l2info.caplen);
856 isoclns_print(p+1, l2info.length-1, l2info.caplen-1);
862 isoclns_print(p-1, l2info.length+1, l2info.caplen+1);
889 isoclns_print(p, l2info.length, l2info.caplen);
895 isoclns_print(p-1, l2info.length+1, l2info.caplen
[all...]
H A Dprint-smb.c928 int caplen; local
937 caplen = snapend - data;
938 if (caplen < 4)
940 maxbuf = data + caplen;
944 caplen -= 4;
971 if (caplen < 4)
1012 if (nbt_len >= 4 && caplen >= 4 && memcmp(data,"\377SMB",4) == 0) {
1013 if ((int)nbt_len > caplen) {
1018 nbt_len - caplen);
1045 if (nbt_len >= 1 && caplen >
1253 int caplen; local
[all...]
H A Dprint-arp.c201 const u_char *bp, u_int length, u_int caplen)
283 ND_DEFAULTPRINT((const u_char *)ap, caplen);
297 const u_char *bp, u_int length, u_int caplen)
317 atmarp_print(ndo, bp, length, caplen);
400 ND_DEFAULTPRINT((const u_char *)ap, caplen);
200 atmarp_print(netdissect_options *ndo, const u_char *bp, u_int length, u_int caplen) argument
296 arp_print(netdissect_options *ndo, const u_char *bp, u_int length, u_int caplen) argument
H A Dprint-ppp.c1470 register u_int caplen = h->caplen; local
1472 if (caplen < PPP_HDRLEN) {
1474 return (caplen);
1536 register u_int caplen = h->caplen; local
1540 if (caplen < 2) {
1542 return (caplen);
1548 if (caplen < 4) {
1550 return (caplen);
1600 register u_int caplen = h->caplen; local
[all...]
H A Dprint-fr.c219 register u_int caplen = h->caplen; local
229 return caplen;
341 register u_int caplen = h->caplen; local
351 return caplen;
H A Dprint-cdp.c89 cdp_print(const u_char *pptr, u_int length, u_int caplen) argument
94 if (caplen < CDP_HEADER_LEN) {
231 printf(", length %u",caplen);
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/libpcap-1.4.0/
H A Dpcap-dag.c286 int caplen = 0; local
363 caplen = rlen;
386 if (caplen > packet_len) {
387 caplen = packet_len;
402 caplen = rlen - dag_record_size;
406 caplen = packet_len = ATM_CELL_SIZE;
412 caplen = rlen - dag_record_size - 4;
416 caplen = packet_len = ATM_CELL_SIZE;
434 caplen -= ATM_HDR_SIZE;
445 caplen
[all...]
H A Dpcap-nit.c104 register int caplen; local
174 caplen = nh->nh_wirelen;
175 if (caplen > p->snapshot)
176 caplen = p->snapshot;
177 if (bpf_filter(p->fcode.bf_insns, cp, nh->nh_wirelen, caplen)) {
181 h.caplen = caplen;
H A Dpcap-snf.c95 int i, flags, err, caplen, n; local
129 caplen = req.length;
130 if (caplen > p->snapshot)
131 caplen = p->snapshot;
134 bpf_filter(p->fcode.bf_insns, req.pkt_addr, req.length, caplen)) {
136 hdr.caplen = caplen;
H A Dpcap-win32.c209 register int caplen, hdrlen; local
233 caplen = bhp->bh_caplen;
240 bp += Packet_WORDALIGN(caplen + hdrlen);
257 int packet_len = 0, caplen = 0; local
308 caplen = ATM_SNAPLEN;
316 caplen = erf_record_len - dag_record_size - 2;
317 if (caplen > packet_len)
319 caplen = packet_len;
328 caplen = erf_record_len - dag_record_size;
329 if (caplen > packet_le
[all...]
H A Dsf-pcap-ng.c163 bpf_u_int32 caplen; member in struct:enhanced_packet_block
188 bpf_u_int32 caplen; member in struct:packet_block
814 hdr->caplen = SWAPLONG(epbp->caplen);
820 hdr->caplen = epbp->caplen;
857 hdr->caplen = hdr->len;
858 if (hdr->caplen > p->snapshot)
859 hdr->caplen = p->snapshot;
879 hdr->caplen
[all...]
H A Dpcap-snit.c121 register int caplen; local
185 caplen = nlp->nh_pktlen;
186 if (caplen > p->snapshot)
187 caplen = p->snapshot;
189 if (bpf_filter(p->fcode.bf_insns, cp, nlp->nh_pktlen, caplen)) {
193 h.caplen = caplen;
H A Dpcap-can-linux.c230 pkth.caplen = recvmsg(handle->fd, &msg, 0);
236 } while ((pkth.caplen == -1) && (errno == EINTR));
238 if (pkth.caplen < 0)
247 pkth.caplen -= 8 - cf->can_dlc;
248 pkth.len = pkth.caplen;
H A Dpcap-snoop.c67 register u_int caplen; local
110 caplen = (datalen < p->snapshot) ? datalen : p->snapshot;
125 bpf_filter(p->fcode.bf_insns, cp, datalen, caplen)) {
131 h.caplen = caplen;
H A Dpcap-bt-linux.c332 pkth.caplen = ret;
354 pkth.caplen+=sizeof(pcap_bluetooth_h4_header);
355 pkth.len = pkth.caplen;
358 pkth.len, pkth.caplen)) {
H A Dpcap-usb-linux.c546 pkth.caplen = sizeof(pcap_usb_header);
594 pkth.len = urb_len+pkth.caplen;
623 while ((string[0] != 0) && (string[1] != 0) && (pkth.caplen < handle->snapshot))
630 pkth.caplen++;
636 if (pkth.caplen > handle->snapshot)
637 pkth.caplen = handle->snapshot;
641 pkth.len, pkth.caplen)) {
800 pkth.caplen = clen + sizeof(pcap_usb_header);
807 pkth.len, pkth.caplen)) {
880 pkth.caplen
[all...]
H A Dpcap-canusb-linux.c399 pkth.caplen = pkth.len = n;
400 pkth.caplen -= 4;
401 pkth.caplen -= 8 - msg.length;
H A Dpcap-int.h389 bpf_u_int32 caplen; /* length of portion present */ member in struct:pcap_sf_pkthdr
405 bpf_u_int32 caplen; /* length of portion present */ member in struct:pcap_sf_patched_pkthdr
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/um/drivers/
H A Dpcap_user.c107 len = hdata->len < header->caplen ? hdata->len : header->caplen;
/netgear-R7000-V1.0.7.12_1.2.5/src/router/iputils/racoon/
H A Ddump.c74 u_int32_t caplen; /* length of portion present */ member in struct:pcap_sf_pkthdr
166 sf_hdr.caplen = sf_hdr.len = sizeof(ip);
169 sf_hdr.caplen = sf_hdr.len = sizeof(ip6);
172 sf_hdr.caplen += sizeof(af) + sizeof(uh) + msg->l;
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/samba-3.0.25b/source/utils/
H A Dlog2pcaphex.c65 uint32 caplen; member in struct:tcpdump_packet
112 static void print_pcap_packet(FILE *out, unsigned char *data, long length, long caplen) argument
119 p.caplen = caplen;
122 fwrite(data, sizeof(unsigned char), caplen, out);

Completed in 116 milliseconds

123