Searched refs:caplen (Results 1 - 25 of 60) sorted by relevance

123

/external/tcpdump/
H A Dprint-arcnet.c41 u_int length, u_int caplen);
106 * 'h->len' is the length of the packet off the wire, and 'h->caplen'
112 u_int caplen = h->caplen; local
120 if (caplen < ARC_HDRLEN) {
122 return (caplen);
141 if (caplen < ARC_HDRNEWLEN) {
144 return (caplen);
148 if (caplen < ARC_HDRNEWLEN_EXC) {
151 return (caplen);
200 u_int caplen = h->caplen; local
255 arcnet_encap_print(u_char arctype, const u_char *p, u_int length, u_int caplen) argument
[all...]
H A Dprint-symantec.c76 * 'h->len' is the length of the packet off the wire, and 'h->caplen'
83 u_int caplen = h->caplen; local
88 if (caplen < sizeof (struct symantec_header)) {
90 return caplen;
97 caplen -= sizeof (struct symantec_header);
109 default_print(p, caplen);
110 } else if (ether_encap_print(ether_type, p, length, caplen,
117 default_print(p, caplen);
H A Dprint-cip.c66 * 'h->len' is the length of the packet off the wire, and 'h->caplen'
72 u_int caplen = h->caplen; local
76 if (memcmp(rfcllc, p, sizeof(rfcllc))==0 && caplen < RFC1483LLC_LEN) {
88 if (llc_print(p, length, caplen, NULL, NULL,
98 default_print(p, caplen);
H A Dprint-atm.c104 atm_llc_print(const u_char *p, int length, int caplen) argument
108 if (!llc_print(p, length, caplen, NULL, NULL,
116 default_print(p, caplen);
129 * 'h->len' is the length of the packet off the wire, and 'h->caplen'
135 u_int caplen = h->caplen; local
140 if (caplen < 8) {
142 return (caplen);
149 isoclns_print(p+1, length-1, caplen-1);
188 caplen
218 sig_print(const u_char *p, int caplen) argument
255 atm_print(u_int vpi, u_int vci, u_int traftype, const u_char *p, u_int length, u_int caplen) argument
[all...]
H A Dprint-sll.c111 * 'h->len' is the length of the packet off the wire, and 'h->caplen'
117 u_int caplen = h->caplen; local
123 if (caplen < SLL_HDR_LEN) {
130 return (caplen);
142 caplen -= SLL_HDR_LEN;
169 if (llc_print(p, length, caplen, NULL, NULL,
187 default_print(p, caplen);
190 } else if (ether_encap_print(ether_type, p, length, caplen,
196 default_print(p, caplen);
[all...]
H A Dprint-ap1394.c80 * 'h->len' is the length of the packet off the wire, and 'h->caplen'
87 u_int caplen = h->caplen; local
92 if (caplen < FIREWIRE_HDRLEN) {
101 caplen -= FIREWIRE_HDRLEN;
108 if (ether_encap_print(ether_type, p, length, caplen,
115 default_print(p, caplen);
H A Dprint-ipfc.c81 ipfc_print(const u_char *p, u_int length, u_int caplen) argument
87 if (caplen < IPFC_HDRLEN) {
102 caplen -= IPFC_HDRLEN;
105 if (llc_print(p, length, caplen, ESRC(&ehdr), EDST(&ehdr),
119 default_print(p, caplen);
126 * 'h->len' is the length of the packet off the wire, and 'h->caplen'
132 ipfc_print(p, h->len, h->caplen);
H A Dprint-null.c84 * 'h->len' is the length of the packet off the wire, and 'h->caplen'
91 u_int caplen = h->caplen; local
94 if (caplen < NULL_HDRLEN) {
116 caplen -= NULL_HDRLEN;
134 isoclns_print(p, length, caplen);
150 default_print(p, caplen);
H A Dprint-sunatm.c69 * 'h->len' is the length of the packet off the wire, and 'h->caplen'
75 u_int caplen = h->caplen; local
81 if (caplen < PKT_BEGIN_POS) {
83 return (caplen);
112 caplen -= PKT_BEGIN_POS;
114 atm_print(vpi, vci, traftype, p, length, caplen);
H A Dprint-llc.c148 llc_print(const u_char *p, u_int length, u_int caplen, argument
158 if (caplen < 3) {
160 default_print((u_char *)p, caplen);
184 if (caplen < 4) {
186 default_print((u_char *)p, caplen);
287 caplen -= 3;
291 caplen -= 4;
299 isoclns_print(p + 3, length - 3, caplen - 3);
310 ret = snap_print(p+3, length-3, caplen-3, extracted_ethertype,
347 caplen
379 snap_print(const u_char *p, u_int length, u_int caplen, u_short *extracted_ethertype, u_int bridge_pad) argument
[all...]
H A Dprint-lane.c87 * 'h->len' is the length of the packet off the wire, and 'h->caplen'
93 lane_print(const u_char *p, u_int length, u_int caplen) argument
100 if (caplen < sizeof(struct lane_controlhdr)) {
116 if (caplen < sizeof(struct lecdatahdr_8023)) {
128 caplen -= sizeof(struct lecdatahdr_8023);
139 if (llc_print(p, length, caplen, ep->h_source, ep->h_dest,
149 default_print(p, caplen);
151 } else if (ether_encap_print(ether_type, p, length, caplen,
157 default_print(p, caplen);
164 lane_print(p, h->len, h->caplen);
[all...]
H A Dprint-enc.c52 register u_int caplen = h->caplen; local
56 if (caplen < ENC_HDRLEN) {
H A Dprint-ether.c107 ether_print(const u_char *p, u_int length, u_int caplen) argument
113 if (caplen < ETHER_HDRLEN) {
122 caplen -= ETHER_HDRLEN;
133 if (llc_print(p, length, caplen, ESRC(ep), EDST(ep),
140 default_print(p, caplen);
142 } else if (ether_encap_print(ether_type, p, length, caplen,
149 default_print(p, caplen);
156 * 'h->len' is the length of the packet off the wire, and 'h->caplen'
162 ether_print(p, h->len, h->caplen);
181 u_int length, u_int caplen, u_shor
180 ether_encap_print(u_short ether_type, const u_char *p, u_int length, u_int caplen, u_short *extracted_ether_type) argument
[all...]
H A Dprint-pflog.c121 u_int caplen = h->caplen; local
126 if (caplen < sizeof(u_int8_t)) {
128 return (caplen);
139 if (caplen < hdrlen) {
153 caplen -= hdrlen;
178 default_print(p, caplen);
H A Dprint-token.c101 token_print(const u_char *p, u_int length, u_int caplen) argument
111 if (caplen < TOKEN_HDRLEN) {
153 caplen -= hdr_len;
158 if (llc_print(p, length, caplen, ESRC(&ehdr), EDST(&ehdr),
170 default_print(p, caplen);
179 default_print(p, caplen);
187 * 'h->len' is the length of the packet off the wire, and 'h->caplen'
193 return (token_print(p, h->len, h->caplen));
H A Dprint-sl.c54 register u_int caplen = h->caplen; local
58 if (caplen < SLIP_HDRLEN) {
60 return (caplen);
89 register u_int caplen = h->caplen; local
93 if (caplen < SLIP_HDRLEN) {
95 return (caplen);
H A Dprint-802_11.c914 ieee802_11_print(const u_char *p, u_int length, u_int caplen, int pad) argument
921 if (caplen < IEEE802_11_FC_LEN) {
923 return caplen;
931 if (caplen < hdrlen) {
942 caplen -= hdrlen;
968 } else if (llc_print(p, length, caplen, dst, src,
982 default_print(p, caplen);
996 * 'h->len' is the length of the packet off the wire, and 'h->caplen'
1002 return ieee802_11_print(p, h->len, h->caplen, 0);
1127 ieee802_11_radio_print(const u_char *p, u_int length, u_int caplen) argument
1208 ieee802_11_avs_radio_print(const u_char *p, u_int length, u_int caplen) argument
1251 u_int caplen = h->caplen; local
1279 u_int caplen = h->caplen; local
[all...]
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-chdlc.c57 register u_int caplen = h->caplen; local
59 if (caplen < CHDLC_HDRLEN) {
61 return (caplen);
/external/libpcap/
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-septel.c90 int caplen = 0; local
141 caplen = p->snapshot ;
144 if (caplen > packet_len) {
146 caplen = packet_len;
149 if ((p->fcode.bf_insns == NULL) || bpf_filter(p->fcode.bf_insns, dp, packet_len, caplen)) {
168 pcap_header.caplen = caplen;
H A Dpcap-win32.c144 register int caplen, hdrlen; local
168 caplen = bhp->bh_caplen;
175 bp += BPF_WORDALIGN(caplen + hdrlen);
192 int packet_len = 0, caplen = 0; local
243 caplen = ATM_SNAPLEN;
251 caplen = erf_record_len - dag_record_size - 2;
252 if (caplen > packet_len)
254 caplen = packet_len;
263 caplen = erf_record_len - dag_record_size;
264 if (caplen > packet_le
[all...]
H A Dsavefile.c1112 * We interchanged the caplen and len fields at version 2.3,
1118 * number of 543.0, and with the caplen and len fields in the
1209 hdr->caplen = SWAPLONG(sf_hdr.caplen);
1214 hdr->caplen = sf_hdr.caplen;
1219 /* Swap the caplen and len fields, if necessary. */
1226 if (hdr->caplen <= hdr->len) {
1236 t = hdr->caplen;
1237 hdr->caplen
[all...]
H A Dpcap-nit.c105 register int caplen; local
175 caplen = nh->nh_wirelen;
176 if (caplen > p->snapshot)
177 caplen = p->snapshot;
178 if (bpf_filter(fcode, cp, nh->nh_wirelen, caplen)) {
182 h.caplen = caplen;
H A Dpcap-dag.c249 int caplen = 0; local
288 caplen = rlen - dag_record_size;
294 caplen = packet_len = ATM_CELL_SIZE;
302 caplen = rlen - dag_record_size - 4;
307 caplen = packet_len = ATM_CELL_SIZE;
325 caplen -= ATM_HDR_SIZE;
339 caplen = rlen - dag_record_size - 2;
340 if (caplen > packet_len) {
341 caplen = packet_len;
354 caplen
[all...]

Completed in 2548 milliseconds

123