HomeSort by relevance Sort by last modified time
    Searched defs:caplen (Results 1 - 25 of 38) sorted by null

1 2

  /external/tcpdump/
print-bt.c 38 * 'h->len' is the length of the packet off the wire, and 'h->caplen'
45 u_int caplen = h->caplen; local
48 if (caplen < BT_HDRLEN) {
52 caplen -= BT_HDRLEN;
59 ND_DEFAULTPRINT(p, caplen);
print-cip.c 56 * 'h->len' is the length of the packet off the wire, and 'h->caplen'
62 u_int caplen = h->caplen; local
68 if (cmplen > caplen)
69 cmplen = caplen;
84 llc_hdrlen = llc_print(ndo, p, length, caplen, NULL, NULL);
88 ND_DEFAULTPRINT(p, caplen);
print-null.c 72 * 'h->len' is the length of the packet off the wire, and 'h->caplen'
79 u_int caplen = h->caplen; local
82 if (caplen < NULL_HDRLEN) {
104 caplen -= NULL_HDRLEN;
120 isoclns_print(ndo, p, length, caplen);
136 ND_DEFAULTPRINT(p, caplen);
print-802_15_4.c 94 u_int caplen = h->caplen; local
99 if (caplen < 3) {
100 ND_PRINT((ndo, "[|802.15.4] %x", caplen));
101 return caplen;
110 caplen -= 3;
117 return caplen;
123 caplen -= hdrlen;
174 caplen -= hdrlen;
178 ND_DEFAULTPRINT(p, caplen);
    [all...]
print-nflog.c 77 u_int caplen = h->caplen; local
80 if (caplen < (int) sizeof(nflog_hdr_t) || length < (int) sizeof(nflog_hdr_t)) {
95 caplen -= sizeof(nflog_hdr_t);
99 if (caplen < sizeof(nflog_tlv_t) || length < sizeof(nflog_tlv_t)) {
118 if (caplen < size || length < size) {
133 caplen -= sizeof(nflog_tlv_t);
140 caplen -= size;
161 ND_DEFAULTPRINT(p, caplen);
print-symantec.c 71 * 'h->len' is the length of the packet off the wire, and 'h->caplen'
78 u_int caplen = h->caplen; local
82 if (caplen < sizeof (struct symantec_header)) {
84 return caplen;
91 caplen -= sizeof (struct symantec_header);
103 ND_DEFAULTPRINT(p, caplen);
104 } else if (ethertype_print(ndo, ether_type, p, length, caplen, NULL, NULL) == 0) {
110 ND_DEFAULTPRINT(p, caplen);
print-ap1394.c 85 * 'h->len' is the length of the packet off the wire, and 'h->caplen'
92 u_int caplen = h->caplen; local
97 if (caplen < FIREWIRE_HDRLEN) {
106 caplen -= FIREWIRE_HDRLEN;
115 if (ethertype_print(ndo, ether_type, p, length, caplen, &src, &dst) == 0) {
121 ND_DEFAULTPRINT(p, caplen);
print-enc.c 93 register u_int caplen = h->caplen; local
97 if (caplen < ENC_HDRLEN) {
114 caplen -= ENC_HDRLEN;
print-pflog.c 113 u_int caplen = h->caplen; local
118 if (caplen < sizeof(uint8_t)) {
120 return (caplen);
131 if (caplen < hdrlen) {
144 caplen -= hdrlen;
171 ND_DEFAULTPRINT(p, caplen);
print-sunatm.c 62 * 'h->len' is the length of the packet off the wire, and 'h->caplen'
69 u_int caplen = h->caplen; local
75 if (caplen < PKT_BEGIN_POS) {
77 return (caplen);
103 caplen -= PKT_BEGIN_POS;
105 atm_print(ndo, vpi, vci, traftype, p, length, caplen);
print-ppi.c 58 u_int caplen = h->caplen; local
65 if (caplen < sizeof(ppi_header_t)) {
67 return (caplen);
72 if (caplen < len) {
78 return (caplen);
90 caplen -= len;
95 nhdr.caplen = caplen;
103 ND_DEFAULTPRINT(p, caplen);
    [all...]
print-chdlc.c 50 register u_int caplen = h->caplen; local
52 if (caplen < CHDLC_HDRLEN) {
54 return (caplen);
print-sl.c 62 register u_int caplen = h->caplen; local
66 if (caplen < SLIP_HDRLEN || length < SLIP_HDRLEN) {
68 return (caplen);
71 caplen -= SLIP_HDRLEN;
79 if (caplen < 1 || length < 1) {
81 return (caplen + SLIP_HDRLEN);
102 register u_int caplen = h->caplen; local
106 if (caplen < SLIP_HDRLEN)
    [all...]
print-sll.c 192 * 'h->len' is the length of the packet off the wire, and 'h->caplen'
198 u_int caplen = h->caplen; local
205 if (caplen < SLL_HDR_LEN) {
212 return (caplen);
224 caplen -= SLL_HDR_LEN;
253 llc_hdrlen = llc_print(ndo, p, length, caplen, NULL, NULL);
265 ND_DEFAULTPRINT(p, caplen);
273 if (caplen < 4) {
275 return (hdrlen + caplen);
    [all...]
print-arcnet.c 105 u_int length, u_int caplen);
171 * 'h->len' is the length of the packet off the wire, and 'h->caplen'
177 u_int caplen = h->caplen; local
185 if (caplen < ARC_HDRLEN || length < ARC_HDRLEN) {
187 return (caplen);
206 if (caplen < ARC_HDRNEWLEN || length < ARC_HDRNEWLEN) {
209 return (caplen);
213 if (caplen < ARC_HDRNEWLEN_EXC || length < ARC_HDRNEWLEN_EXC) {
216 return (caplen);
265 u_int caplen = h->caplen; local
    [all...]
print-pktap.c 95 * 'h->len' is the length of the packet off the wire, and 'h->caplen'
103 u_int caplen = h->caplen; local
108 if (caplen < sizeof(pktap_header_t) || length < sizeof(pktap_header_t)) {
126 if (caplen < hdrlen || length < hdrlen) {
135 caplen -= hdrlen;
154 ND_DEFAULTPRINT(p, caplen);
  /external/libpcap/
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-enet.c 57 register int cc, caplen; local
76 caplen = ph->tap.th_wirelen > snaplen ? snaplen : ph->tap
79 ph->tap.th_wirelen, caplen)) {
84 ph->tap.th_wirelen, caplen);
91 caplen = cc > snaplen ? snaplen : cc ;
92 if (bpf_filter(fcode, buf.hdr.packet, cc, caplen)) {
95 (*printit)(buf.hdr.packet, &tv, cc, caplen);
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-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;
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-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;
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-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...]
  /external/libpcap/pcap/
pcap.h 164 bpf_u_int32 caplen; /* length of portion present */ member in struct:pcap_pkthdr

Completed in 865 milliseconds

1 2