Home
last modified time | relevance | path

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

12

/external/tcpdump/
Dprint-lldp.c640 lldp_private_8021_print(const u_char *tptr, u_int tlv_len) in lldp_private_8021_print() argument
650 subtype = *(tptr+3); in lldp_private_8021_print()
662 EXTRACT_16BITS(tptr+4)); in lldp_private_8021_print()
669 EXTRACT_16BITS(tptr+5), in lldp_private_8021_print()
670 bittok2str(lldp_8021_port_protocol_id_values, "none", *(tptr+4)), in lldp_private_8021_print()
671 *(tptr+4)); in lldp_private_8021_print()
678 EXTRACT_16BITS(tptr+4)); in lldp_private_8021_print()
682 sublen = *(tptr+6); in lldp_private_8021_print()
687 safeputs((const char *)tptr+7, sublen); in lldp_private_8021_print()
693 sublen = *(tptr+4); in lldp_private_8021_print()
[all …]
Dprint-isoclns.c863 const u_int8_t *tptr; in clnp_print() local
879 tptr = pptr; in clnp_print()
893 tok2str(clnp_option_sr_rr_values,"Unknown",*tptr), in clnp_print()
895 nsap_offset=*(tptr+1); in clnp_print()
905 tptr+=nsap_offset; in clnp_print()
908 source_address_length=*tptr; in clnp_print()
914 source_address=(tptr+1); in clnp_print()
925 printf("0x%1x", *tptr&0x0f); in clnp_print()
930 … tok2str(clnp_option_scope_values,"Reserved",*tptr&CLNP_OPTION_SCOPE_MASK)); in clnp_print()
932 if ((*tptr&CLNP_OPTION_SCOPE_MASK) == CLNP_OPTION_SCOPE_GLOBAL) in clnp_print()
[all …]
Dprint-ldp.c242 TCHECK2(*tptr, minlen); if (tlv_tlen < minlen) goto badtlv;
245 ldp_tlv_print(register const u_char *tptr) { in ldp_tlv_print() argument
259 ldp_tlv_header = (const struct ldp_tlv_header *)tptr; in ldp_tlv_print()
274 tptr+=sizeof(struct ldp_tlv_header); in ldp_tlv_print()
281 EXTRACT_16BITS(tptr), in ldp_tlv_print()
282 (EXTRACT_16BITS(tptr+2)&0x8000) ? "Targeted" : "Link", in ldp_tlv_print()
283 (EXTRACT_16BITS(tptr+2)&0x4000) ? ", Request for targeted Hellos" : ""); in ldp_tlv_print()
288 printf("\n\t IPv4 Transport Address: %s", ipaddr_string(tptr)); in ldp_tlv_print()
293 printf("\n\t IPv6 Transport Address: %s", ip6addr_string(tptr)); in ldp_tlv_print()
298 printf("\n\t Sequence Number: %u", EXTRACT_32BITS(tptr)); in ldp_tlv_print()
[all …]
Dprint-vtp.c127 const u_char *tptr; in vtp_print() local
133 tptr = pptr; in vtp_print()
135 if (!TTEST2(*tptr, VTP_HEADER_LEN)) in vtp_print()
138 type = *(tptr+1); in vtp_print()
140 *tptr, in vtp_print()
142 *(tptr+1), in vtp_print()
152 (tptr+4), in vtp_print()
153 tok2str(vtp_header_values,"Unknown",*(tptr+1)), in vtp_print()
154 *(tptr+2)); in vtp_print()
156 tptr += VTP_HEADER_LEN; in vtp_print()
[all …]
Dprint-cdp.c92 const u_char *tptr; in cdp_print() local
99 tptr = pptr; /* temporary pointer */ in cdp_print()
101 if (!TTEST2(*tptr, CDP_HEADER_LEN)) in cdp_print()
103 printf("CDPv%u, ttl: %us", *tptr, *(tptr+1)); in cdp_print()
105 printf(", checksum: %u (unverified), length %u", EXTRACT_16BITS(tptr), length); in cdp_print()
106 tptr += CDP_HEADER_LEN; in cdp_print()
108 while (tptr < (pptr+length)) { in cdp_print()
110 if (!TTEST2(*tptr, 4)) /* read out Type and Length */ in cdp_print()
112 type = EXTRACT_16BITS(tptr); in cdp_print()
113 len = EXTRACT_16BITS(tptr+2); /* object length includes the 4 bytes header length */ in cdp_print()
[all …]
Dprint-bgp.c1242 const u_char *tptr = pptr; in bgp_attr_get_as_size() local
1257 while (tptr < pptr + len) { in bgp_attr_get_as_size()
1258 TCHECK(tptr[0]); in bgp_attr_get_as_size()
1263 if (tptr[0] < BGP_AS_SEG_TYPE_MIN || tptr[0] > BGP_AS_SEG_TYPE_MAX) { in bgp_attr_get_as_size()
1266 TCHECK(tptr[1]); in bgp_attr_get_as_size()
1267 tptr += 2 + tptr[1] * 2; in bgp_attr_get_as_size()
1274 if (tptr == pptr + len) { in bgp_attr_get_as_size()
1301 const u_char *tptr; in bgp_attr_print() local
1306 tptr = pptr; in bgp_attr_print()
1314 TCHECK(*tptr); in bgp_attr_print()
[all …]
Dprint-mpcp.c146 const u_char *tptr; in mpcp_print() local
151 tptr=pptr; in mpcp_print()
154 if (!TTEST2(*tptr, sizeof(const struct mpcp_common_header_t))) in mpcp_print()
166 tptr += sizeof(const struct mpcp_common_header_t); in mpcp_print()
173 if (!TTEST2(*tptr, MPCP_GRANT_NUMBER_LEN)) in mpcp_print()
175 grant_numbers = *tptr & MPCP_GRANT_NUMBER_MASK; in mpcp_print()
180 *tptr &~ MPCP_GRANT_NUMBER_MASK)); in mpcp_print()
181 tptr++; in mpcp_print()
184 if (!TTEST2(*tptr, sizeof(const struct mpcp_grant_t))) in mpcp_print()
186 mpcp.grant = (const struct mpcp_grant_t *)tptr; in mpcp_print()
[all …]
Dprint-eap.c167 const u_char *tptr; in eap_print() local
171 tptr = cp; in eap_print()
192 tptr += sizeof(const struct eap_frame_t); in eap_print()
197 type = *(tptr); in eap_print()
198 len = EXTRACT_16BITS(tptr+2); in eap_print()
202 *(tptr+1), in eap_print()
205 if (!TTEST2(*tptr, len)) in eap_print()
209 subtype = *(tptr+4); in eap_print()
211 tok2str(eap_type_values, "unknown", *(tptr+4)), in eap_print()
212 *(tptr+4)); in eap_print()
[all …]
Dprint-udld.c89 const u_char *tptr; in udld_print() local
94 tptr = pptr; in udld_print()
96 if (!TTEST2(*tptr, UDLD_HEADER_LEN)) in udld_print()
99 code = UDLD_EXTRACT_OPCODE(*tptr); in udld_print()
102 UDLD_EXTRACT_VERSION(*tptr), in udld_print()
105 bittok2str(udld_flags_values, "none", *(tptr+1)), in udld_print()
106 *(tptr+1), in udld_print()
116 printf("\n\tChecksum 0x%04x (unverified)", EXTRACT_16BITS(tptr+2)); in udld_print()
118 tptr += UDLD_HEADER_LEN; in udld_print()
120 while (tptr < (pptr+length)) { in udld_print()
[all …]
Dprint-cfm.c240 cfm_mgmt_addr_print(register const u_char *tptr) { in cfm_mgmt_addr_print() argument
250 mgmt_addr_type = *tptr; in cfm_mgmt_addr_print()
260 printf(", %s", ipaddr_string(tptr + 1)); in cfm_mgmt_addr_print()
265 printf(", %s", ip6addr_string(tptr + 1)); in cfm_mgmt_addr_print()
281 cfm_egress_id_string(register const u_char *tptr) { in cfm_egress_id_string() argument
286 EXTRACT_16BITS(tptr), in cfm_egress_id_string()
287 etheraddr_string(tptr+2)); in cfm_egress_id_string()
297 const u_int8_t *tptr, *tlv_ptr, *ma_name, *ma_nameformat, *ma_namelength; in cfm_print() local
308 tptr=pptr; in cfm_print()
336 tptr += sizeof(const struct cfm_common_header_t); in cfm_print()
[all …]
Dprint-dtp.c52 const u_char *tptr; in dtp_print() local
57 tptr = pptr; in dtp_print()
59 if (!TTEST2(*tptr, DTP_HEADER_LEN)) in dtp_print()
63 (*tptr), in dtp_print()
73 tptr += DTP_HEADER_LEN; in dtp_print()
75 while (tptr < (pptr+length)) { in dtp_print()
77 if (!TTEST2(*tptr, 4)) in dtp_print()
80 type = EXTRACT_16BITS(tptr); in dtp_print()
81 len = EXTRACT_16BITS(tptr+2); in dtp_print()
94 printf(", %s", tptr+4); in dtp_print()
[all …]
Dprint-ospf.c196 ospf_print_grace_lsa (const u_int8_t *tptr, u_int ls_length) { in ospf_print_grace_lsa() argument
202 TCHECK2(*tptr, 4); in ospf_print_grace_lsa()
207 tlv_type = EXTRACT_16BITS(tptr); in ospf_print_grace_lsa()
208 tlv_length = EXTRACT_16BITS(tptr+2); in ospf_print_grace_lsa()
209 tptr+=4; in ospf_print_grace_lsa()
228 TCHECK2(*tptr, tlv_length); in ospf_print_grace_lsa()
236 printf("%us",EXTRACT_32BITS(tptr)); in ospf_print_grace_lsa()
245 tok2str(lsa_opaque_grace_tlv_reason_values, "Unknown", *tptr), in ospf_print_grace_lsa()
246 *tptr); in ospf_print_grace_lsa()
254 printf("%s", ipaddr_string(tptr)); in ospf_print_grace_lsa()
[all …]
Dprint-rpki-rtr.c178 rpki_rtr_pdu_print (const u_char *tptr, u_int indent) in rpki_rtr_pdu_print() argument
184 pdu_header = (rpki_rtr_pdu *)tptr; in rpki_rtr_pdu_print()
231 pdu = (rpki_rtr_pdu_ipv4_prefix *)tptr; in rpki_rtr_pdu_print()
245 pdu = (rpki_rtr_pdu_ipv6_prefix *)tptr; in rpki_rtr_pdu_print()
261 pdu = (rpki_rtr_pdu_error_report *)tptr; in rpki_rtr_pdu_print()
271 tptr += sizeof(*pdu); in rpki_rtr_pdu_print()
280 rpki_rtr_pdu_print(tptr, indent+2); in rpki_rtr_pdu_print()
283 tptr += encapsulated_pdu_length; in rpki_rtr_pdu_print()
291 text_length = EXTRACT_32BITS(tptr); in rpki_rtr_pdu_print()
292 tptr += 4; in rpki_rtr_pdu_print()
[all …]
Dprint-vqp.c114 const u_char *tptr; in vqp_print() local
120 tptr=pptr; in vqp_print()
157 tptr+=sizeof(const struct vqp_common_header_t); in vqp_print()
162 vqp_obj_tlv = (const struct vqp_obj_tlv_t *)tptr; in vqp_print()
165 tptr+=sizeof(struct vqp_obj_tlv_t); in vqp_print()
178 if (!TTEST2(*tptr, vqp_obj_len)) in vqp_print()
183 printf("%s (0x%08x)", ipaddr_string(tptr), EXTRACT_32BITS(tptr)); in vqp_print()
190 safeputs((const char *)tptr, vqp_obj_len); in vqp_print()
195 printf("%s", etheraddr_string(tptr)); in vqp_print()
199 print_unknown_data(tptr, "\n\t ", vqp_obj_len); in vqp_print()
[all …]
Dprint-lwapp.c176 const u_char *tptr; in lwapp_control_print() local
180 tptr=pptr; in lwapp_control_print()
184 if (!TTEST2(*tptr, 6)) in lwapp_control_print()
224 etheraddr_string(tptr)); in lwapp_control_print()
225 tptr+=sizeof(const struct lwapp_transport_header)+6; in lwapp_control_print()
227 tptr+=sizeof(const struct lwapp_transport_header); in lwapp_control_print()
233 if (!TTEST2(*tptr, sizeof(struct lwapp_control_header))) in lwapp_control_print()
236 lwapp_control_header = (const struct lwapp_control_header *)tptr; in lwapp_control_print()
248 if (!TTEST2(*tptr, msg_tlen)) in lwapp_control_print()
288 tptr += sizeof(struct lwapp_control_header) + msg_tlen; in lwapp_control_print()
[all …]
Dprint-ospf6.c159 ospf6_print_lsaprefix(const u_int8_t *tptr, u_int lsa_length) in ospf6_print_lsaprefix() argument
161 const struct lsa6_prefix *lsapp = (struct lsa6_prefix *)tptr; in ospf6_print_lsaprefix()
219 const u_int8_t *tptr; in ospf6_print_lsa() local
235 tptr = (u_int8_t *)lsap+sizeof(struct lsa6_hdr); in ospf6_print_lsa()
321 tptr = (u_int8_t *)lsap->lsa_un.un_inter_ap.inter_ap_prefix; in ospf6_print_lsa()
323 bytelen = ospf6_print_lsaprefix(tptr, lsa_length); in ospf6_print_lsa()
327 tptr += bytelen; in ospf6_print_lsa()
343 tptr = (u_int8_t *)lsap->lsa_un.un_asla.asla_prefix; in ospf6_print_lsa()
344 lsapp = (struct lsa6_prefix *)tptr; in ospf6_print_lsa()
345 bytelen = ospf6_print_lsaprefix(tptr, lsa_length); in ospf6_print_lsa()
[all …]
Dprint-sflow.c474 const u_char *tptr; in sflow_print_counter_records() local
482 tptr = pointer; in sflow_print_counter_records()
489 sflow_counter_record = (const struct sflow_counter_record_t *)tptr; in sflow_print_counter_records()
501 tptr += sizeof(struct sflow_counter_record_t); in sflow_print_counter_records()
509 if (print_sflow_counter_generic(tptr,tlen)) in sflow_print_counter_records()
513 if (print_sflow_counter_ethernet(tptr,tlen)) in sflow_print_counter_records()
517 if (print_sflow_counter_token_ring(tptr,tlen)) in sflow_print_counter_records()
521 if (print_sflow_counter_basevg(tptr,tlen)) in sflow_print_counter_records()
525 if (print_sflow_counter_vlan(tptr,tlen)) in sflow_print_counter_records()
529 if (print_sflow_counter_processor(tptr,tlen)) in sflow_print_counter_records()
[all …]
Dprint-slow.c340 void slow_marker_lacp_print(register const u_char *tptr, register u_int tlen) { in slow_marker_lacp_print() argument
355 TCHECK2(*tptr, sizeof(struct tlv_header_t)); in slow_marker_lacp_print()
356 tlv_header = (const struct tlv_header_t *)tptr; in slow_marker_lacp_print()
371 print_unknown_data(tptr+sizeof(struct tlv_header_t),"\n\t ",tlen); in slow_marker_lacp_print()
375 tlv_tptr=tptr+sizeof(struct tlv_header_t); in slow_marker_lacp_print()
379 TCHECK2(*tptr, tlv_len); in slow_marker_lacp_print()
444 print_unknown_data(tptr+sizeof(struct tlv_header_t),"\n\t ", in slow_marker_lacp_print()
448 tptr+=tlv_len; in slow_marker_lacp_print()
456 void slow_oam_print(register const u_char *tptr, register u_int tlen) { in slow_oam_print() argument
483 ptr.slow_oam_common_header = (struct slow_oam_common_header_t *)tptr; in slow_oam_print()
[all …]
Dprint-ppp.c430 const u_char *tptr; in handle_ctrl_proto() local
432 tptr=pptr; in handle_ctrl_proto()
439 TCHECK2(*tptr, 2); in handle_ctrl_proto()
441 code = *tptr++; in handle_ctrl_proto()
446 *tptr++, /* ID */ in handle_ctrl_proto()
455 TCHECK2(*tptr, 2); in handle_ctrl_proto()
456 len = EXTRACT_16BITS(tptr); in handle_ctrl_proto()
457 tptr += 2; in handle_ctrl_proto()
469 TCHECK2(*tptr, 4); in handle_ctrl_proto()
470 printf("\n\t Magic-Num 0x%08x", EXTRACT_32BITS(tptr)); in handle_ctrl_proto()
[all …]
Dprint-rsvp.c498 rsvp_intserv_print(const u_char *tptr, u_short obj_tlen) { in rsvp_intserv_print() argument
508 parameter_id = *(tptr); in rsvp_intserv_print()
509 parameter_length = EXTRACT_16BITS(tptr+2)<<2; /* convert wordcount to bytecount */ in rsvp_intserv_print()
515 *(tptr+1)); in rsvp_intserv_print()
530 printf("\n\t\tIS hop count: %u", EXTRACT_32BITS(tptr+4)); in rsvp_intserv_print()
542 bw.i = EXTRACT_32BITS(tptr+4); in rsvp_intserv_print()
557 if (EXTRACT_32BITS(tptr+4) == 0xffffffff) in rsvp_intserv_print()
560 printf("%u", EXTRACT_32BITS(tptr+4)); in rsvp_intserv_print()
574 printf("\n\t\tComposed MTU: %u bytes", EXTRACT_32BITS(tptr+4)); in rsvp_intserv_print()
594 bw.i = EXTRACT_32BITS(tptr+4); in rsvp_intserv_print()
[all …]
Dprint-lspping.c474 const u_char *tptr,*tlv_tptr,*subtlv_tptr; in lspping_print() local
500 tptr=pptr; in lspping_print()
573 tptr+=sizeof(const struct lspping_common_header); in lspping_print()
579 if (!TTEST2(*tptr, sizeof(struct lspping_tlv_header))) in lspping_print()
582 lspping_tlv_header = (const struct lspping_tlv_header *)tptr; in lspping_print()
602 tlv_tptr=tptr+sizeof(struct lspping_tlv_header); in lspping_print()
606 if (!TTEST2(*tptr, lspping_tlv_len)) in lspping_print()
615 if (!TTEST2(*tptr, sizeof(struct lspping_tlv_header))) in lspping_print()
847 tptr += sizeof(struct lspping_tlv_header); in lspping_print()
848 if (!TTEST2(*tptr, LSPPING_TLV_BFD_DISCRIMINATOR_LEN)) in lspping_print()
[all …]
Dprint-fr.c404 const u_int8_t *tptr; in mfr_print() local
427 tptr = p + 3; in mfr_print()
435 TCHECK2(*tptr, sizeof(struct ie_tlv_header_t)); in mfr_print()
436 ie_type=tptr[0]; in mfr_print()
437 ie_len=tptr[1]; in mfr_print()
448 TCHECK2(*tptr,ie_len); in mfr_print()
449 tptr+=sizeof(struct ie_tlv_header_t); in mfr_print()
457 printf("0x%08x",EXTRACT_32BITS(tptr)); in mfr_print()
463 if (*(tptr+idx) != 0) /* don't print null termination */ in mfr_print()
464 safeputchar(*(tptr+idx)); in mfr_print()
[all …]
Dprint-olsr.c267 const u_char *tptr, *msg_data; in olsr_print() local
269 tptr = pptr; in olsr_print()
275 if (!TTEST2(*tptr, sizeof(struct olsr_common))) { in olsr_print()
279 ptr.common = (struct olsr_common *)tptr; in olsr_print()
287 tptr += sizeof(struct olsr_common); in olsr_print()
296 while (tptr < (pptr+length)) { in olsr_print()
304 if (!TTEST2(*tptr, sizeof(struct olsr_msg4))) in olsr_print()
310 msgptr.v6 = (struct olsr_msg6 *) tptr; in olsr_print()
333 msg_data = tptr + sizeof(struct olsr_msg6); in olsr_print()
338 msgptr.v4 = (struct olsr_msg4 *) tptr; in olsr_print()
[all …]
/external/boringssl/src/crypto/bn/asm/
Dx86_64-mont5.pl914 my ($i,$j,$tptr)=("%rbp","%rcx",$rptr);
1110 lea 48+8(%rsp,$num,2),$tptr # end of tp[] buffer, &tp[2*$num]
1112 lea -32($tptr,$i),$tptr # end of tp[] window, &tp[2*$num-"$i"]
1120 mov $A0[0],-24($tptr,$i) # t[1]
1126 mov $A0[1],-16($tptr,$i) # t[2]
1144 mov $A0[0],-8($tptr,$j) # t[3]
1169 mov $A0[1],($tptr,$j) # t[4]
1185 mov $A0[0],8($tptr,$j) # t[5]
1202 mov $A0[1],16($tptr,$j) # t[6]
1214 mov $A0[0],-8($tptr,$j) # t[7]
[all …]
Dx86_64-mont.pl739 my ($i,$j,$tptr)=("%rbp","%rcx",$rptr);
930 my ($aptr, $bptr, $nptr, $tptr, $mi, $bi, $zero, $num)=
936 lea 64+32(%rsp),$tptr
965 mov %r10,-4*8($tptr)
970 mov %r11,-3*8($tptr)
974 mov %r12,-2*8($tptr)
993 lea 4*8($tptr),$tptr
1003 mov %r10,-5*8($tptr)
1005 mov %r11,-4*8($tptr)
1009 mov %r12,-3*8($tptr)
[all …]

12