Searched refs:caplen (Results 1 - 25 of 76) sorted by path

1234

/external/libpcap/
H A Ddlpisubs.c129 int n, caplen, origlen; local
175 caplen = sbp->sbh_msglen;
178 caplen = min(p->snapshot, len);
180 bufp += caplen;
183 if (bpf_filter(p->fcode.bf_insns, pk, origlen, caplen)) {
191 pkthdr.caplen = caplen;
192 /* Insure caplen does not exceed snapshot */
193 if (pkthdr.caplen > p->snapshot)
194 pkthdr.caplen
[all...]
H A Dpcap-bpf.c957 register int caplen, hdrlen; local
994 caplen = bhp->bh_caplen;
1011 bpf_filter(p->fcode.bf_insns, datap, bhp->bh_datalen, caplen)) {
1025 if (caplen > pad)
1026 pkthdr.caplen = caplen - pad;
1028 pkthdr.caplen = 0;
1035 pkthdr.caplen = caplen;
1039 bp += BPF_WORDALIGN(caplen
[all...]
H A Dpcap-bt-linux.c339 pkth.caplen = ret;
361 pkth.caplen+=sizeof(pcap_bluetooth_h4_header);
362 pkth.len = pkth.caplen;
365 pkth.len, pkth.caplen)) {
H A Dpcap-can-linux.c238 pkth.caplen = recvmsg(handle->fd, &msg, 0);
244 } while ((pkth.caplen == -1) && (errno == EINTR));
246 if (pkth.caplen < 0)
255 pkth.caplen -= 8 - cf->can_dlc;
256 pkth.len = pkth.caplen;
H A Dpcap-canusb-linux.c404 pkth.caplen = pkth.len = n;
405 pkth.caplen -= 4;
406 pkth.caplen -= 8 - msg.length;
H A Dpcap-common.c1102 if (hdr->caplen < offset)
1109 if (hdr->caplen < offset)
1116 if (hdr->caplen < offset)
1121 if (hdr->caplen < offset)
1126 if (hdr->caplen < offset)
1131 if (hdr->caplen < offset)
1136 if (hdr->caplen < offset)
1142 if (hdr->caplen < offset)
1147 if (hdr->caplen < offset)
1163 if (hdr->caplen < offse
1227 u_int caplen = hdr->caplen; local
[all...]
H A Dpcap-dag.c313 int caplen = 0; local
390 caplen = rlen;
413 if (caplen > packet_len) {
414 caplen = packet_len;
429 caplen = rlen - dag_record_size;
433 caplen = packet_len = ATM_CELL_SIZE;
439 caplen = rlen - dag_record_size - 4;
443 caplen = packet_len = ATM_CELL_SIZE;
461 caplen -= ATM_HDR_SIZE;
472 caplen
[all...]
H A Dpcap-dbus.c89 pkth.caplen = pkth.len = raw_msg_len;
90 /* pkth.caplen = min (payload_len, handle->snapshot); */
94 bpf_filter(handle->fcode.bf_insns, (u_char *)raw_msg, pkth.len, pkth.caplen)) {
H A Dpcap-dos.c273 pcap.caplen = min (rx_len, p->snapshot);
277 (!p->fcode.bf_insns || bpf_filter(p->fcode.bf_insns, rx_buf, pcap.len, pcap.caplen)))
849 memcpy (rxbuf, buf, pcap->caplen);
H A Dpcap-enet.c61 register int cc, caplen; local
80 caplen = ph->tap.th_wirelen > snaplen ? snaplen : ph->tap
83 ph->tap.th_wirelen, caplen)) {
88 ph->tap.th_wirelen, caplen);
95 caplen = cc > snaplen ? snaplen : cc ;
96 if (bpf_filter(fcode, buf.hdr.packet, cc, caplen)) {
99 (*printit)(buf.hdr.packet, &tv, cc, caplen);
H A Dpcap-int.h277 bpf_u_int32 caplen; /* length of portion present */ member in struct:pcap_sf_pkthdr
293 bpf_u_int32 caplen; /* length of portion present */ member in struct:pcap_sf_patched_pkthdr
H A Dpcap-linux.c1478 int packet_len, caplen; local
1702 caplen = packet_len;
1703 if (caplen > handle->snapshot)
1704 caplen = handle->snapshot;
1709 packet_len, caplen) == 0)
1736 pcap_header.caplen = caplen;
3973 memcpy(handlep->oneshot_buffer, bytes, h->caplen);
4193 "offset %d + caplen %d > frame len %d",
4220 pcaphdr.caplen
[all...]
H A Dpcap-netfilter-linux.c175 pkth.len = pkth.caplen = NFA_PAYLOAD(payload_attr);
180 pkth.caplen = pkth.len = nlh->nlmsg_len-NLMSG_ALIGN(sizeof(struct nlmsghdr));
184 /* pkth.caplen = min (payload_len, handle->snapshot); */
188 bpf_filter(handle->fcode.bf_insns, payload, pkth.len, pkth.caplen))
H A Dpcap-nit.c113 register int caplen; local
183 caplen = nh->nh_wirelen;
184 if (caplen > p->snapshot)
185 caplen = p->snapshot;
186 if (bpf_filter(p->fcode.bf_insns, cp, nh->nh_wirelen, caplen)) {
190 h.caplen = caplen;
H A Dpcap-pf.c220 h.caplen = buflen;
H A Dpcap-septel.c83 int caplen = 0; local
134 caplen = p->snapshot ;
137 if (caplen > packet_len) {
139 caplen = packet_len;
142 if ((p->fcode.bf_insns == NULL) || bpf_filter(p->fcode.bf_insns, dp, packet_len, caplen)) {
161 pcap_header.caplen = caplen;
H A Dpcap-sita.c953 pcap_header.caplen = ntohl(*(uint32_t *)&packet_header[8]); /* caplen */
957 if (acn_read_n_bytes_with_timeout(handle, pcap_header.caplen) == -1) return 0; /* then try to read in the rest of the data */
H A Dpcap-snf.c114 int i, flags, err, caplen, n; local
148 caplen = req.length;
149 if (caplen > p->snapshot)
150 caplen = p->snapshot;
153 bpf_filter(p->fcode.bf_insns, req.pkt_addr, req.length, caplen)) {
155 hdr.caplen = caplen;
H A Dpcap-snit.c130 register int caplen; local
194 caplen = nlp->nh_pktlen;
195 if (caplen > p->snapshot)
196 caplen = p->snapshot;
198 if (bpf_filter(p->fcode.bf_insns, cp, nlp->nh_pktlen, caplen)) {
202 h.caplen = caplen;
H A Dpcap-snoop.c75 register u_int caplen; local
118 caplen = (datalen < p->snapshot) ? datalen : p->snapshot;
133 bpf_filter(p->fcode.bf_insns, cp, datalen, caplen)) {
139 h.caplen = caplen;
H A Dpcap-usb-linux.c559 pkth.caplen = sizeof(pcap_usb_header);
607 pkth.len = urb_len+pkth.caplen;
636 while ((string[0] != 0) && (string[1] != 0) && (pkth.caplen < handle->snapshot))
643 pkth.caplen++;
649 if (pkth.caplen > handle->snapshot)
650 pkth.caplen = handle->snapshot;
654 pkth.len, pkth.caplen)) {
816 pkth.caplen = clen + sizeof(pcap_usb_header);
823 pkth.len, pkth.caplen)) {
897 pkth.caplen
[all...]
H A Dpcap-win32.c227 register int caplen, hdrlen; local
251 caplen = bhp->bh_caplen;
258 bp += Packet_WORDALIGN(caplen + hdrlen);
276 int packet_len = 0, caplen = 0; local
327 caplen = ATM_SNAPLEN;
335 caplen = erf_record_len - dag_record_size - 2;
336 if (caplen > packet_len)
338 caplen = packet_len;
347 caplen = erf_record_len - dag_record_size;
348 if (caplen > packet_le
[all...]
H A Dpcap.c1870 return (bpf_filter(fcode, pkt, h->len, h->caplen));
H A Dpcap1.h140 bpf_u_int32 caplen; /* length of portion present */ member in struct:pcap1_info_packet
/external/libpcap/pcap/
H A Dpcap.h164 bpf_u_int32 caplen; /* length of portion present */ member in struct:pcap_pkthdr

Completed in 542 milliseconds

1234