Searched defs:caplen (Results 1 - 25 of 42) sorted by relevance

12

/external/tcpdump/
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-enc.c52 register u_int caplen = h->caplen; local
56 if (caplen < ENC_HDRLEN) {
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-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-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-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-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-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-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-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-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-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-cdp.c89 cdp_print(const u_char *pptr, u_int length, u_int caplen) argument
94 if (caplen < CDP_HEADER_LEN) {
218 printf(", length %u",caplen);
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-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-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-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-chdlc.c57 register u_int caplen = h->caplen; local
59 if (caplen < CHDLC_HDRLEN) {
61 return (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...]
/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-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-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-snoop.c67 register u_int caplen; local
110 caplen = (datalen < p->snapshot) ? datalen : p->snapshot;
125 bpf_filter(p->fcode.bf_insns, cp, datalen, caplen)) {
131 h.caplen = caplen;
H A Dpcap-snit.c122 register int caplen; local
186 caplen = nlp->nh_pktlen;
187 if (caplen > p->snapshot)
188 caplen = p->snapshot;
190 if (bpf_filter(fcode, cp, nlp->nh_pktlen, caplen)) {
194 h.caplen = caplen;
H A Dpcap-bpf.c236 register int caplen, hdrlen; local
258 caplen = bhp->bh_caplen;
274 bpf_filter(fcode, datap, bhp->bh_datalen, caplen)) {
288 if (caplen > pad)
289 pkthdr.caplen = caplen - pad;
291 pkthdr.caplen = 0;
298 pkthdr.caplen = caplen;
302 bp += BPF_WORDALIGN(caplen
[all...]

Completed in 965 milliseconds

12