Home
last modified time | relevance | path

Searched refs:tptr (Results 1 – 25 of 41) sorted by relevance

12

/external/tcpdump/
Dprint-lldp.c641 const u_char *tptr, u_int tlv_len) in lldp_private_8021_print() argument
651 subtype = *(tptr+3); in lldp_private_8021_print()
663 EXTRACT_16BITS(tptr + 4))); in lldp_private_8021_print()
670 EXTRACT_16BITS(tptr+5), in lldp_private_8021_print()
671 bittok2str(lldp_8021_port_protocol_id_values, "none", *(tptr+4)), in lldp_private_8021_print()
672 *(tptr + 4))); in lldp_private_8021_print()
678 ND_PRINT((ndo, "\n\t vlan id (VID): %u", EXTRACT_16BITS(tptr + 4))); in lldp_private_8021_print()
682 sublen = *(tptr+6); in lldp_private_8021_print()
687 safeputs(ndo, tptr + 7, sublen); in lldp_private_8021_print()
693 sublen = *(tptr+4); in lldp_private_8021_print()
[all …]
Dprint-isoclns.c852 const uint8_t *tptr; in clnp_print() local
868 tptr = pptr; in clnp_print()
882 tok2str(clnp_option_sr_rr_values,"Unknown",*tptr), in clnp_print()
884 nsap_offset=*(tptr+1); in clnp_print()
894 tptr+=nsap_offset; in clnp_print()
897 source_address_length=*tptr; in clnp_print()
903 source_address=(tptr+1); in clnp_print()
914 ND_PRINT((ndo, "0x%1x", *tptr&0x0f)); in clnp_print()
919 … tok2str(clnp_option_scope_values, "Reserved", *tptr&CLNP_OPTION_SCOPE_MASK))); in clnp_print()
921 if ((*tptr&CLNP_OPTION_SCOPE_MASK) == CLNP_OPTION_SCOPE_GLOBAL) in clnp_print()
[all …]
Dprint-vtp.c125 const u_char *tptr; in vtp_print() local
131 tptr = pptr; in vtp_print()
133 ND_TCHECK2(*tptr, VTP_HEADER_LEN); in vtp_print()
135 type = *(tptr+1); in vtp_print()
137 *tptr, in vtp_print()
139 *(tptr+1), in vtp_print()
149 (tptr+4), in vtp_print()
150 tok2str(vtp_header_values,"Unknown",*(tptr+1)), in vtp_print()
151 *(tptr+2))); in vtp_print()
153 tptr += VTP_HEADER_LEN; in vtp_print()
[all …]
Dprint-ldp.c232 ND_TCHECK2(*tptr, minlen); if (tlv_tlen < minlen) goto badtlv;
236 register const u_char *tptr, in ldp_tlv_print() argument
251 ldp_tlv_header = (const struct ldp_tlv_header *)tptr; in ldp_tlv_print()
271 tptr+=sizeof(struct ldp_tlv_header); in ldp_tlv_print()
278 EXTRACT_16BITS(tptr), in ldp_tlv_print()
279 (EXTRACT_16BITS(tptr+2)&0x8000) ? "Targeted" : "Link", in ldp_tlv_print()
280 (EXTRACT_16BITS(tptr+2)&0x4000) ? ", Request for targeted Hellos" : "")); in ldp_tlv_print()
285 ND_PRINT((ndo, "\n\t IPv4 Transport Address: %s", ipaddr_string(ndo, tptr))); in ldp_tlv_print()
290 ND_PRINT((ndo, "\n\t IPv6 Transport Address: %s", ip6addr_string(ndo, tptr))); in ldp_tlv_print()
295 ND_PRINT((ndo, "\n\t Sequence Number: %u", EXTRACT_32BITS(tptr))); in ldp_tlv_print()
[all …]
Dprint-cdp.c97 const u_char *tptr; in cdp_print() local
104 tptr = pptr; /* temporary pointer */ in cdp_print()
106 ND_TCHECK2(*tptr, CDP_HEADER_LEN); in cdp_print()
107 ND_PRINT((ndo, "CDPv%u, ttl: %us", *(tptr + CDP_HEADER_VERSION_OFFSET), in cdp_print()
108 *(tptr + CDP_HEADER_TTL_OFFSET))); in cdp_print()
110 …ND_PRINT((ndo, ", checksum: 0x%04x (unverified), length %u", EXTRACT_16BITS(tptr+CDP_HEADER_CHECKS… in cdp_print()
111 tptr += CDP_HEADER_LEN; in cdp_print()
113 while (tptr < (pptr+length)) { in cdp_print()
114 ND_TCHECK2(*tptr, CDP_TLV_HEADER_LEN); /* read out Type and Length */ in cdp_print()
115 type = EXTRACT_16BITS(tptr+CDP_TLV_TYPE_OFFSET); in cdp_print()
[all …]
Dprint-mpcp.c136 const u_char *tptr; in mpcp_print() local
141 tptr=pptr; in mpcp_print()
144 ND_TCHECK2(*tptr, sizeof(const struct mpcp_common_header_t)); in mpcp_print()
155 tptr += sizeof(const struct mpcp_common_header_t); in mpcp_print()
162 ND_TCHECK2(*tptr, MPCP_GRANT_NUMBER_LEN); in mpcp_print()
163 grant_numbers = *tptr & MPCP_GRANT_NUMBER_MASK; in mpcp_print()
168 *tptr &~ MPCP_GRANT_NUMBER_MASK))); in mpcp_print()
169 tptr++; in mpcp_print()
172 ND_TCHECK2(*tptr, sizeof(const struct mpcp_grant_t)); in mpcp_print()
173 mpcp.grant = (const struct mpcp_grant_t *)tptr; in mpcp_print()
[all …]
Dprint-eap.c157 const u_char *tptr; in eap_print() local
161 tptr = cp; in eap_print()
182 tptr += sizeof(const struct eap_frame_t); in eap_print()
187 type = *(tptr); in eap_print()
188 len = EXTRACT_16BITS(tptr+2); in eap_print()
192 *(tptr+1), in eap_print()
195 ND_TCHECK2(*tptr, len); in eap_print()
198 subtype = *(tptr+4); in eap_print()
200 tok2str(eap_type_values, "unknown", *(tptr+4)), in eap_print()
201 *(tptr + 4))); in eap_print()
[all …]
Dprint-udld.c85 const u_char *tptr; in udld_print() local
90 tptr = pptr; in udld_print()
92 ND_TCHECK2(*tptr, UDLD_HEADER_LEN); in udld_print()
94 code = UDLD_EXTRACT_OPCODE(*tptr); in udld_print()
97 UDLD_EXTRACT_VERSION(*tptr), in udld_print()
100 bittok2str(udld_flags_values, "none", *(tptr+1)), in udld_print()
101 *(tptr+1), in udld_print()
111 ND_PRINT((ndo, "\n\tChecksum 0x%04x (unverified)", EXTRACT_16BITS(tptr+2))); in udld_print()
113 tptr += UDLD_HEADER_LEN; in udld_print()
115 while (tptr < (pptr+length)) { in udld_print()
[all …]
Dprint-bgp.c1256 const u_char *tptr = pptr; in bgp_attr_get_as_size() local
1271 while (tptr < pptr + len) { in bgp_attr_get_as_size()
1272 ND_TCHECK(tptr[0]); in bgp_attr_get_as_size()
1277 if (tptr[0] < BGP_AS_SEG_TYPE_MIN || tptr[0] > BGP_AS_SEG_TYPE_MAX) { in bgp_attr_get_as_size()
1280 ND_TCHECK(tptr[1]); in bgp_attr_get_as_size()
1281 tptr += 2 + tptr[1] * 2; in bgp_attr_get_as_size()
1288 if (tptr == pptr + len) { in bgp_attr_get_as_size()
1316 const u_char *tptr; in bgp_attr_print() local
1321 tptr = pptr; in bgp_attr_print()
1329 ND_TCHECK(*tptr); in bgp_attr_print()
[all …]
Dprint-cfm.c230 register const u_char *tptr) in cfm_mgmt_addr_print() argument
240 mgmt_addr_type = *tptr; in cfm_mgmt_addr_print()
250 ND_PRINT((ndo, ", %s", ipaddr_string(ndo, tptr + 1))); in cfm_mgmt_addr_print()
255 ND_PRINT((ndo, ", %s", ip6addr_string(ndo, tptr + 1))); in cfm_mgmt_addr_print()
271 cfm_egress_id_string(netdissect_options *ndo, register const u_char *tptr) in cfm_egress_id_string() argument
277 EXTRACT_16BITS(tptr), in cfm_egress_id_string()
278 etheraddr_string(ndo, tptr+2)); in cfm_egress_id_string()
289 const uint8_t *tptr, *tlv_ptr, *ma_name, *ma_nameformat, *ma_namelength; in cfm_print() local
300 tptr=pptr; in cfm_print()
328 tptr += sizeof(const struct cfm_common_header_t); in cfm_print()
[all …]
Dprint-dtp.c49 const u_char *tptr; in dtp_print() local
54 tptr = pptr; in dtp_print()
56 ND_TCHECK2(*tptr, DTP_HEADER_LEN); in dtp_print()
59 (*tptr), in dtp_print()
69 tptr += DTP_HEADER_LEN; in dtp_print()
71 while (tptr < (pptr+length)) { in dtp_print()
73 ND_TCHECK2(*tptr, 4); in dtp_print()
75 type = EXTRACT_16BITS(tptr); in dtp_print()
76 len = EXTRACT_16BITS(tptr+2); in dtp_print()
89 ND_PRINT((ndo, ", %s", tptr+4)); in dtp_print()
[all …]
Dprint-rpki-rtr.c172 rpki_rtr_pdu_print (netdissect_options *ndo, const u_char *tptr, u_int indent) in rpki_rtr_pdu_print() argument
178 pdu_header = (rpki_rtr_pdu *)tptr; in rpki_rtr_pdu_print()
181 ND_TCHECK2(*tptr, pdu_len); in rpki_rtr_pdu_print()
226 pdu = (rpki_rtr_pdu_ipv4_prefix *)tptr; in rpki_rtr_pdu_print()
240 pdu = (rpki_rtr_pdu_ipv6_prefix *)tptr; in rpki_rtr_pdu_print()
255 pdu = (rpki_rtr_pdu_error_report *)tptr; in rpki_rtr_pdu_print()
257 ND_TCHECK2(*tptr, encapsulated_pdu_length); in rpki_rtr_pdu_print()
266 tptr += sizeof(*pdu); in rpki_rtr_pdu_print()
275 rpki_rtr_pdu_print(ndo, tptr, indent+2); in rpki_rtr_pdu_print()
278 tptr += encapsulated_pdu_length; in rpki_rtr_pdu_print()
[all …]
Dprint-ospf.c184 const uint8_t *tptr, u_int ls_length) in ospf_print_grace_lsa() argument
190 ND_TCHECK2(*tptr, 4); in ospf_print_grace_lsa()
195 tlv_type = EXTRACT_16BITS(tptr); in ospf_print_grace_lsa()
196 tlv_length = EXTRACT_16BITS(tptr+2); in ospf_print_grace_lsa()
197 tptr+=4; in ospf_print_grace_lsa()
216 ND_TCHECK2(*tptr, tlv_length); in ospf_print_grace_lsa()
224 ND_PRINT((ndo, "%us", EXTRACT_32BITS(tptr))); in ospf_print_grace_lsa()
233 tok2str(lsa_opaque_grace_tlv_reason_values, "Unknown", *tptr), in ospf_print_grace_lsa()
234 *tptr)); in ospf_print_grace_lsa()
242 ND_PRINT((ndo, "%s", ipaddr_string(ndo, tptr))); in ospf_print_grace_lsa()
[all …]
Dprint-vqp.c106 const u_char *tptr; in vqp_print() local
112 tptr=pptr; in vqp_print()
149 tptr+=sizeof(const struct vqp_common_header_t); in vqp_print()
154 vqp_obj_tlv = (const struct vqp_obj_tlv_t *)tptr; in vqp_print()
157 tptr+=sizeof(struct vqp_obj_tlv_t); in vqp_print()
170 ND_TCHECK2(*tptr, vqp_obj_len); in vqp_print()
174 ND_PRINT((ndo, "%s (0x%08x)", ipaddr_string(ndo, tptr), EXTRACT_32BITS(tptr))); in vqp_print()
181 safeputs(ndo, tptr, vqp_obj_len); in vqp_print()
186 ND_PRINT((ndo, "%s", etheraddr_string(ndo, tptr))); in vqp_print()
190 print_unknown_data(ndo,tptr, "\n\t ", vqp_obj_len); in vqp_print()
[all …]
Dprint-lwapp.c169 const u_char *tptr; in lwapp_control_print() local
173 tptr=pptr; in lwapp_control_print()
177 ND_TCHECK2(*tptr, 6); in lwapp_control_print()
215 ND_PRINT((ndo, "\n\tAP identity: %s", etheraddr_string(ndo, tptr))); in lwapp_control_print()
216 tptr+=sizeof(const struct lwapp_transport_header)+6; in lwapp_control_print()
218 tptr+=sizeof(const struct lwapp_transport_header); in lwapp_control_print()
224 ND_TCHECK2(*tptr, sizeof(struct lwapp_control_header)); in lwapp_control_print()
226 lwapp_control_header = (const struct lwapp_control_header *)tptr; in lwapp_control_print()
238 ND_TCHECK2(*tptr, msg_tlen); in lwapp_control_print()
277 tptr += sizeof(struct lwapp_control_header) + msg_tlen; in lwapp_control_print()
[all …]
Dprint-sflow.c473 const u_char *tptr; in sflow_print_counter_records() local
481 tptr = pointer; in sflow_print_counter_records()
488 sflow_counter_record = (const struct sflow_counter_record_t *)tptr; in sflow_print_counter_records()
500 tptr += sizeof(struct sflow_counter_record_t); in sflow_print_counter_records()
508 if (print_sflow_counter_generic(ndo, tptr, tlen)) in sflow_print_counter_records()
512 if (print_sflow_counter_ethernet(ndo, tptr, tlen)) in sflow_print_counter_records()
516 if (print_sflow_counter_token_ring(ndo, tptr,tlen)) in sflow_print_counter_records()
520 if (print_sflow_counter_basevg(ndo, tptr, tlen)) in sflow_print_counter_records()
524 if (print_sflow_counter_vlan(ndo, tptr, tlen)) in sflow_print_counter_records()
528 if (print_sflow_counter_processor(ndo, tptr, tlen)) in sflow_print_counter_records()
[all …]
Dprint-slow.c335 register const u_char *tptr, register u_int tlen) in slow_marker_lacp_print() argument
350 ND_TCHECK2(*tptr, sizeof(struct tlv_header_t)); in slow_marker_lacp_print()
351 tlv_header = (const struct tlv_header_t *)tptr; in slow_marker_lacp_print()
366 print_unknown_data(ndo, tptr+sizeof(struct tlv_header_t), "\n\t ", tlen); in slow_marker_lacp_print()
370 tlv_tptr=tptr+sizeof(struct tlv_header_t); in slow_marker_lacp_print()
374 ND_TCHECK2(*tptr, tlv_len); in slow_marker_lacp_print()
439 print_unknown_data(ndo, tptr+sizeof(struct tlv_header_t), "\n\t ", in slow_marker_lacp_print()
443 tptr+=tlv_len; in slow_marker_lacp_print()
453 register const u_char *tptr, register u_int tlen) in slow_oam_print() argument
480 ptr.slow_oam_common_header = (struct slow_oam_common_header_t *)tptr; in slow_oam_print()
[all …]
Dprint-ospf6.c409 const uint8_t *tptr, u_int lsa_length) in ospf6_print_lsaprefix() argument
411 const struct lsa6_prefix *lsapp = (struct lsa6_prefix *)tptr; in ospf6_print_lsaprefix()
470 const uint8_t *tptr; in ospf6_print_lsa() local
486 tptr = (uint8_t *)lsap+sizeof(struct lsa6_hdr); in ospf6_print_lsa()
572 tptr = (uint8_t *)lsap->lsa_un.un_inter_ap.inter_ap_prefix; in ospf6_print_lsa()
574 bytelen = ospf6_print_lsaprefix(ndo, tptr, lsa_length); in ospf6_print_lsa()
578 tptr += bytelen; in ospf6_print_lsa()
594 tptr = (uint8_t *)lsap->lsa_un.un_asla.asla_prefix; in ospf6_print_lsa()
595 lsapp = (struct lsa6_prefix *)tptr; in ospf6_print_lsa()
596 bytelen = ospf6_print_lsaprefix(ndo, tptr, lsa_length); in ospf6_print_lsa()
[all …]
Dprint-rsvp.c489 const u_char *tptr, u_short obj_tlen) in rsvp_intserv_print() argument
499 parameter_id = *(tptr); in rsvp_intserv_print()
500 parameter_length = EXTRACT_16BITS(tptr+2)<<2; /* convert wordcount to bytecount */ in rsvp_intserv_print()
506 *(tptr + 1))); in rsvp_intserv_print()
521 ND_PRINT((ndo, "\n\t\tIS hop count: %u", EXTRACT_32BITS(tptr + 4))); in rsvp_intserv_print()
533 bw.i = EXTRACT_32BITS(tptr+4); in rsvp_intserv_print()
548 if (EXTRACT_32BITS(tptr+4) == 0xffffffff) in rsvp_intserv_print()
551 ND_PRINT((ndo, "%u", EXTRACT_32BITS(tptr + 4))); in rsvp_intserv_print()
565 ND_PRINT((ndo, "\n\t\tComposed MTU: %u bytes", EXTRACT_32BITS(tptr + 4))); in rsvp_intserv_print()
585 bw.i = EXTRACT_32BITS(tptr+4); in rsvp_intserv_print()
[all …]
Dprint-ppp.c420 const u_char *tptr; in handle_ctrl_proto() local
422 tptr=pptr; in handle_ctrl_proto()
429 ND_TCHECK2(*tptr, 2); in handle_ctrl_proto()
431 code = *tptr++; in handle_ctrl_proto()
436 *tptr++, /* ID */ in handle_ctrl_proto()
445 ND_TCHECK2(*tptr, 2); in handle_ctrl_proto()
446 len = EXTRACT_16BITS(tptr); in handle_ctrl_proto()
447 tptr += 2; in handle_ctrl_proto()
459 ND_TCHECK2(*tptr, 4); in handle_ctrl_proto()
460 ND_PRINT((ndo, "\n\t Magic-Num 0x%08x", EXTRACT_32BITS(tptr))); in handle_ctrl_proto()
[all …]
Dprint-lspping.c466 const u_char *tptr,*tlv_tptr,*subtlv_tptr; in lspping_print() local
492 tptr=pptr; in lspping_print()
565 tptr+=sizeof(const struct lspping_common_header); in lspping_print()
571 ND_TCHECK2(*tptr, sizeof(struct lspping_tlv_header)); in lspping_print()
573 lspping_tlv_header = (const struct lspping_tlv_header *)tptr; in lspping_print()
593 tlv_tptr=tptr+sizeof(struct lspping_tlv_header); in lspping_print()
597 ND_TCHECK2(*tptr, lspping_tlv_len); in lspping_print()
605 ND_TCHECK2(*tptr, sizeof(struct lspping_tlv_header)); in lspping_print()
836 tptr += sizeof(struct lspping_tlv_header); in lspping_print()
837 ND_TCHECK2(*tptr, LSPPING_TLV_BFD_DISCRIMINATOR_LEN); in lspping_print()
[all …]
Dprint-olsr.c277 const u_char *tptr, *msg_data; in olsr_print() local
279 tptr = pptr; in olsr_print()
285 ND_TCHECK2(*tptr, sizeof(struct olsr_common)); in olsr_print()
287 ptr.common = (struct olsr_common *)tptr; in olsr_print()
295 tptr += sizeof(struct olsr_common); in olsr_print()
304 while (tptr < (pptr+length)) { in olsr_print()
312 ND_TCHECK2(*tptr, sizeof(struct olsr_msg4)); in olsr_print()
317 msgptr.v6 = (struct olsr_msg6 *) tptr; in olsr_print()
343 msg_data = tptr + sizeof(struct olsr_msg6); in olsr_print()
348 msgptr.v4 = (struct olsr_msg4 *) tptr; in olsr_print()
[all …]
Dprint-fr.c441 const uint8_t *tptr; in mfr_print() local
464 tptr = p + 3; in mfr_print()
472 ND_TCHECK2(*tptr, sizeof(struct ie_tlv_header_t)); in mfr_print()
473 ie_type=tptr[0]; in mfr_print()
474 ie_len=tptr[1]; in mfr_print()
485 ND_TCHECK2(*tptr, ie_len); in mfr_print()
486 tptr+=sizeof(struct ie_tlv_header_t); in mfr_print()
494 ND_PRINT((ndo, "0x%08x", EXTRACT_32BITS(tptr))); in mfr_print()
500 if (*(tptr+idx) != 0) /* don't print null termination */ in mfr_print()
501 safeputchar(ndo, *(tptr + idx)); in mfr_print()
[all …]
/external/boringssl/src/crypto/bn/asm/
Dx86_64-mont5.pl906 my ($i,$j,$tptr)=("%rbp","%rcx",$rptr);
1102 lea 48+8(%rsp,$num,2),$tptr # end of tp[] buffer, &tp[2*$num]
1104 lea -32($tptr,$i),$tptr # end of tp[] window, &tp[2*$num-"$i"]
1112 mov $A0[0],-24($tptr,$i) # t[1]
1118 mov $A0[1],-16($tptr,$i) # t[2]
1136 mov $A0[0],-8($tptr,$j) # t[3]
1161 mov $A0[1],($tptr,$j) # t[4]
1177 mov $A0[0],8($tptr,$j) # t[5]
1194 mov $A0[1],16($tptr,$j) # t[6]
1206 mov $A0[0],-8($tptr,$j) # t[7]
[all …]
Dx86_64-mont.pl731 my ($i,$j,$tptr)=("%rbp","%rcx",$rptr);
922 my ($aptr, $bptr, $nptr, $tptr, $mi, $bi, $zero, $num)=
928 lea 64+32(%rsp),$tptr
957 mov %r10,-4*8($tptr)
962 mov %r11,-3*8($tptr)
966 mov %r12,-2*8($tptr)
985 lea 4*8($tptr),$tptr
995 mov %r10,-5*8($tptr)
997 mov %r11,-4*8($tptr)
1001 mov %r12,-3*8($tptr)
[all …]

12