HomeSort by relevance Sort by last modified time
    Searched refs:caplen (Results 26 - 50 of 70) sorted by null

12 3

  /external/libpcap/
pcap-septel.c 78 int caplen = 0; local
129 caplen = p->snapshot ;
132 if (caplen > packet_len) {
134 caplen = packet_len;
137 if ((p->fcode.bf_insns == NULL) || bpf_filter(p->fcode.bf_insns, dp, packet_len, caplen)) {
156 pcap_header.caplen = caplen;
dlpisubs.c 125 int n, caplen, origlen; local
171 caplen = sbp->sbh_msglen;
174 caplen = min(p->snapshot, len);
176 bufp += caplen;
179 if (bpf_filter(p->fcode.bf_insns, pk, origlen, caplen)) {
187 pkthdr.caplen = caplen;
188 /* Insure caplen does not exceed snapshot */
189 if (pkthdr.caplen > (bpf_u_int32)p->snapshot)
190 pkthdr.caplen = (bpf_u_int32)p->snapshot
    [all...]
pcap-dag.c 401 int caplen = 0; local
478 caplen = rlen;
501 if (caplen > packet_len) {
502 caplen = packet_len;
517 caplen = rlen - dag_record_size;
521 caplen = packet_len = ATM_CELL_SIZE;
527 caplen = rlen - dag_record_size - 4;
531 caplen -= (8 * num_ext_hdr);
534 caplen = packet_len = ATM_CELL_SIZE;
552 caplen -= ATM_HDR_SIZE
    [all...]
sf-pcap.c 316 * We interchanged the caplen and len fields at version 2.3,
322 * number of 543.0, and with the caplen and len fields in the
457 hdr->caplen = SWAPLONG(sf_hdr.caplen);
462 hdr->caplen = sf_hdr.caplen;
493 /* Swap the caplen and len fields, if necessary. */
500 if (hdr->caplen <= hdr->len) {
510 t = hdr->caplen;
511 hdr->caplen = hdr->len
    [all...]
pcap-nit.c 109 register int caplen; local
179 caplen = nh->nh_wirelen;
180 if (caplen > p->snapshot)
181 caplen = p->snapshot;
182 if (bpf_filter(p->fcode.bf_insns, cp, nh->nh_wirelen, caplen)) {
186 h.caplen = caplen;
pcap-snit.c 125 register int caplen; local
189 caplen = nlp->nh_pktlen;
190 if (caplen > p->snapshot)
191 caplen = p->snapshot;
193 if (bpf_filter(p->fcode.bf_insns, cp, nlp->nh_pktlen, caplen)) {
197 h.caplen = caplen;
pcap-win32.c 541 register int caplen, hdrlen; local
566 caplen = bhp->bh_caplen;
581 bpf_filter(p->fcode.bf_insns, datap, bhp->bh_datalen, caplen)) {
586 bp += Packet_WORDALIGN(caplen + hdrlen);
596 bp += Packet_WORDALIGN(caplen + hdrlen);
611 int packet_len = 0, caplen = 0; local
674 caplen = ATM_SNAPLEN;
682 caplen = erf_record_len - dag_record_size - 2;
683 if (caplen > packet_len)
685 caplen = packet_len
    [all...]
pcap-snf.c 131 int i, flags, err, caplen, n; local
170 caplen = req.length;
171 if (caplen > p->snapshot)
172 caplen = p->snapshot;
175 bpf_filter(p->fcode.bf_insns, req.pkt_addr, req.length, caplen)) {
177 hdr.caplen = caplen;
pcap-snoop.c 71 register u_int caplen; local
114 caplen = (datalen < p->snapshot) ? datalen : p->snapshot;
129 bpf_filter(p->fcode.bf_insns, cp, datalen, caplen)) {
135 h.caplen = caplen;
sf-pcap-ng.c 164 bpf_u_int32 caplen; member in struct:enhanced_packet_block
189 bpf_u_int32 caplen; member in struct:packet_block
1066 hdr->caplen = SWAPLONG(epbp->caplen);
1072 hdr->caplen = epbp->caplen;
1109 hdr->caplen = hdr->len;
1110 if (hdr->caplen > (bpf_u_int32)p->snapshot)
1111 hdr->caplen = p->snapshot;
1131 hdr->caplen = SWAPLONG(pbp->caplen)
    [all...]
pcap-bt-linux.c 337 pkth.caplen = ret;
358 pkth.caplen+=sizeof(pcap_bluetooth_h4_header);
359 pkth.len = pkth.caplen;
361 bpf_filter(handle->fcode.bf_insns, pktd, pkth.len, pkth.caplen)) {
pcap-bt-monitor-linux.c 118 pkth.caplen = ret - sizeof(hdr) + sizeof(pcap_bluetooth_linux_monitor_header);
119 pkth.len = pkth.caplen;
133 bpf_filter(handle->fcode.bf_insns, pktd, pkth.len, pkth.caplen)) {
pcap-usb-linux.c 602 pkth.caplen = sizeof(pcap_usb_header);
650 pkth.len = urb_len+pkth.caplen;
679 while ((string[0] != 0) && (string[1] != 0) && (pkth.caplen < (bpf_u_int32)handle->snapshot))
686 pkth.caplen++;
692 if (pkth.caplen > (bpf_u_int32)handle->snapshot)
693 pkth.caplen = (bpf_u_int32)handle->snapshot;
697 pkth.len, pkth.caplen)) {
859 pkth.caplen = clen + sizeof(pcap_usb_header);
866 pkth.len, pkth.caplen)) {
940 pkth.caplen = clen + sizeof(pcap_usb_header_mmapped)
    [all...]
  /external/tcpdump/
print-token.c 149 token_print(netdissect_options *ndo, const u_char *p, u_int length, u_int caplen)
160 if (caplen < TOKEN_HDRLEN) {
178 if (caplen < TOKEN_HDRLEN + 2) {
184 if (caplen < hdr_len) {
215 caplen -= hdr_len;
220 llc_hdrlen = llc_print(ndo, p, length, caplen, &src, &dst);
224 ND_DEFAULTPRINT(p, caplen);
235 ND_DEFAULTPRINT(p, caplen);
243 * 'h->len' is the length of the packet off the wire, and 'h->caplen'
249 return (token_print(ndo, p, h->len, h->caplen));
    [all...]
print-fddi.c 277 fddi_print(netdissect_options *ndo, const u_char *p, u_int length, u_int caplen)
284 if (caplen < FDDI_HDRLEN) {
286 return (caplen);
305 caplen -= FDDI_HDRLEN;
310 llc_hdrlen = llc_print(ndo, p, length, caplen, &src, &dst);
317 ND_DEFAULTPRINT(p, caplen);
321 fddi_smt_print(ndo, p, caplen);
329 ND_DEFAULTPRINT(p, caplen);
338 * 'h->len' is the length of the packet off the wire, and 'h->caplen'
344 return (fddi_print(ndo, p, h->len, h->caplen));
    [all...]
print-usb.c 134 * 'h->len' is the length of the packet off the wire, and 'h->caplen'
141 if (h->caplen < sizeof(pcap_usb_header)) {
157 * 'h->len' is the length of the packet off the wire, and 'h->caplen'
164 if (h->caplen < sizeof(pcap_usb_header_mmapped)) {
print-802_11.c 2028 u_int caplen, hdrlen, meshdrlen; local
3321 u_int caplen = h->caplen; local
    [all...]
print-juniper.c 412 uint32_t caplen; member in struct:juniper_l2info_t
672 ether_print(ndo, p, l2info.length, l2info.caplen, NULL, NULL);
690 ether_print(ndo, p, l2info.length, l2info.caplen, NULL, NULL);
770 l2info.caplen-ETHERTYPE_LEN,
    [all...]
print-smb.c 930 int caplen; local
939 caplen = ndo->ndo_snapend - data;
940 if (caplen < 4)
942 maxbuf = data + caplen;
946 caplen -= 4;
973 if (caplen < 4)
1014 if (nbt_len >= 4 && caplen >= 4 && memcmp(data,"\377SMB",4) == 0) {
1015 if ((int)nbt_len > caplen) {
1020 nbt_len - caplen));
1047 if (nbt_len >= 1 && caplen >= 1)
1241 int caplen; local
    [all...]
print-ppp.c 1589 register u_int caplen = h->caplen; local
1656 register u_int caplen = h->caplen; local
1725 register u_int caplen = h->caplen; local
    [all...]
print-cdp.c 95 const u_char *pptr, u_int length, u_int caplen)
100 if (caplen < CDP_HEADER_LEN) {
260 ND_PRINT((ndo, ", length %u", caplen));
print-arp.c 257 const u_char *bp, u_int length, u_int caplen)
344 ND_DEFAULTPRINT((const u_char *)ap, caplen);
358 const u_char *bp, u_int length, u_int caplen)
378 atmarp_print(ndo, bp, length, caplen);
463 ND_DEFAULTPRINT((const u_char *)ap, caplen);
print-fr.c 223 register u_int caplen = h->caplen; local
233 return caplen;
379 register u_int caplen = h->caplen; local
389 return caplen;
  /external/wpa_supplicant_8/src/l2_packet/
l2_packet_pcap.c 130 if (packet == NULL || hdr.caplen < sizeof(*ethhdr))
136 len = hdr.caplen;
139 len = hdr.caplen - sizeof(*ethhdr);
155 if (pkt_data == NULL || hdr->caplen < sizeof(*ethhdr))
161 len = hdr->caplen;
164 len = hdr->caplen - sizeof(*ethhdr);
  /external/scapy/scapy/
utils.py 827 sec,usec,caplen,wirelen = struct.unpack(self.endian+"IIII", hdr)
828 s = self.f.read(caplen)[:size]
829 return s,(sec,usec,wirelen) # caplen = len(s)
992 intid, tshigh, tslow, caplen, wirelen = struct.unpack(
996 return (block[20:20 + caplen][:size],
1007 caplen = min(wirelen, self.interfaces[intid][1])
1008 return (block[4:4 + caplen][:size],
1014 intid, drops, tshigh, tslow, caplen, wirelen = struct.unpack(
1018 return (block[20:20 + caplen][:size],
    [all...]

Completed in 1226 milliseconds

12 3