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

1 2

  /external/tcpdump/
print-bt.c 37 * 'h->len' is the length of the packet off the wire, and 'h->caplen'
44 u_int caplen = h->caplen; local
47 if (caplen < BT_HDRLEN) {
51 caplen -= BT_HDRLEN;
58 ND_DEFAULTPRINT(p, caplen);
print-802_15_4.c 93 u_int caplen = h->caplen; local
98 if (caplen < 3) {
99 ND_PRINT((ndo, "[|802.15.4] %x", caplen));
100 return caplen;
109 caplen -= 3;
116 return caplen;
122 caplen -= hdrlen;
173 caplen -= hdrlen;
177 ND_DEFAULTPRINT(p, caplen);
    [all...]
print-cip.c 57 * 'h->len' is the length of the packet off the wire, and 'h->caplen'
63 u_int caplen = h->caplen; local
67 if (memcmp(rfcllc, p, sizeof(rfcllc))==0 && caplen < RFC1483LLC_LEN) {
79 if (llc_print(ndo, p, length, caplen, NULL, NULL,
89 ND_DEFAULTPRINT(p, caplen);
print-nflog.c 76 u_int caplen = h->caplen; local
79 if (caplen < (int) sizeof(nflog_hdr_t) || length < (int) sizeof(nflog_hdr_t)) {
94 caplen -= sizeof(nflog_hdr_t);
98 if (caplen < sizeof(nflog_tlv_t) || length < sizeof(nflog_tlv_t)) {
117 if (caplen < size || length < size) {
132 caplen -= sizeof(nflog_tlv_t);
139 caplen -= size;
160 ND_DEFAULTPRINT(p, caplen);
print-null.c 71 * 'h->len' is the length of the packet off the wire, and 'h->caplen'
78 u_int caplen = h->caplen; local
81 if (caplen < NULL_HDRLEN) {
103 caplen -= NULL_HDRLEN;
119 isoclns_print(ndo, p, length, caplen);
135 ND_DEFAULTPRINT(p, caplen);
print-ap1394.c 78 * 'h->len' is the length of the packet off the wire, and 'h->caplen'
85 u_int caplen = h->caplen; local
89 if (caplen < FIREWIRE_HDRLEN) {
98 caplen -= FIREWIRE_HDRLEN;
103 if (ethertype_print(ndo, ether_type, p, length, caplen) == 0) {
109 ND_DEFAULTPRINT(p, caplen);
print-enc.c 92 register u_int caplen = h->caplen; local
96 if (caplen < ENC_HDRLEN) {
113 caplen -= ENC_HDRLEN;
print-sunatm.c 61 * 'h->len' is the length of the packet off the wire, and 'h->caplen'
68 u_int caplen = h->caplen; local
74 if (caplen < PKT_BEGIN_POS) {
76 return (caplen);
102 caplen -= PKT_BEGIN_POS;
104 atm_print(ndo, vpi, vci, traftype, p, length, caplen);
print-symantec.c 70 * 'h->len' is the length of the packet off the wire, and 'h->caplen'
77 u_int caplen = h->caplen; local
81 if (caplen < sizeof (struct symantec_header)) {
83 return caplen;
90 caplen -= sizeof (struct symantec_header);
102 ND_DEFAULTPRINT(p, caplen);
103 } else if (ethertype_print(ndo, ether_type, p, length, caplen) == 0) {
109 ND_DEFAULTPRINT(p, caplen);
print-pflog.c 112 u_int caplen = h->caplen; local
117 if (caplen < sizeof(uint8_t)) {
119 return (caplen);
130 if (caplen < hdrlen) {
144 caplen -= hdrlen;
171 ND_DEFAULTPRINT(p, caplen);
print-ppi.c 55 u_int caplen = h->caplen; local
60 if (caplen < sizeof(ppi_header_t)) {
71 if (caplen < len) {
81 caplen -= len;
93 ND_DEFAULTPRINT(p, caplen);
100 * 'h->len' is the length of the packet off the wire, and 'h->caplen'
print-chdlc.c 49 register u_int caplen = h->caplen; local
51 if (caplen < CHDLC_HDRLEN) {
53 return (caplen);
print-sl.c 61 register u_int caplen = h->caplen; local
65 if (caplen < SLIP_HDRLEN || length < SLIP_HDRLEN) {
67 return (caplen);
95 register u_int caplen = h->caplen; local
99 if (caplen < SLIP_HDRLEN) {
101 return (caplen);
print-sll.c 191 * 'h->len' is the length of the packet off the wire, and 'h->caplen'
197 u_int caplen = h->caplen; local
203 if (caplen < SLL_HDR_LEN) {
210 return (caplen);
222 caplen -= SLL_HDR_LEN;
250 if (llc_print(ndo, p, length, caplen, NULL, NULL,
268 ND_DEFAULTPRINT(p, caplen);
276 if (caplen < 4 || length < 4) {
295 caplen -= 4
    [all...]
print-arcnet.c 104 u_int length, u_int caplen);
170 * 'h->len' is the length of the packet off the wire, and 'h->caplen'
176 u_int caplen = h->caplen; local
184 if (caplen < ARC_HDRLEN || length < ARC_HDRLEN) {
186 return (caplen);
205 if (caplen < ARC_HDRNEWLEN || length < ARC_HDRNEWLEN) {
208 return (caplen);
212 if (caplen < ARC_HDRNEWLEN_EXC || length < ARC_HDRNEWLEN_EXC) {
215 return (caplen);
264 u_int caplen = h->caplen; local
    [all...]
print-pktap.c 92 * 'h->len' is the length of the packet off the wire, and 'h->caplen'
100 u_int caplen = h->caplen; local
106 if (caplen < sizeof(pktap_header_t) || length < sizeof(pktap_header_t)) {
124 if (caplen < hdrlen || length < hdrlen) {
133 caplen -= hdrlen;
154 ND_DEFAULTPRINT(p, caplen);
print-atm.c 131 const u_char *p, int length, int caplen)
135 if (!llc_print(ndo, p, length, caplen, NULL, NULL,
143 ND_DEFAULTPRINT(p, caplen);
156 * 'h->len' is the length of the packet off the wire, and 'h->caplen'
163 u_int caplen = h->caplen; local
168 if (caplen < 1 || length < 1) {
170 return (caplen);
177 isoclns_print(ndo, p + 1, length - 1, caplen - 1);
185 if (caplen < 3 || length < 3)
    [all...]
  /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 > p->snapshot)
190 pkthdr.caplen = 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-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-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-snf.c 134 int i, flags, err, caplen, n; local
173 caplen = req.length;
174 if (caplen > p->snapshot)
175 caplen = p->snapshot;
178 bpf_filter(p->fcode.bf_insns, req.pkt_addr, req.length, caplen)) {
180 hdr.caplen = caplen;
pcap-win32.c 237 register int caplen, hdrlen; local
262 caplen = bhp->bh_caplen;
277 bpf_filter(p->fcode.bf_insns, datap, bhp->bh_datalen, caplen)) {
282 bp += Packet_WORDALIGN(caplen + hdrlen);
292 bp += Packet_WORDALIGN(caplen + hdrlen);
306 int packet_len = 0, caplen = 0; local
357 caplen = ATM_SNAPLEN;
365 caplen = erf_record_len - dag_record_size - 2;
366 if (caplen > packet_len)
368 caplen = packet_len
    [all...]

Completed in 717 milliseconds

1 2