Home
last modified time | relevance | path

Searched refs:caplen (Results 1 – 25 of 55) sorted by relevance

123

/external/tcpdump/
Dprint-arcnet.c41 u_int length, u_int caplen);
112 u_int caplen = h->caplen; in arcnet_if_print() local
120 if (caplen < ARC_HDRLEN) { in arcnet_if_print()
122 return (caplen); in arcnet_if_print()
141 if (caplen < ARC_HDRNEWLEN) { in arcnet_if_print()
144 return (caplen); in arcnet_if_print()
148 if (caplen < ARC_HDRNEWLEN_EXC) { in arcnet_if_print()
151 return (caplen); in arcnet_if_print()
171 caplen -= archdrlen; in arcnet_if_print()
181 if (!arcnet_encap_print(arc_type, p, length, caplen)) in arcnet_if_print()
[all …]
Dprint-atm.c104 atm_llc_print(const u_char *p, int length, int caplen) in atm_llc_print() argument
108 if (!llc_print(p, length, caplen, NULL, NULL, in atm_llc_print()
116 default_print(p, caplen); in atm_llc_print()
135 u_int caplen = h->caplen; in atm_if_print() local
140 if (caplen < 8) { in atm_if_print()
142 return (caplen); in atm_if_print()
149 isoclns_print(p+1, length-1, caplen-1); in atm_if_print()
188 caplen -= 20; in atm_if_print()
191 atm_llc_print(p, length, caplen); in atm_if_print()
218 sig_print(const u_char *p, int caplen) in sig_print() argument
[all …]
Dprint-llc.c148 llc_print(const u_char *p, u_int length, u_int caplen, in llc_print() argument
158 if (caplen < 3) { in llc_print()
160 default_print((u_char *)p, caplen); in llc_print()
184 if (caplen < 4) { in llc_print()
186 default_print((u_char *)p, caplen); in llc_print()
287 caplen -= 3; in llc_print()
291 caplen -= 4; in llc_print()
299 isoclns_print(p + 3, length - 3, caplen - 3); in llc_print()
310 ret = snap_print(p+3, length-3, caplen-3, extracted_ethertype, in llc_print()
347 caplen -= 3; in llc_print()
[all …]
Dprint-ether.c107 ether_print(const u_char *p, u_int length, u_int caplen) in ether_print() argument
113 if (caplen < ETHER_HDRLEN) { in ether_print()
122 caplen -= ETHER_HDRLEN; in ether_print()
133 if (llc_print(p, length, caplen, ESRC(ep), EDST(ep), in ether_print()
140 default_print(p, caplen); in ether_print()
142 } else if (ether_encap_print(ether_type, p, length, caplen, in ether_print()
149 default_print(p, caplen); in ether_print()
162 ether_print(p, h->len, h->caplen); in ether_if_print()
181 u_int length, u_int caplen, u_short *extracted_ether_type) in ether_encap_print() argument
200 arp_print(gndo, p, length, caplen); in ether_encap_print()
[all …]
Dprint-sll.c117 u_int caplen = h->caplen; in sll_if_print() local
123 if (caplen < SLL_HDR_LEN) { in sll_if_print()
130 return (caplen); in sll_if_print()
142 caplen -= SLL_HDR_LEN; in sll_if_print()
169 if (llc_print(p, length, caplen, NULL, NULL, in sll_if_print()
187 default_print(p, caplen); in sll_if_print()
190 } else if (ether_encap_print(ether_type, p, length, caplen, in sll_if_print()
196 default_print(p, caplen); in sll_if_print()
Dprint-lane.c93 lane_print(const u_char *p, u_int length, u_int caplen) in lane_print() argument
100 if (caplen < sizeof(struct lane_controlhdr)) { in lane_print()
116 if (caplen < sizeof(struct lecdatahdr_8023)) { in lane_print()
128 caplen -= sizeof(struct lecdatahdr_8023); in lane_print()
139 if (llc_print(p, length, caplen, ep->h_source, ep->h_dest, in lane_print()
149 default_print(p, caplen); in lane_print()
151 } else if (ether_encap_print(ether_type, p, length, caplen, in lane_print()
157 default_print(p, caplen); in lane_print()
164 lane_print(p, h->len, h->caplen); in lane_if_print()
Dprint-symantec.c83 u_int caplen = h->caplen; in symantec_if_print() local
88 if (caplen < sizeof (struct symantec_header)) { in symantec_if_print()
90 return caplen; in symantec_if_print()
97 caplen -= sizeof (struct symantec_header); in symantec_if_print()
109 default_print(p, caplen); in symantec_if_print()
110 } else if (ether_encap_print(ether_type, p, length, caplen, in symantec_if_print()
117 default_print(p, caplen); in symantec_if_print()
Dprint-sunatm.c75 u_int caplen = h->caplen; in sunatm_if_print() local
81 if (caplen < PKT_BEGIN_POS) { in sunatm_if_print()
83 return (caplen); in sunatm_if_print()
112 caplen -= PKT_BEGIN_POS; in sunatm_if_print()
114 atm_print(vpi, vci, traftype, p, length, caplen); in sunatm_if_print()
Dprint-null.c91 u_int caplen = h->caplen; in null_if_print() local
94 if (caplen < NULL_HDRLEN) { in null_if_print()
116 caplen -= NULL_HDRLEN; in null_if_print()
134 isoclns_print(p, length, caplen); in null_if_print()
150 default_print(p, caplen); in null_if_print()
Dprint-pflog.c121 u_int caplen = h->caplen; in pflog_if_print() local
126 if (caplen < sizeof(u_int8_t)) { in pflog_if_print()
128 return (caplen); in pflog_if_print()
139 if (caplen < hdrlen) { in pflog_if_print()
153 caplen -= hdrlen; in pflog_if_print()
178 default_print(p, caplen); in pflog_if_print()
Dprint-ap1394.c87 u_int caplen = h->caplen; in ap1394_if_print() local
92 if (caplen < FIREWIRE_HDRLEN) { in ap1394_if_print()
101 caplen -= FIREWIRE_HDRLEN; in ap1394_if_print()
108 if (ether_encap_print(ether_type, p, length, caplen, in ap1394_if_print()
115 default_print(p, caplen); in ap1394_if_print()
Dprint-ipfc.c81 ipfc_print(const u_char *p, u_int length, u_int caplen) in ipfc_print() argument
87 if (caplen < IPFC_HDRLEN) { in ipfc_print()
102 caplen -= IPFC_HDRLEN; in ipfc_print()
105 if (llc_print(p, length, caplen, ESRC(&ehdr), EDST(&ehdr), in ipfc_print()
119 default_print(p, caplen); in ipfc_print()
132 ipfc_print(p, h->len, h->caplen); in ipfc_if_print()
Dprint-cip.c72 u_int caplen = h->caplen; in cip_if_print() local
76 if (memcmp(rfcllc, p, sizeof(rfcllc))==0 && caplen < RFC1483LLC_LEN) { in cip_if_print()
88 if (llc_print(p, length, caplen, NULL, NULL, in cip_if_print()
98 default_print(p, caplen); in cip_if_print()
Dprint-802_11.c914 ieee802_11_print(const u_char *p, u_int length, u_int caplen, int pad) in ieee802_11_print() argument
921 if (caplen < IEEE802_11_FC_LEN) { in ieee802_11_print()
923 return caplen; in ieee802_11_print()
931 if (caplen < hdrlen) { in ieee802_11_print()
942 caplen -= hdrlen; in ieee802_11_print()
968 } else if (llc_print(p, length, caplen, dst, src, in ieee802_11_print()
982 default_print(p, caplen); in ieee802_11_print()
1002 return ieee802_11_print(p, h->len, h->caplen, 0); in ieee802_11_if_print()
1127 ieee802_11_radio_print(const u_char *p, u_int length, u_int caplen) in ieee802_11_radio_print() argument
1148 if (caplen < sizeof(*hdr)) { in ieee802_11_radio_print()
[all …]
Dprint-fddi.c242 fddi_print(const u_char *p, u_int length, u_int caplen) in fddi_print() argument
248 if (caplen < FDDI_HDRLEN) { in fddi_print()
264 caplen -= FDDI_HDRLEN; in fddi_print()
269 if (llc_print(p, length, caplen, ESRC(&ehdr), EDST(&ehdr), in fddi_print()
283 default_print(p, caplen); in fddi_print()
286 fddi_smt_print(p, caplen); in fddi_print()
293 default_print(p, caplen); in fddi_print()
306 fddi_print(p, h->len, h->caplen); in fddi_if_print()
Dprint-token.c101 token_print(const u_char *p, u_int length, u_int caplen) in token_print() argument
111 if (caplen < TOKEN_HDRLEN) { in token_print()
153 caplen -= hdr_len; in token_print()
158 if (llc_print(p, length, caplen, ESRC(&ehdr), EDST(&ehdr), in token_print()
170 default_print(p, caplen); in token_print()
179 default_print(p, caplen); in token_print()
193 return (token_print(p, h->len, h->caplen)); in token_if_print()
Dprint-sl.c54 register u_int caplen = h->caplen; in sl_if_print() local
58 if (caplen < SLIP_HDRLEN) { in sl_if_print()
60 return (caplen); in sl_if_print()
89 register u_int caplen = h->caplen; in sl_bsdos_if_print() local
93 if (caplen < SLIP_HDRLEN) { in sl_bsdos_if_print()
95 return (caplen); in sl_bsdos_if_print()
Dprint-juniper.c122 u_int32_t caplen; member
356 ether_print(p, l2info.length, l2info.caplen); in juniper_pppoe_print()
373 ether_print(p, l2info.length, l2info.caplen); in juniper_ether_print()
448 l2info.caplen-ETHERTYPE_LEN, in juniper_pppoe_atm_print()
496 isoclns_print(p,l2info.length,l2info.caplen); in juniper_mlppp_print()
551 isoclns_print(p,l2info.length,l2info.caplen); in juniper_mfr_print()
563 isoclns_print(p+1, l2info.length-1, l2info.caplen-1); in juniper_mfr_print()
569 isoclns_print(p-1, l2info.length+1, l2info.caplen+1); in juniper_mfr_print()
596 isoclns_print(p, l2info.length, l2info.caplen); in juniper_mlfr_print()
602 isoclns_print(p-1, l2info.length+1, l2info.caplen+1); in juniper_mlfr_print()
[all …]
Dprint-enc.c52 register u_int caplen = h->caplen; in enc_if_print() local
56 if (caplen < ENC_HDRLEN) { in enc_if_print()
/external/libpcap/
Dpcap-dag.c249 int caplen = 0; in dag_read() local
288 caplen = rlen - dag_record_size; in dag_read()
294 caplen = packet_len = ATM_CELL_SIZE; in dag_read()
302 caplen = rlen - dag_record_size - 4; in dag_read()
307 caplen = packet_len = ATM_CELL_SIZE; in dag_read()
325 caplen -= ATM_HDR_SIZE; in dag_read()
339 caplen = rlen - dag_record_size - 2; in dag_read()
340 if (caplen > packet_len) { in dag_read()
341 caplen = packet_len; in dag_read()
354 caplen = rlen - dag_record_size; in dag_read()
[all …]
Dsavefile.c1209 hdr->caplen = SWAPLONG(sf_hdr.caplen); in sf_next_packet()
1214 hdr->caplen = sf_hdr.caplen; in sf_next_packet()
1226 if (hdr->caplen <= hdr->len) { in sf_next_packet()
1236 t = hdr->caplen; in sf_next_packet()
1237 hdr->caplen = hdr->len; in sf_next_packet()
1242 if (hdr->caplen > buflen) { in sf_next_packet()
1252 if (hdr->caplen > 65535) { in sf_next_packet()
1258 if (tsize < hdr->caplen) { in sf_next_packet()
1259 tsize = ((hdr->caplen + 1023) / 1024) * 1024; in sf_next_packet()
1270 amt_read = fread((char *)tp, 1, hdr->caplen, fp); in sf_next_packet()
[all …]
Dpcap-septel.c90 int caplen = 0; in septel_read() local
141 caplen = p->snapshot ; in septel_read()
144 if (caplen > packet_len) { in septel_read()
146 caplen = packet_len; in septel_read()
149 if ((p->fcode.bf_insns == NULL) || bpf_filter(p->fcode.bf_insns, dp, packet_len, caplen)) { in septel_read()
168 pcap_header.caplen = caplen; in septel_read()
Dpcap-enet.c61 register int cc, caplen; in readloop() local
80 caplen = ph->tap.th_wirelen > snaplen ? snaplen : ph->tap in readloop()
83 ph->tap.th_wirelen, caplen)) { in readloop()
88 ph->tap.th_wirelen, caplen); in readloop()
95 caplen = cc > snaplen ? snaplen : cc ; in readloop()
96 if (bpf_filter(fcode, buf.hdr.packet, cc, caplen)) { in readloop()
99 (*printit)(buf.hdr.packet, &tv, cc, caplen); in readloop()
Dpcap-win32.c144 register int caplen, hdrlen; in pcap_read_win32_npf() local
168 caplen = bhp->bh_caplen; in pcap_read_win32_npf()
175 bp += BPF_WORDALIGN(caplen + hdrlen); in pcap_read_win32_npf()
192 int packet_len = 0, caplen = 0; in pcap_read_win32_dag() local
243 caplen = ATM_SNAPLEN; in pcap_read_win32_dag()
251 caplen = erf_record_len - dag_record_size - 2; in pcap_read_win32_dag()
252 if (caplen > packet_len) in pcap_read_win32_dag()
254 caplen = packet_len; in pcap_read_win32_dag()
263 caplen = erf_record_len - dag_record_size; in pcap_read_win32_dag()
264 if (caplen > packet_len) in pcap_read_win32_dag()
[all …]
Dpcap-nit.c105 register int caplen; in pcap_read_nit() local
175 caplen = nh->nh_wirelen; in pcap_read_nit()
176 if (caplen > p->snapshot) in pcap_read_nit()
177 caplen = p->snapshot; in pcap_read_nit()
178 if (bpf_filter(fcode, cp, nh->nh_wirelen, caplen)) { in pcap_read_nit()
182 h.caplen = caplen; in pcap_read_nit()

123