/external/tcpdump/ |
H A D | 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);
|
H A D | print-enc.c | 52 register u_int caplen = h->caplen; local 56 if (caplen < ENC_HDRLEN) {
|
H A D | print-null.c | 84 * '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 D | print-ether.c | 107 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 D | print-ipfc.c | 81 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 D | print-lane.c | 87 * '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 D | 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; 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 D | 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);
|
H A D | print-symantec.c | 76 * '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 D | print-ap1394.c | 80 * '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 D | print-arcnet.c | 41 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 D | print-pflog.c | 121 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 D | print-cdp.c | 89 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 D | print-fddi.c | 242 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 D | 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);
|
H A D | print-token.c | 101 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 D | print-atm.c | 104 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 D | print-chdlc.c | 57 register u_int caplen = h->caplen; local 59 if (caplen < CHDLC_HDRLEN) { 61 return (caplen);
|
H A D | print-llc.c | 148 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 D | 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);
|
H A D | pcap-nit.c | 105 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 D | pcap-septel.c | 90 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 D | pcap-snoop.c | 67 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 D | pcap-snit.c | 122 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 D | pcap-bpf.c | 236 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...] |