Home
last modified time | relevance | path

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

12

/external/tcpdump/
Dprint-lldp.c648 const u_char *tptr, u_int tlv_len) in lldp_private_8021_print() argument
658 subtype = *(tptr+3); in lldp_private_8021_print()
670 EXTRACT_16BITS(tptr + 4))); in lldp_private_8021_print()
677 EXTRACT_16BITS(tptr+5), in lldp_private_8021_print()
678 bittok2str(lldp_8021_port_protocol_id_values, "none", *(tptr+4)), in lldp_private_8021_print()
679 *(tptr + 4))); in lldp_private_8021_print()
685 ND_PRINT((ndo, "\n\t vlan id (VID): %u", EXTRACT_16BITS(tptr + 4))); in lldp_private_8021_print()
689 sublen = *(tptr+6); in lldp_private_8021_print()
694 safeputs(ndo, tptr + 7, sublen); in lldp_private_8021_print()
700 sublen = *(tptr+4); in lldp_private_8021_print()
[all …]
Dprint-isoclns.c899 const uint8_t *tptr; in clnp_print() local
915 tptr = pptr; in clnp_print()
941 tok2str(clnp_option_sr_rr_values,"Unknown",*tptr), in clnp_print()
943 nsap_offset=*(tptr+1); in clnp_print()
953 tptr+=nsap_offset; in clnp_print()
956 source_address_length=*tptr; in clnp_print()
962 source_address=(tptr+1); in clnp_print()
977 ND_PRINT((ndo, "0x%1x", *tptr&0x0f)); in clnp_print()
986 … tok2str(clnp_option_scope_values, "Reserved", *tptr&CLNP_OPTION_SCOPE_MASK))); in clnp_print()
988 if ((*tptr&CLNP_OPTION_SCOPE_MASK) == CLNP_OPTION_SCOPE_GLOBAL) in clnp_print()
[all …]
Dprint-vtp.c124 const u_char *tptr; in vtp_print() local
130 tptr = pptr; in vtp_print()
132 ND_TCHECK2(*tptr, VTP_HEADER_LEN); in vtp_print()
134 type = *(tptr+1); in vtp_print()
136 *tptr, in vtp_print()
148 mgmtd_len = *(tptr + 3); in vtp_print()
153 fn_printzp(ndo, tptr + 4, mgmtd_len, NULL); in vtp_print()
156 *(tptr+2))); in vtp_print()
158 tptr += VTP_HEADER_LEN; in vtp_print()
184 ND_TCHECK2(*tptr, 8); in vtp_print()
[all …]
Dprint-ldp.c233 ND_TCHECK2(*tptr, minlen); if (tlv_tlen < minlen) goto badtlv;
237 register const u_char *tptr, in ldp_tlv_print() argument
252 ldp_tlv_header = (const struct ldp_tlv_header *)tptr; in ldp_tlv_print()
272 tptr+=sizeof(struct ldp_tlv_header); in ldp_tlv_print()
279 EXTRACT_16BITS(tptr), in ldp_tlv_print()
280 (EXTRACT_16BITS(tptr+2)&0x8000) ? "Targeted" : "Link", in ldp_tlv_print()
281 (EXTRACT_16BITS(tptr+2)&0x4000) ? ", Request for targeted Hellos" : "")); in ldp_tlv_print()
286 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()
294 ND_PRINT((ndo, "\n\t Sequence Number: %u", EXTRACT_32BITS(tptr))); in ldp_tlv_print()
[all …]
Dprint-cdp.c98 const u_char *tptr; in cdp_print() local
105 tptr = pptr; /* temporary pointer */ in cdp_print()
107 ND_TCHECK2(*tptr, CDP_HEADER_LEN); in cdp_print()
108 ND_PRINT((ndo, "CDPv%u, ttl: %us", *(tptr + CDP_HEADER_VERSION_OFFSET), in cdp_print()
109 *(tptr + CDP_HEADER_TTL_OFFSET))); in cdp_print()
111 …ND_PRINT((ndo, ", checksum: 0x%04x (unverified), length %u", EXTRACT_16BITS(tptr+CDP_HEADER_CHECKS… in cdp_print()
112 tptr += CDP_HEADER_LEN; in cdp_print()
114 while (tptr < (pptr+length)) { in cdp_print()
115 ND_TCHECK2(*tptr, CDP_TLV_HEADER_LEN); /* read out Type and Length */ in cdp_print()
116 type = EXTRACT_16BITS(tptr+CDP_TLV_TYPE_OFFSET); in cdp_print()
[all …]
Dprint-bgp.c1296 const u_char *tptr = pptr; in bgp_attr_get_as_size() local
1311 while (tptr < pptr + len) { in bgp_attr_get_as_size()
1312 ND_TCHECK(tptr[0]); in bgp_attr_get_as_size()
1317 if (tptr[0] < BGP_AS_SEG_TYPE_MIN || tptr[0] > BGP_AS_SEG_TYPE_MAX) { in bgp_attr_get_as_size()
1320 ND_TCHECK(tptr[1]); in bgp_attr_get_as_size()
1321 tptr += 2 + tptr[1] * 2; in bgp_attr_get_as_size()
1328 if (tptr == pptr + len) { in bgp_attr_get_as_size()
1356 const u_char *tptr; in bgp_attr_print() local
1360 tptr = pptr; in bgp_attr_print()
1368 ND_TCHECK(*tptr); in bgp_attr_print()
[all …]
Dprint-mpcp.c135 const u_char *tptr; in mpcp_print() local
140 tptr=pptr; in mpcp_print()
143 ND_TCHECK2(*tptr, sizeof(const struct mpcp_common_header_t)); in mpcp_print()
154 tptr += sizeof(const struct mpcp_common_header_t); in mpcp_print()
161 ND_TCHECK2(*tptr, MPCP_GRANT_NUMBER_LEN); in mpcp_print()
162 grant_numbers = *tptr & MPCP_GRANT_NUMBER_MASK; in mpcp_print()
167 *tptr &~ MPCP_GRANT_NUMBER_MASK))); in mpcp_print()
168 tptr++; in mpcp_print()
171 ND_TCHECK2(*tptr, sizeof(const struct mpcp_grant_t)); in mpcp_print()
172 mpcp.grant = (const struct mpcp_grant_t *)tptr; in mpcp_print()
[all …]
Dprint-udld.c100 const u_char *tptr; in udld_print() local
105 tptr = pptr; in udld_print()
107 ND_TCHECK2(*tptr, UDLD_HEADER_LEN); in udld_print()
109 code = UDLD_EXTRACT_OPCODE(*tptr); in udld_print()
112 UDLD_EXTRACT_VERSION(*tptr), in udld_print()
115 bittok2str(udld_flags_values, "none", *(tptr+1)), in udld_print()
116 *(tptr+1), in udld_print()
126 ND_PRINT((ndo, "\n\tChecksum 0x%04x (unverified)", EXTRACT_16BITS(tptr+2))); in udld_print()
128 tptr += UDLD_HEADER_LEN; in udld_print()
130 while (tptr < (pptr+length)) { in udld_print()
[all …]
Dprint-eap.c155 const u_char *tptr; in eap_print() local
159 tptr = cp; in eap_print()
180 tptr += sizeof(const struct eap_frame_t); in eap_print()
185 type = *(tptr); in eap_print()
186 len = EXTRACT_16BITS(tptr+2); in eap_print()
190 *(tptr+1), in eap_print()
193 ND_TCHECK2(*tptr, len); in eap_print()
196 subtype = *(tptr+4); in eap_print()
198 tok2str(eap_type_values, "unknown", *(tptr+4)), in eap_print()
199 *(tptr + 4))); in eap_print()
[all …]
Dprint-dtp.c50 const u_char *tptr; in dtp_print() local
55 tptr = pptr; in dtp_print()
57 ND_TCHECK2(*tptr, DTP_HEADER_LEN); in dtp_print()
60 (*tptr), in dtp_print()
70 tptr += DTP_HEADER_LEN; in dtp_print()
72 while (tptr < (pptr+length)) { in dtp_print()
74 ND_TCHECK2(*tptr, 4); in dtp_print()
75 type = EXTRACT_16BITS(tptr); in dtp_print()
76 len = EXTRACT_16BITS(tptr+2); in dtp_print()
87 ND_TCHECK2(*tptr, len); in dtp_print()
[all …]
Dprint-cfm.c220 register const u_char *tptr) in cfm_network_addr_print() argument
230 network_addr_type = *tptr; in cfm_network_addr_print()
240 ND_PRINT((ndo, ", %s", ipaddr_string(ndo, tptr + 1))); in cfm_network_addr_print()
244 ND_PRINT((ndo, ", %s", ip6addr_string(ndo, tptr + 1))); in cfm_network_addr_print()
261 const uint8_t *tptr, *tlv_ptr; in cfm_print() local
278 tptr=pptr; in cfm_print()
308 tptr += sizeof(const struct cfm_common_header_t); in cfm_print()
321 msg_ptr.cfm_ccm = (const struct cfm_ccm_t *)tptr; in cfm_print()
448 msg_ptr.cfm_ltm = (const struct cfm_ltm_t *)tptr; in cfm_print()
471 msg_ptr.cfm_ltr = (const struct cfm_ltr_t *)tptr; in cfm_print()
[all …]
Dprint-rpki-rtr.c175 rpki_rtr_pdu_print (netdissect_options *ndo, const u_char *tptr, u_int indent) in rpki_rtr_pdu_print() argument
181 pdu_header = (const rpki_rtr_pdu *)tptr; in rpki_rtr_pdu_print()
184 ND_TCHECK2(*tptr, pdu_len); in rpki_rtr_pdu_print()
229 pdu = (const rpki_rtr_pdu_ipv4_prefix *)tptr; in rpki_rtr_pdu_print()
242 pdu = (const rpki_rtr_pdu_ipv6_prefix *)tptr; in rpki_rtr_pdu_print()
256 pdu = (const rpki_rtr_pdu_error_report *)tptr; in rpki_rtr_pdu_print()
258 ND_TCHECK2(*tptr, encapsulated_pdu_length); in rpki_rtr_pdu_print()
267 tptr += sizeof(*pdu); in rpki_rtr_pdu_print()
276 if (rpki_rtr_pdu_print(ndo, tptr, indent+2)) in rpki_rtr_pdu_print()
280 tptr += encapsulated_pdu_length; in rpki_rtr_pdu_print()
[all …]
Dprint-ospf.c185 const uint8_t *tptr, u_int ls_length) in ospf_print_grace_lsa() argument
191 ND_TCHECK2(*tptr, 4); in ospf_print_grace_lsa()
196 tlv_type = EXTRACT_16BITS(tptr); in ospf_print_grace_lsa()
197 tlv_length = EXTRACT_16BITS(tptr+2); in ospf_print_grace_lsa()
198 tptr+=4; in ospf_print_grace_lsa()
217 ND_TCHECK2(*tptr, tlv_length); in ospf_print_grace_lsa()
225 ND_PRINT((ndo, "%us", EXTRACT_32BITS(tptr))); in ospf_print_grace_lsa()
234 tok2str(lsa_opaque_grace_tlv_reason_values, "Unknown", *tptr), in ospf_print_grace_lsa()
235 *tptr)); in ospf_print_grace_lsa()
243 ND_PRINT((ndo, "%s", ipaddr_string(ndo, tptr))); in ospf_print_grace_lsa()
[all …]
Dprint-vqp.c105 const u_char *tptr; in vqp_print() local
111 tptr=pptr; in vqp_print()
148 tptr+=sizeof(const struct vqp_common_header_t); in vqp_print()
153 vqp_obj_tlv = (const struct vqp_obj_tlv_t *)tptr; in vqp_print()
156 tptr+=sizeof(struct vqp_obj_tlv_t); in vqp_print()
169 ND_TCHECK2(*tptr, vqp_obj_len); in vqp_print()
173 ND_PRINT((ndo, "%s (0x%08x)", ipaddr_string(ndo, tptr), EXTRACT_32BITS(tptr))); in vqp_print()
180 safeputs(ndo, tptr, vqp_obj_len); in vqp_print()
185 ND_PRINT((ndo, "%s", etheraddr_string(ndo, tptr))); in vqp_print()
189 print_unknown_data(ndo,tptr, "\n\t ", vqp_obj_len); in vqp_print()
[all …]
Dprint-lwapp.c170 const u_char *tptr; in lwapp_control_print() local
174 tptr=pptr; in lwapp_control_print()
178 ND_TCHECK2(*tptr, 6); in lwapp_control_print()
216 ND_PRINT((ndo, "\n\tAP identity: %s", etheraddr_string(ndo, tptr))); in lwapp_control_print()
217 tptr+=sizeof(const struct lwapp_transport_header)+6; in lwapp_control_print()
219 tptr+=sizeof(const struct lwapp_transport_header); in lwapp_control_print()
225 ND_TCHECK2(*tptr, sizeof(struct lwapp_control_header)); in lwapp_control_print()
227 lwapp_control_header = (const struct lwapp_control_header *)tptr; in lwapp_control_print()
239 ND_TCHECK2(*tptr, msg_tlen); in lwapp_control_print()
278 tptr += sizeof(struct lwapp_control_header) + msg_tlen; in lwapp_control_print()
[all …]
Dprint-slow.c350 register const u_char *tptr, register u_int tlen, in slow_marker_lacp_print() argument
369 ND_TCHECK2(*tptr, sizeof(struct tlv_header_t)); in slow_marker_lacp_print()
370 tlv_header = (const struct tlv_header_t *)tptr; in slow_marker_lacp_print()
399 ND_TCHECK2(*tptr, tlv_len); in slow_marker_lacp_print()
401 tlv_tptr=tptr+sizeof(struct tlv_header_t); in slow_marker_lacp_print()
472 print_unknown_data(ndo, tptr+sizeof(struct tlv_header_t), "\n\t ", in slow_marker_lacp_print()
476 tptr+=tlv_len; in slow_marker_lacp_print()
491 register const u_char *tptr, register u_int tlen) in slow_oam_print() argument
518 ptr.slow_oam_common_header = (const struct slow_oam_common_header_t *)tptr; in slow_oam_print()
522 tptr += sizeof(struct slow_oam_common_header_t); in slow_oam_print()
[all …]
Dprint-sflow.c493 const u_char *tptr; in sflow_print_counter_records() local
501 tptr = pointer; in sflow_print_counter_records()
508 sflow_counter_record = (const struct sflow_counter_record_t *)tptr; in sflow_print_counter_records()
521 tptr += sizeof(struct sflow_counter_record_t); in sflow_print_counter_records()
529 if (print_sflow_counter_generic(ndo, tptr, tlen)) in sflow_print_counter_records()
533 if (print_sflow_counter_ethernet(ndo, tptr, tlen)) in sflow_print_counter_records()
537 if (print_sflow_counter_token_ring(ndo, tptr,tlen)) in sflow_print_counter_records()
541 if (print_sflow_counter_basevg(ndo, tptr, tlen)) in sflow_print_counter_records()
545 if (print_sflow_counter_vlan(ndo, tptr, tlen)) in sflow_print_counter_records()
549 if (print_sflow_counter_processor(ndo, tptr, tlen)) in sflow_print_counter_records()
[all …]
Dprint-rsvp.c492 const u_char *tptr, u_short obj_tlen) in rsvp_intserv_print() argument
502 parameter_id = *(tptr); in rsvp_intserv_print()
503 ND_TCHECK2(*(tptr + 2), 2); in rsvp_intserv_print()
504 parameter_length = EXTRACT_16BITS(tptr+2)<<2; /* convert wordcount to bytecount */ in rsvp_intserv_print()
510 *(tptr + 1))); in rsvp_intserv_print()
525 ND_TCHECK2(*(tptr + 4), 4); in rsvp_intserv_print()
526 ND_PRINT((ndo, "\n\t\tIS hop count: %u", EXTRACT_32BITS(tptr + 4))); in rsvp_intserv_print()
539 ND_TCHECK2(*(tptr + 4), 4); in rsvp_intserv_print()
540 bw.i = EXTRACT_32BITS(tptr+4); in rsvp_intserv_print()
554 ND_TCHECK2(*(tptr + 4), 4); in rsvp_intserv_print()
[all …]
Dprint-ospf6.c410 const uint8_t *tptr, u_int lsa_length) in ospf6_print_lsaprefix() argument
412 const struct lsa6_prefix *lsapp = (const struct lsa6_prefix *)tptr; in ospf6_print_lsaprefix()
471 const uint8_t *tptr; in ospf6_print_lsa() local
487 tptr = (const uint8_t *)lsap+sizeof(struct lsa6_hdr); in ospf6_print_lsa()
573 tptr = (const uint8_t *)lsap->lsa_un.un_inter_ap.inter_ap_prefix; in ospf6_print_lsa()
575 bytelen = ospf6_print_lsaprefix(ndo, tptr, lsa_length); in ospf6_print_lsa()
579 tptr += bytelen; in ospf6_print_lsa()
595 tptr = (const uint8_t *)lsap->lsa_un.un_asla.asla_prefix; in ospf6_print_lsa()
596 lsapp = (const struct lsa6_prefix *)tptr; in ospf6_print_lsa()
597 bytelen = ospf6_print_lsaprefix(ndo, tptr, lsa_length); in ospf6_print_lsa()
[all …]
Dprint-ppp.c421 const u_char *tptr; in handle_ctrl_proto() local
423 tptr=pptr; in handle_ctrl_proto()
430 ND_TCHECK2(*tptr, 2); in handle_ctrl_proto()
432 code = *tptr++; in handle_ctrl_proto()
437 *tptr++, /* ID */ in handle_ctrl_proto()
446 ND_TCHECK2(*tptr, 2); in handle_ctrl_proto()
447 len = EXTRACT_16BITS(tptr); in handle_ctrl_proto()
448 tptr += 2; in handle_ctrl_proto()
460 ND_TCHECK2(*tptr, 4); in handle_ctrl_proto()
461 ND_PRINT((ndo, "\n\t Magic-Num 0x%08x", EXTRACT_32BITS(tptr))); in handle_ctrl_proto()
[all …]
/external/boringssl/src/crypto/fipsmodule/bn/asm/
Dx86_64-mont5.pl1072 my ($i,$j,$tptr)=("%rbp","%rcx",$rptr);
1304 lea 48+8(%rsp,$num,2),$tptr # end of tp[] buffer, &tp[2*$num]
1306 lea -32($tptr,$i),$tptr # end of tp[] window, &tp[2*$num-"$i"]
1314 mov $A0[0],-24($tptr,$i) # t[1]
1320 mov $A0[1],-16($tptr,$i) # t[2]
1338 mov $A0[0],-8($tptr,$j) # t[3]
1363 mov $A0[1],($tptr,$j) # t[4]
1379 mov $A0[0],8($tptr,$j) # t[5]
1396 mov $A0[1],16($tptr,$j) # t[6]
1408 mov $A0[0],-8($tptr,$j) # t[7]
[all …]
Dx86_64-mont.pl811 my ($i,$j,$tptr)=("%rbp","%rcx",$rptr);
1092 my ($aptr, $bptr, $nptr, $tptr, $mi, $bi, $zero, $num)=
1098 lea 64+32(%rsp),$tptr
1127 mov %r10,-4*8($tptr)
1132 mov %r11,-3*8($tptr)
1136 mov %r12,-2*8($tptr)
1155 lea 4*8($tptr),$tptr
1165 mov %r10,-5*8($tptr)
1167 mov %r11,-4*8($tptr)
1171 mov %r12,-3*8($tptr)
[all …]
/external/libcups/cups/
Dsnprintf.c42 *tptr, /* Pointer into temporary format */ in _cups_vsnprintf() local
62 tptr = tformat; in _cups_vsnprintf()
63 *tptr++ = *format++; in _cups_vsnprintf()
74 *tptr++ = *format; in _cups_vsnprintf()
89 snprintf(tptr, sizeof(tformat) - (tptr - tformat), "%d", width); in _cups_vsnprintf()
90 tptr += strlen(tptr); in _cups_vsnprintf()
98 if (tptr < (tformat + sizeof(tformat) - 1)) in _cups_vsnprintf()
99 *tptr++ = *format; in _cups_vsnprintf()
107 if (tptr < (tformat + sizeof(tformat) - 1)) in _cups_vsnprintf()
108 *tptr++ = *format; in _cups_vsnprintf()
[all …]
Ddebug.c343 *tptr, /* Pointer into temporary format */ in _cups_safe_vsnprintf() local
364 tptr = tformat; in _cups_safe_vsnprintf()
365 *tptr++ = *format++; in _cups_safe_vsnprintf()
376 *tptr++ = *format++; in _cups_safe_vsnprintf()
387 snprintf(tptr, sizeof(tformat) - (size_t)(tptr - tformat), "%d", width); in _cups_safe_vsnprintf()
388 tptr += strlen(tptr); in _cups_safe_vsnprintf()
396 if (tptr < (tformat + sizeof(tformat) - 1)) in _cups_safe_vsnprintf()
397 *tptr++ = *format; in _cups_safe_vsnprintf()
405 if (tptr < (tformat + sizeof(tformat) - 1)) in _cups_safe_vsnprintf()
406 *tptr++ = *format; in _cups_safe_vsnprintf()
[all …]
/external/syslinux/core/fs/
Ddiskio_bios.c49 char *tptr; in chs_rdwr_sectors() local
78 tptr = ptr; in chs_rdwr_sectors()
81 tptr = core_xfer_buf; in chs_rdwr_sectors()
82 freeseg = (0x10000 - ((size_t)tptr & 0xffff)) >> sector_shift; in chs_rdwr_sectors()
97 if (tptr != ptr && is_write) in chs_rdwr_sectors()
98 memcpy(tptr, ptr, bytes); in chs_rdwr_sectors()
104 ireg.ebx.w[0] = OFFS(tptr); in chs_rdwr_sectors()
105 ireg.es = SEG(tptr); in chs_rdwr_sectors()
148 if (tptr != ptr && !is_write) in chs_rdwr_sectors()
149 memcpy(ptr, tptr, bytes); in chs_rdwr_sectors()
[all …]

12