/freebsd-11-stable/contrib/tcpdump/ |
H A D | print-udld.c | 100 const u_char *tptr; local 105 tptr = pptr; 107 ND_TCHECK2(*tptr, UDLD_HEADER_LEN); 109 code = UDLD_EXTRACT_OPCODE(*tptr); 112 UDLD_EXTRACT_VERSION(*tptr), 115 bittok2str(udld_flags_values, "none", *(tptr+1)), 116 *(tptr+1), 126 ND_PRINT((ndo, "\n\tChecksum 0x%04x (unverified)", EXTRACT_16BITS(tptr+2))); 128 tptr += UDLD_HEADER_LEN; 130 while (tptr < (ppt [all...] |
H A D | print-dtp.c | 50 const u_char *tptr; local 55 tptr = pptr; 57 ND_TCHECK2(*tptr, DTP_HEADER_LEN); 60 (*tptr), 70 tptr += DTP_HEADER_LEN; 72 while (tptr < (pptr+length)) { 74 ND_TCHECK2(*tptr, 4); 75 type = EXTRACT_16BITS(tptr); 76 len = EXTRACT_16BITS(tptr+2); 87 ND_TCHECK2(*tptr, le [all...] |
H A D | print-eap.c | 155 const u_char *tptr; local 159 tptr = cp; 180 tptr += sizeof(const struct eap_frame_t); 185 ND_TCHECK_8BITS(tptr); 186 type = *(tptr); 187 ND_TCHECK_16BITS(tptr+2); 188 len = EXTRACT_16BITS(tptr+2); 192 *(tptr+1), 195 ND_TCHECK2(*tptr, len); 198 ND_TCHECK_8BITS(tptr [all...] |
H A D | print-vtp.c | 123 const u_char *tptr; local 129 tptr = pptr; 131 ND_TCHECK2(*tptr, VTP_HEADER_LEN); 133 type = *(tptr+1); 135 *tptr, 147 mgmtd_len = *(tptr + 3); 152 fn_printzp(ndo, tptr + 4, mgmtd_len, NULL); 155 *(tptr+2))); 157 tptr += VTP_HEADER_LEN; 183 ND_TCHECK2(*tptr, [all...] |
H A D | print-mpcp.c | 135 const u_char *tptr; local 140 tptr=pptr; 143 ND_TCHECK2(*tptr, sizeof(const struct mpcp_common_header_t)); 154 tptr += sizeof(const struct mpcp_common_header_t); 161 ND_TCHECK2(*tptr, MPCP_GRANT_NUMBER_LEN); 162 grant_numbers = *tptr & MPCP_GRANT_NUMBER_MASK; 167 *tptr &~ MPCP_GRANT_NUMBER_MASK))); 168 tptr++; 171 ND_TCHECK2(*tptr, sizeof(const struct mpcp_grant_t)); 172 mpcp.grant = (const struct mpcp_grant_t *)tptr; [all...] |
H A D | print-lldp.c | 649 const u_char *tptr, u_int tlv_len) 659 subtype = *(tptr+3); 671 EXTRACT_16BITS(tptr + 4))); 678 EXTRACT_16BITS(tptr+5), 679 bittok2str(lldp_8021_port_protocol_id_values, "none", *(tptr+4)), 680 *(tptr + 4))); 686 ND_PRINT((ndo, "\n\t vlan id (VID): %u", EXTRACT_16BITS(tptr + 4))); 690 sublen = *(tptr+6); 695 safeputs(ndo, tptr + 7, sublen); 701 sublen = *(tptr 648 lldp_private_8021_print(netdissect_options *ndo, const u_char *tptr, u_int tlv_len) argument 851 lldp_private_8023_print(netdissect_options *ndo, const u_char *tptr, u_int tlv_len) argument 919 lldp_extract_latlon(const u_char *tptr) argument 935 lldp_private_iana_print(netdissect_options *ndo, const u_char *tptr, u_int tlv_len) argument 967 lldp_private_tia_print(netdissect_options *ndo, const u_char *tptr, u_int tlv_len) argument 1157 const u_char *tptr, *mptr; local 1313 lldp_network_addr_print(netdissect_options *ndo, const u_char *tptr, u_int len) argument 1362 const u_char *tptr; local 1426 const u_char *tptr; local [all...] |
H A D | print-ldp.c | 235 ND_TCHECK2(*tptr, minlen); if (tlv_tlen < minlen) goto badtlv; 239 register const u_char *tptr, 254 ldp_tlv_header = (const struct ldp_tlv_header *)tptr; 274 tptr+=sizeof(struct ldp_tlv_header); 281 EXTRACT_16BITS(tptr), 282 (EXTRACT_16BITS(tptr+2)&0x8000) ? "Targeted" : "Link", 283 (EXTRACT_16BITS(tptr+2)&0x4000) ? ", Request for targeted Hellos" : "")); 288 ND_PRINT((ndo, "\n\t IPv4 Transport Address: %s", ipaddr_string(ndo, tptr))); 292 ND_PRINT((ndo, "\n\t IPv6 Transport Address: %s", ip6addr_string(ndo, tptr))); 296 ND_PRINT((ndo, "\n\t Sequence Number: %u", EXTRACT_32BITS(tptr))); 238 ldp_tlv_print(netdissect_options *ndo, register const u_char *tptr, u_short msg_tlen) argument 579 const u_char *tptr,*msg_tptr; local [all...] |
H A D | print-cdp.c | 98 const u_char *tptr; local 105 tptr = pptr; /* temporary pointer */ 107 ND_TCHECK2(*tptr, CDP_HEADER_LEN); 108 ND_PRINT((ndo, "CDPv%u, ttl: %us", *(tptr + CDP_HEADER_VERSION_OFFSET), 109 *(tptr + CDP_HEADER_TTL_OFFSET))); 111 ND_PRINT((ndo, ", checksum: 0x%04x (unverified), length %u", EXTRACT_16BITS(tptr+CDP_HEADER_CHECKSUM_OFFSET), length)); 112 tptr += CDP_HEADER_LEN; 114 while (tptr < (pptr+length)) { 115 ND_TCHECK2(*tptr, CDP_TLV_HEADER_LEN); /* read out Type and Length */ 116 type = EXTRACT_16BITS(tptr [all...] |
H A D | print-isoclns.c | 897 const uint8_t *tptr; local 913 tptr = pptr; 939 tok2str(clnp_option_sr_rr_values,"Unknown",*tptr), 941 nsap_offset=*(tptr+1); 951 tptr+=nsap_offset; 954 source_address_length=*tptr; 960 source_address=(tptr+1); 975 ND_PRINT((ndo, "0x%1x", *tptr&0x0f)); 984 tok2str(clnp_option_scope_values, "Reserved", *tptr&CLNP_OPTION_SCOPE_MASK))); 986 if ((*tptr 1303 const uint8_t *tptr; local 1397 isis_print_mt_port_cap_subtlv(netdissect_options *ndo, const uint8_t *tptr, int len) argument 1517 isis_print_mt_capability_subtlv(netdissect_options *ndo, const uint8_t *tptr, int len) argument 1761 isis_print_ip_reach_subtlv(netdissect_options *ndo, const uint8_t *tptr, int subt, int subl, const char *ident) argument 1811 isis_print_is_reach_subtlv(netdissect_options *ndo, const uint8_t *tptr, u_int subt, u_int subl, const char *ident) argument 1975 isis_print_ext_is_reach(netdissect_options *ndo, const uint8_t *tptr, const char *ident, int tlv_type) argument 2025 isis_print_mtid(netdissect_options *ndo, const uint8_t *tptr, const char *ident) argument 2052 isis_print_extd_ip_reach(netdissect_options *ndo, const uint8_t *tptr, const char *ident, uint16_t afi) argument 2190 const uint8_t *optr, *pptr, *tptr; local [all...] |
H A D | print-cfm.c | 220 register const u_char *tptr, const u_int length) 235 network_addr_type = *tptr; 250 ND_PRINT((ndo, ", %s", ipaddr_string(ndo, tptr + 1))); 259 ND_PRINT((ndo, ", %s", ip6addr_string(ndo, tptr + 1))); 276 const uint8_t *tptr, *tlv_ptr; local 293 tptr=pptr; 323 tptr += sizeof(const struct cfm_common_header_t); 336 msg_ptr.cfm_ccm = (const struct cfm_ccm_t *)tptr; 466 msg_ptr.cfm_ltm = (const struct cfm_ltm_t *)tptr; 489 msg_ptr.cfm_ltr = (const struct cfm_ltr_t *)tptr; 219 cfm_network_addr_print(netdissect_options *ndo, register const u_char *tptr, const u_int length) argument [all...] |
H A D | print-rpki-rtr.c | 178 rpki_rtr_pdu_print (netdissect_options *ndo, const u_char *tptr, const u_int len, argument 186 ND_TCHECK_8BITS(tptr); 187 if (*tptr != 0) { 194 ND_PRINT((ndo, "%sRPKI-RTRv%u (unknown)", indent_string(8), *tptr)); 201 ND_TCHECK2(*tptr, sizeof(rpki_rtr_pdu)); 202 pdu_header = (const rpki_rtr_pdu *)tptr; 229 ND_TCHECK2(*tptr, pdu_len); 266 ND_TCHECK2(*tptr, pdu_len); 267 pdu = (const rpki_rtr_pdu_ipv4_prefix *)tptr; 282 ND_TCHECK2(*tptr, pdu_le [all...] |
H A D | print-bgp.c | 1315 const u_char *tptr = pptr; local 1330 while (tptr < pptr + len) { 1331 ND_TCHECK(tptr[0]); 1336 if (tptr[0] < BGP_AS_SEG_TYPE_MIN || tptr[0] > BGP_AS_SEG_TYPE_MAX) { 1339 ND_TCHECK(tptr[1]); 1340 tptr += 2 + tptr[1] * 2; 1347 if (tptr == pptr + len) { 1375 const u_char *tptr; local 2648 const u_char *tptr; local [all...] |
H A D | print-vqp.c | 106 const u_char *tptr; local 112 tptr=pptr; 151 tptr+=sizeof(const struct vqp_common_header_t); 156 vqp_obj_tlv = (const struct vqp_obj_tlv_t *)tptr; 162 tptr+=sizeof(struct vqp_obj_tlv_t); 175 ND_TCHECK2(*tptr, vqp_obj_len); 183 ND_PRINT((ndo, "%s (0x%08x)", ipaddr_string(ndo, tptr), EXTRACT_32BITS(tptr))); 190 safeputs(ndo, tptr, vqp_obj_len); 197 ND_PRINT((ndo, "%s", etheraddr_string(ndo, tptr))); [all...] |
H A D | print-lwapp.c | 170 const u_char *tptr; local 174 tptr=pptr; 178 ND_TCHECK2(*tptr, 6); 216 ND_PRINT((ndo, "\n\tAP identity: %s", etheraddr_string(ndo, tptr))); 217 tptr+=sizeof(const struct lwapp_transport_header)+6; 219 tptr+=sizeof(const struct lwapp_transport_header); 225 ND_TCHECK2(*tptr, sizeof(struct lwapp_control_header)); 227 lwapp_control_header = (const struct lwapp_control_header *)tptr; 239 ND_TCHECK2(*tptr, msg_tlen); 278 tptr 292 const u_char *tptr; local [all...] |
H A D | print-ospf.c | 185 const uint8_t *tptr, u_int ls_length) 191 ND_TCHECK2(*tptr, 4); 196 tlv_type = EXTRACT_16BITS(tptr); 197 tlv_length = EXTRACT_16BITS(tptr+2); 198 tptr+=4; 217 ND_TCHECK2(*tptr, tlv_length); 225 ND_PRINT((ndo, "%us", EXTRACT_32BITS(tptr))); 234 tok2str(lsa_opaque_grace_tlv_reason_values, "Unknown", *tptr), 235 *tptr)); 243 ND_PRINT((ndo, "%s", ipaddr_string(ndo, tptr))); 184 ospf_print_grace_lsa(netdissect_options *ndo, const uint8_t *tptr, u_int ls_length) argument 267 ospf_print_te_lsa(netdissect_options *ndo, const uint8_t *tptr, u_int ls_length) argument 626 const uint8_t *tptr; local [all...] |
H A D | print-slow.c | 350 register const u_char *tptr, register u_int tlen, 369 ND_TCHECK2(*tptr, sizeof(struct tlv_header_t)); 370 tlv_header = (const struct tlv_header_t *)tptr; 399 ND_TCHECK2(*tptr, tlv_len); 401 tlv_tptr=tptr+sizeof(struct tlv_header_t); 472 print_unknown_data(ndo, tptr+sizeof(struct tlv_header_t), "\n\t ", 476 tptr+=tlv_len; 491 register const u_char *tptr, register u_int tlen) 518 ptr.slow_oam_common_header = (const struct slow_oam_common_header_t *)tptr; 522 tptr 349 slow_marker_lacp_print(netdissect_options *ndo, register const u_char *tptr, register u_int tlen, u_int proto_subtype) argument 490 slow_oam_print(netdissect_options *ndo, register const u_char *tptr, register u_int tlen) argument [all...] |
H A D | print-sflow.c | 493 const u_char *tptr; local 501 tptr = pointer; 508 sflow_counter_record = (const struct sflow_counter_record_t *)tptr; 521 tptr += sizeof(struct sflow_counter_record_t); 529 if (print_sflow_counter_generic(ndo, tptr, tlen)) 533 if (print_sflow_counter_ethernet(ndo, tptr, tlen)) 537 if (print_sflow_counter_token_ring(ndo, tptr,tlen)) 541 if (print_sflow_counter_basevg(ndo, tptr, tlen)) 545 if (print_sflow_counter_vlan(ndo, tptr, tlen)) 549 if (print_sflow_counter_processor(ndo, tptr, tle 712 const u_char *tptr; local 876 const u_char *tptr; local [all...] |
H A D | print-rsvp.c | 492 const u_char *tptr, u_short obj_tlen) 502 ND_TCHECK_8BITS(tptr); 503 parameter_id = *(tptr); 504 ND_TCHECK2(*(tptr + 2), 2); 505 parameter_length = EXTRACT_16BITS(tptr+2)<<2; /* convert wordcount to bytecount */ 511 *(tptr + 1))); 526 ND_TCHECK2(*(tptr + 4), 4); 527 ND_PRINT((ndo, "\n\t\tIS hop count: %u", EXTRACT_32BITS(tptr + 4))); 540 ND_TCHECK2(*(tptr + 4), 4); 541 bw.i = EXTRACT_32BITS(tptr 491 rsvp_intserv_print(netdissect_options *ndo, const u_char *tptr, u_short obj_tlen) argument 661 rsvp_obj_print(netdissect_options *ndo, const u_char *pptr, u_int plen, const u_char *tptr, const char *ident, u_int tlen, const struct rsvp_common_header *rsvp_com_header) argument 1853 const u_char *tptr; local [all...] |
H A D | print-olsr.c | 327 const u_char *tptr, *msg_data; local 329 tptr = pptr; 335 ND_TCHECK2(*tptr, sizeof(struct olsr_common)); 337 ptr.common = (const struct olsr_common *)tptr; 345 tptr += sizeof(struct olsr_common); 354 while (tptr < (pptr+length)) { 364 ND_TCHECK2(*tptr, sizeof(struct olsr_msg6)); 365 msgptr.v6 = (const struct olsr_msg6 *) tptr; 391 msg_data = tptr + sizeof(struct olsr_msg6); 395 ND_TCHECK2(*tptr, sizeo [all...] |
/freebsd-11-stable/contrib/netbsd-tests/lib/libc/c063/ |
H A D | t_utimensat.c | 53 const struct timespec tptr[] = { variable in typeref:struct:timespec 74 ATF_REQUIRE(utimensat(dfd, BASEFILE, tptr, 0) == 0); 78 ATF_REQUIRE(st.st_atimespec.tv_sec == tptr[0].tv_sec); 79 ATF_REQUIRE(st.st_atimespec.tv_nsec == tptr[0].tv_nsec); 80 ATF_REQUIRE(st.st_mtimespec.tv_sec == tptr[1].tv_sec); 81 ATF_REQUIRE(st.st_mtimespec.tv_nsec == tptr[1].tv_nsec); 100 ATF_REQUIRE(utimensat(AT_FDCWD, BASEFILE, tptr, 0) == 0); 103 ATF_REQUIRE(st.st_atimespec.tv_sec == tptr[0].tv_sec); 104 ATF_REQUIRE(st.st_atimespec.tv_nsec == tptr[0].tv_nsec); 105 ATF_REQUIRE(st.st_mtimespec.tv_sec == tptr[ [all...] |
/freebsd-11-stable/crypto/openssl/crypto/bn/asm/ |
H A D | x86_64-mont5.pl | 981 lea ($tp,$num),%rbx # tptr in .sqr4x_sub 1047 my ($i,$j,$tptr)=("%rbp","%rcx",$rptr); 1260 lea 48+8(%rsp,$num,2),$tptr # end of tp[] buffer, &tp[2*$num] 1262 lea -32($tptr,$i),$tptr # end of tp[] window, &tp[2*$num-"$i"] 1270 mov $A0[0],-24($tptr,$i) # t[1] 1276 mov $A0[1],-16($tptr,$i) # t[2] 1294 mov $A0[0],-8($tptr,$j) # t[3] 1319 mov $A0[1],($tptr,$j) # t[4] 1335 mov $A0[0],8($tptr, [all...] |
/freebsd-11-stable/lib/libc/stdtime/ |
H A D | strptime.c | 96 const struct lc_time_T *tptr = __get_current_time_locale(locale); local 129 buf = _strptime(buf, tptr->date_fmt, tm, GMTp, locale); 156 buf = _strptime(buf, tptr->c_fmt, tm, GMTp, locale); 195 buf = _strptime(buf, tptr->ampm_fmt, tm, GMTp, locale); 207 buf = _strptime(buf, tptr->X_fmt, tm, GMTp, locale); 213 buf = _strptime(buf, tptr->x_fmt, tm, GMTp, locale); 307 len = strlen(tptr->am); 308 if (strncasecmp_l(buf, tptr->am, len, locale) == 0) { 315 len = strlen(tptr->pm); 316 if (strncasecmp_l(buf, tptr [all...] |
H A D | strftime.c | 134 struct lc_time_T *tptr = __get_current_time_locale(loc); local 149 "?" : tptr->weekday[t->tm_wday], 155 "?" : tptr->wday[t->tm_wday], 161 "?" : (Oalternative ? tptr->alt_month : 162 tptr->month)[t->tm_mon], 169 "?" : tptr->mon[t->tm_mon], 187 pt = _fmt(tptr->c_fmt, t, pt, ptlim, &warn2, loc); 298 tptr->pm : tptr->am, 305 pt = _fmt(tptr [all...] |
/freebsd-11-stable/contrib/ntp/ntpd/ |
H A D | refclock_bancomm.c | 412 struct vmedate *tptr; local 421 tptr = &vme->vmedata; 422 if ((tptr = get_datumtime(tptr)) == NULL ) { 438 tptr->year = (unsigned short)(tadr->tm_year + 1900); 443 tptr->day, 444 tptr->hr, 445 tptr->mn, 446 tptr->sec, 447 tptr [all...] |
/freebsd-11-stable/usr.bin/gencat/ |
H A D | gencat.c | 190 char *tptr; local 191 for (tptr = curline; tptr < cptr; ++tptr) 308 char *tptr; local 322 tptr = msg; 330 *tptr++ = *cptr++; 343 i = tptr - msg; 345 tptr = msg + i; 350 *tptr [all...] |