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

1 2

  /external/tcpdump/
print-bt.c 46 * '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);
print-enc.c 53 register u_int caplen = h->caplen; local
57 if (caplen < ENC_HDRLEN) {
74 caplen -= ENC_HDRLEN;
print-802_15_4.c 96 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...]
print-cip.c 66 * '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);
print-nflog.c 77 u_int caplen = h->caplen; local
80 if (caplen < (int) sizeof(nflog_hdr_t) || length < (int) sizeof(nflog_hdr_t)) {
95 caplen -= sizeof(nflog_hdr_t);
99 if (caplen < sizeof(nflog_tlv_t) || length < sizeof(nflog_tlv_t)) {
118 if (caplen < size || length < size) {
133 caplen -= sizeof(nflog_tlv_t);
140 caplen -= size;
161 ndo->ndo_default_print(ndo, p, caplen);
print-null.c 83 * 'h->len' is the length of the packet off the wire, and 'h->caplen'
90 u_int caplen = h->caplen; local
93 if (caplen < NULL_HDRLEN) {
115 caplen -= NULL_HDRLEN;
133 isoclns_print(p, length, caplen);
149 default_print(p, caplen);
print-ppi.c 50 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'
print-sll.c 111 * '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 -= 4
    [all...]
print-ap1394.c 84 * '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);
print-arcnet.c 42 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
    [all...]
print-pflog.c 117 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);
print-sunatm.c 69 * '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);
print-symantec.c 77 * '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);
print-sl.c 54 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);
print-chdlc.c 57 register u_int caplen = h->caplen; local
59 if (caplen < CHDLC_HDRLEN) {
61 return (caplen);
print-atm.c 138 atm_llc_print(const u_char *p, int length, int caplen)
142 if (!llc_print(p, length, caplen, NULL, NULL,
150 default_print(p, caplen);
163 * 'h->len' is the length of the packet off the wire, and 'h->caplen'
169 u_int caplen = h->caplen; local
174 if (caplen < 8) {
176 return (caplen);
183 isoclns_print(p+1, length-1, caplen-1);
222 caplen -= 20
    [all...]
  /external/libpcap/
dlpisubs.c 129 int n, caplen, origlen; local
175 caplen = sbp->sbh_msglen;
178 caplen = min(p->snapshot, len);
180 bufp += caplen;
183 if (bpf_filter(p->fcode.bf_insns, pk, origlen, caplen)) {
191 pkthdr.caplen = caplen;
192 /* Insure caplen does not exceed snapshot */
193 if (pkthdr.caplen > p->snapshot)
194 pkthdr.caplen = p->snapshot
    [all...]
pcap-enet.c 61 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);
pcap-nit.c 113 register int caplen; local
183 caplen = nh->nh_wirelen;
184 if (caplen > p->snapshot)
185 caplen = p->snapshot;
186 if (bpf_filter(p->fcode.bf_insns, cp, nh->nh_wirelen, caplen)) {
190 h.caplen = caplen;
pcap-septel.c 83 int caplen = 0; local
134 caplen = p->snapshot ;
137 if (caplen > packet_len) {
139 caplen = packet_len;
142 if ((p->fcode.bf_insns == NULL) || bpf_filter(p->fcode.bf_insns, dp, packet_len, caplen)) {
161 pcap_header.caplen = caplen;
pcap-snf.c 114 int i, flags, err, caplen, n; local
148 caplen = req.length;
149 if (caplen > p->snapshot)
150 caplen = p->snapshot;
153 bpf_filter(p->fcode.bf_insns, req.pkt_addr, req.length, caplen)) {
155 hdr.caplen = caplen;
pcap-snit.c 130 register int caplen; local
194 caplen = nlp->nh_pktlen;
195 if (caplen > p->snapshot)
196 caplen = p->snapshot;
198 if (bpf_filter(p->fcode.bf_insns, cp, nlp->nh_pktlen, caplen)) {
202 h.caplen = caplen;
pcap-snoop.c 75 register u_int caplen; local
118 caplen = (datalen < p->snapshot) ? datalen : p->snapshot;
133 bpf_filter(p->fcode.bf_insns, cp, datalen, caplen)) {
139 h.caplen = caplen;
pcap-win32.c 227 register int caplen, hdrlen; local
251 caplen = bhp->bh_caplen;
258 bp += Packet_WORDALIGN(caplen + hdrlen);
276 int packet_len = 0, caplen = 0; local
327 caplen = ATM_SNAPLEN;
335 caplen = erf_record_len - dag_record_size - 2;
336 if (caplen > packet_len)
338 caplen = packet_len;
347 caplen = erf_record_len - dag_record_size;
348 if (caplen > packet_len
    [all...]
pcap1.h 140 bpf_u_int32 caplen; /* length of portion present */ member in struct:pcap1_info_packet

Completed in 848 milliseconds

1 2