/external/tcpdump/ |
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 [all...] |
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) 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...] |
print-atm.c | 104 atm_llc_print(const u_char *p, int length, int caplen) 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 -= 20 [all...] |
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);
|
print-ether.c | 107 ether_print(const u_char *p, u_int length, u_int caplen) 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_short *extracted_ether_type [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-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);
|
print-ipfc.c | 81 ipfc_print(const u_char *p, u_int length, u_int caplen) 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);
|
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-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...] |
print-llc.c | 148 llc_print(const u_char *p, u_int length, u_int caplen, 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 -= 3 [all...] |
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-token.c | 101 token_print(const u_char *p, u_int length, u_int caplen) 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));
|
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);
|
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);
|
print-enc.c | 52 register u_int caplen = h->caplen; local 56 if (caplen < ENC_HDRLEN) {
|
print-802_11.c | 914 ieee802_11_print(const u_char *p, u_int length, u_int caplen, int pad) 921 if (caplen < IEEE802_11_FC_LEN) { 923 return caplen; 931 if (caplen < hdrlen) { 942 caplen -= hdrlen; 968 } else if (llc_print(p, length, caplen, dst, src, 982 default_print(p, caplen); 996 * 'h->len' is the length of the packet off the wire, and 'h->caplen' 1002 return ieee802_11_print(p, h->len, h->caplen, 0); 1127 ieee802_11_radio_print(const u_char *p, u_int length, u_int caplen) 1251 u_int caplen = h->caplen; local 1279 u_int caplen = h->caplen; local [all...] |
print-juniper.c | 122 u_int32_t caplen; member in struct:juniper_l2info_t 356 ether_print(p, l2info.length, l2info.caplen); 373 ether_print(p, l2info.length, l2info.caplen); 448 l2info.caplen-ETHERTYPE_LEN, 496 isoclns_print(p,l2info.length,l2info.caplen); 551 isoclns_print(p,l2info.length,l2info.caplen); 563 isoclns_print(p+1, l2info.length-1, l2info.caplen-1); 569 isoclns_print(p-1, l2info.length+1, l2info.caplen+1); 596 isoclns_print(p, l2info.length, l2info.caplen); 602 isoclns_print(p-1, l2info.length+1, l2info.caplen+1) [all...] |
print-fddi.c | 242 fddi_print(const u_char *p, u_int length, u_int caplen) 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);
|
print-chdlc.c | 57 register u_int caplen = h->caplen; local 59 if (caplen < CHDLC_HDRLEN) { 61 return (caplen);
|
/external/libpcap/ |
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-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;
|
pcap-dag.c | 249 int caplen = 0; local 288 caplen = rlen - dag_record_size; 294 caplen = packet_len = ATM_CELL_SIZE; 302 caplen = rlen - dag_record_size - 4; 307 caplen = packet_len = ATM_CELL_SIZE; 325 caplen -= ATM_HDR_SIZE; 339 caplen = rlen - dag_record_size - 2; 340 if (caplen > packet_len) { 341 caplen = packet_len; 354 caplen = rlen - dag_record_size [all...] |
pcap-win32.c | 144 register int caplen, hdrlen; local 168 caplen = bhp->bh_caplen; 175 bp += BPF_WORDALIGN(caplen + hdrlen); 192 int packet_len = 0, caplen = 0; local 243 caplen = ATM_SNAPLEN; 251 caplen = erf_record_len - dag_record_size - 2; 252 if (caplen > packet_len) 254 caplen = packet_len; 263 caplen = erf_record_len - dag_record_size; 264 if (caplen > packet_len [all...] |
/system/wlan/ti/sta_dk_4_0_4_32/common/src/core/data_ctrl/Ctrl/4X/ |
fourXManager.c | 179 UINT16 capLen; 234 capLen = *((UINT16*)(capPtr)); 238 len += sizeof(UINT16) /* type field */ + sizeof(UINT16) /* len field */ + (UINT32)capLen /* val fields */; 244 capLen = *((UINT16*)(capPtr)); 250 len += sizeof(UINT16) /* type field */ + sizeof(UINT16) /* len field */ + (UINT32)capLen /* val field */; 256 capLen = *((UINT16*)(capPtr)); 264 len += sizeof(UINT16) /* type field */ + sizeof(UINT16) /* len field */ + (UINT32)capLen /* val field */; 270 capLen = *((UINT16*)(capPtr)); 272 len += sizeof(UINT16) /* type field */ + sizeof(UINT16) /* len field */ + (UINT32)capLen /* val field */; 278 capLen = *((UINT16*)(capPtr)) [all...] |