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

123

/freebsd-9.3-release/contrib/tcpdump/
H A Dprint-arcnet.c42 u_int length, u_int caplen);
107 * 'h->len' is the length of the packet off the wire, and 'h->caplen'
113 u_int caplen = h->caplen; local
121 if (caplen < ARC_HDRLEN) {
123 return (caplen);
142 if (caplen < ARC_HDRNEWLEN) {
145 return (caplen);
149 if (caplen < ARC_HDRNEWLEN_EXC) {
152 return (caplen);
201 u_int caplen = h->caplen; local
256 arcnet_encap_print(u_char arctype, const u_char *p, u_int length, u_int caplen) argument
[all...]
H A Dprint-symantec.c77 * 'h->len' is the length of the packet off the wire, and 'h->caplen'
84 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 (ethertype_print(gndo, ether_type, p, length, caplen) == 0) {
116 default_print(p, caplen);
H A Dprint-bt.c46 * 'h->len' is the length of the packet off the wire, and 'h->caplen'
53 u_int caplen = h->caplen; local
56 if (caplen < BT_HDRLEN) {
60 caplen -= BT_HDRLEN;
67 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-802_15_4.c96 u_int caplen = h->caplen; local
101 if (caplen < 3) {
102 ND_PRINT((ndo, "[|802.15.4] %x", caplen));
103 return caplen;
112 caplen -= 3;
119 return caplen;
125 caplen -= hdrlen;
176 caplen -= hdrlen;
180 (ndo->ndo_default_print)(ndo, p, 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;
170 if (llc_print(p, length, caplen, NULL, NULL,
188 default_print(p, caplen);
196 if (caplen < 4 || length < 4) {
218 caplen
[all...]
H A Dprint-ap1394.c84 * 'h->len' is the length of the packet off the wire, and 'h->caplen'
91 u_int caplen = h->caplen; local
95 if (caplen < FIREWIRE_HDRLEN) {
104 caplen -= FIREWIRE_HDRLEN;
109 if (ethertype_print(gndo, ether_type, p, length, caplen) == 0) {
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.c85 * 'h->len' is the length of the packet off the wire, and 'h->caplen'
92 u_int caplen = h->caplen; local
95 if (caplen < NULL_HDRLEN) {
117 caplen -= NULL_HDRLEN;
135 isoclns_print(p, length, caplen);
151 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-ether.c132 const u_char *p, u_int length, u_int caplen,
140 if (caplen < ETHER_HDRLEN || length < ETHER_HDRLEN) {
153 caplen -= ETHER_HDRLEN;
165 if (llc_print(p, length, caplen, ESRC(ep), EDST(ep),
175 ndo->ndo_default_print(ndo, p, caplen);
185 if (caplen < 4 || length < 4) {
203 caplen -= 4;
216 if (llc_print(p, length, caplen, ESRC(ep), EDST(ep),
226 ndo->ndo_default_print(ndo, p, caplen);
229 if (ethertype_print(ndo, ether_type, p, length, caplen)
131 ether_print(netdissect_options *ndo, const u_char *p, u_int length, u_int caplen, void (*print_encap_header)(netdissect_options *ndo, const u_char *), const u_char *encap_header_arg) argument
323 ethertype_print(netdissect_options *ndo, u_short ether_type, const u_char *p, u_int length, u_int caplen) argument
[all...]
H A Dprint-ipnet.c47 ipnet_print(struct netdissect_options *ndo, const u_char *p, u_int length, u_int caplen) argument
51 if (caplen < sizeof(ipnet_hdr_t)) {
60 caplen -= sizeof(ipnet_hdr_t);
82 ndo->ndo_default_print(ndo, p, caplen);
90 * 'h->len' is the length of the packet off the wire, and 'h->caplen'
97 ipnet_print(ndo, p, h->len, h->caplen);
H A Dprint-lane.c72 * 'h->len' is the length of the packet off the wire, and 'h->caplen'
78 lane_print(const u_char *p, u_int length, u_int caplen) argument
82 if (caplen < sizeof(struct lane_controlhdr)) {
102 caplen -= 2;
109 ether_print(gndo, p, length, caplen, lane_hdr_print, p - 2);
115 lane_print(p, h->len, h->caplen);
H A Dprint-llc.c152 llc_print(const u_char *p, u_int length, u_int caplen, argument
162 if (caplen < 3) {
164 default_print((u_char *)p, caplen);
188 if (caplen < 4) {
190 default_print((u_char *)p, caplen);
291 caplen -= 3;
295 caplen -= 4;
303 isoclns_print(p + 3, length - 3, caplen - 3);
314 ret = snap_print(p+3, length-3, caplen-3, 2);
350 caplen
382 snap_print(const u_char *p, u_int length, u_int caplen, u_int bridge_pad) argument
[all...]
H A Dprint-atm.c140 atm_llc_print(const u_char *p, int length, int caplen) argument
144 if (!llc_print(p, length, caplen, NULL, NULL,
152 default_print(p, caplen);
165 * 'h->len' is the length of the packet off the wire, and 'h->caplen'
171 u_int caplen = h->caplen; local
176 if (caplen < 8) {
178 return (caplen);
185 isoclns_print(p+1, length-1, caplen-1);
224 caplen
254 sig_print(const u_char *p, int caplen) argument
293 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-enc.c53 register u_int caplen = h->caplen; local
57 if (caplen < ENC_HDRLEN) {
74 caplen -= ENC_HDRLEN;
H A Dprint-pflog.c117 u_int caplen = h->caplen; local
122 if (caplen < sizeof(u_int8_t)) {
124 return (caplen);
135 if (caplen < hdrlen) {
149 caplen -= hdrlen;
174 default_print(p, caplen);
H A Dprint-ppi.c50 u_int caplen = h->caplen; local
54 if (caplen < sizeof(ppi_header_t)) {
65 caplen -= sizeof(ppi_header_t);
78 ndo->ndo_default_print(ndo, p, caplen);
85 * 'h->len' is the length of the packet off the wire, and 'h->caplen'
H A Dprint-token.c104 token_print(const u_char *p, u_int length, u_int caplen) argument
114 if (caplen < TOKEN_HDRLEN) {
132 if (caplen < TOKEN_HDRLEN + 2) {
138 if (caplen < hdr_len) {
164 caplen -= hdr_len;
169 if (llc_print(p, length, caplen, ESRC(&ehdr), EDST(&ehdr),
181 default_print(p, caplen);
190 default_print(p, caplen);
198 * 'h->len' is the length of the packet off the wire, and 'h->caplen'
204 return (token_print(p, h->len, h->caplen));
[all...]
H A Dprint-sl.c56 register u_int caplen = h->caplen; local
60 if (caplen < SLIP_HDRLEN) {
62 return (caplen);
91 register u_int caplen = h->caplen; local
95 if (caplen < SLIP_HDRLEN) {
97 return (caplen);
/freebsd-9.3-release/contrib/libpcap/
H A Dpcap-common.c1066 if (hdr->caplen < offset)
1073 if (hdr->caplen < offset)
1080 if (hdr->caplen < offset)
1085 if (hdr->caplen < offset)
1090 if (hdr->caplen < offset)
1095 if (hdr->caplen < offset)
1100 if (hdr->caplen < offset)
1106 if (hdr->caplen < offset)
1111 if (hdr->caplen < offset)
1127 if (hdr->caplen < offse
[all...]
H A Dsf-pcap.c195 * We interchanged the caplen and len fields at version 2.3,
201 * number of 543.0, and with the caplen and len fields in the
331 hdr->caplen = SWAPLONG(sf_hdr.caplen);
336 hdr->caplen = sf_hdr.caplen;
341 /* Swap the caplen and len fields, if necessary. */
348 if (hdr->caplen <= hdr->len) {
358 t = hdr->caplen;
359 hdr->caplen
[all...]
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.c75 int caplen = 0; local
126 caplen = p->snapshot ;
129 if (caplen > packet_len) {
131 caplen = packet_len;
134 if ((p->fcode.bf_insns == NULL) || bpf_filter(p->fcode.bf_insns, dp, packet_len, caplen)) {
153 pcap_header.caplen = caplen;
H A Ddlpisubs.c123 int n, caplen, origlen; local
169 caplen = sbp->sbh_msglen;
172 caplen = min(p->snapshot, len);
174 bufp += caplen;
177 if (bpf_filter(p->fcode.bf_insns, pk, origlen, caplen)) {
185 pkthdr.caplen = caplen;
186 /* Insure caplen does not exceed snapshot */
187 if (pkthdr.caplen > p->snapshot)
188 pkthdr.caplen
[all...]

Completed in 102 milliseconds

123