| /dragonfly/contrib/tcpdump/ |
| HD | print-lldp.c | 657 const u_char *tptr, u_int tlv_len) in lldp_private_8021_print() argument 668 subtype = GET_U_1(tptr + 3); in lldp_private_8021_print() 680 GET_BE_U_2(tptr + 4)); in lldp_private_8021_print() 687 GET_BE_U_2(tptr + 5), in lldp_private_8021_print() 688 bittok2str(lldp_8021_port_protocol_id_values, "none", GET_U_1(tptr + 4)), in lldp_private_8021_print() 689 GET_U_1(tptr + 4)); in lldp_private_8021_print() 695 ND_PRINT("\n\t vlan id (VID): %u", GET_BE_U_2(tptr + 4)); in lldp_private_8021_print() 699 sublen = GET_U_1(tptr + 6); in lldp_private_8021_print() 704 nd_printjnp(ndo, tptr + 7, sublen); in lldp_private_8021_print() 710 sublen = GET_U_1(tptr + 4); in lldp_private_8021_print() [all …]
|
| HD | print-isoclns.c | 961 const uint8_t *tptr; in clnp_print() local 977 tptr = pptr; in clnp_print() 1003 tok2str(clnp_option_sr_rr_values,"Unknown",GET_U_1(tptr)), in clnp_print() 1005 nsap_offset=GET_U_1(tptr + 1); in clnp_print() 1015 tptr+=nsap_offset; in clnp_print() 1018 source_address_length=GET_U_1(tptr); in clnp_print() 1024 source_address=(tptr+1); in clnp_print() 1038 ND_PRINT("0x%1x", GET_U_1(tptr)&0x0f); in clnp_print() 1047 … tok2str(clnp_option_scope_values, "Reserved", GET_U_1(tptr) & CLNP_OPTION_SCOPE_MASK)); in clnp_print() 1049 if ((GET_U_1(tptr)&CLNP_OPTION_SCOPE_MASK) == CLNP_OPTION_SCOPE_GLOBAL) in clnp_print() [all …]
|
| HD | print-ldp.c | 242 const u_char *tptr, in ldp_tlv_print() argument 257 ldp_tlv_header = (const struct ldp_tlv_header *)tptr; in ldp_tlv_print() 277 tptr+=sizeof(struct ldp_tlv_header); in ldp_tlv_print() 284 GET_BE_U_2(tptr), in ldp_tlv_print() 285 (GET_BE_U_2(tptr + 2)&0x8000) ? "Targeted" : "Link", in ldp_tlv_print() 286 (GET_BE_U_2(tptr + 2)&0x4000) ? ", Request for targeted Hellos" : ""); in ldp_tlv_print() 291 ND_PRINT("\n\t IPv4 Transport Address: %s", GET_IPADDR_STRING(tptr)); in ldp_tlv_print() 295 ND_PRINT("\n\t IPv6 Transport Address: %s", GET_IP6ADDR_STRING(tptr)); in ldp_tlv_print() 299 ND_PRINT("\n\t Sequence Number: %u", GET_BE_U_4(tptr)); in ldp_tlv_print() 304 af = GET_BE_U_2(tptr); in ldp_tlv_print() [all …]
|
| HD | print-vtp.c | 124 const u_char *tptr; in vtp_print() local 131 tptr = pptr; in vtp_print() 133 ND_TCHECK_LEN(tptr, VTP_HEADER_LEN); in vtp_print() 135 type = GET_U_1(tptr + 1); in vtp_print() 137 GET_U_1(tptr), in vtp_print() 149 mgmtd_len = GET_U_1(tptr + 3); in vtp_print() 154 nd_printjnp(ndo, tptr + 4, mgmtd_len); in vtp_print() 157 GET_U_1(tptr + 2)); in vtp_print() 159 tptr += VTP_HEADER_LEN; in vtp_print() 186 GET_BE_U_4(tptr), in vtp_print() [all …]
|
| HD | print-bgp.c | 1542 const u_char *tptr = pptr; in bgp_attr_get_as_size() local 1557 while (tptr < pptr + len) { in bgp_attr_get_as_size() 1561 if (GET_U_1(tptr) < BGP_AS_SEG_TYPE_MIN || GET_U_1(tptr) > BGP_AS_SEG_TYPE_MAX) { in bgp_attr_get_as_size() 1564 tptr += 2 + GET_U_1(tptr + 1) * 2; in bgp_attr_get_as_size() 1571 if (tptr == pptr + len) { in bgp_attr_get_as_size() 1655 const u_char *tptr, u_int tlen, in bgp_mp_af_print() argument 1661 af = GET_BE_U_2(tptr); in bgp_mp_af_print() 1663 safi = GET_U_1(tptr + 2); in bgp_mp_af_print() 1703 ND_TCHECK_LEN(tptr, tlen); in bgp_mp_af_print() 1706 print_unknown_data(ndo, tptr, "\n\t ", tlen); in bgp_mp_af_print() [all …]
|
| HD | print-udld.c | 105 const u_char *tptr, u_int length) in udld_print() argument 113 ver = UDLD_EXTRACT_VERSION(GET_U_1(tptr)); in udld_print() 114 code = UDLD_EXTRACT_OPCODE(GET_U_1(tptr)); in udld_print() 115 tptr += 1; in udld_print() 118 flags = GET_U_1(tptr); in udld_print() 119 tptr += 1; in udld_print() 137 ND_PRINT("\n\tChecksum 0x%04x (unverified)", GET_BE_U_2(tptr)); in udld_print() 138 tptr += 2; in udld_print() 147 type = GET_BE_U_2(tptr); in udld_print() 148 tptr += 2; in udld_print() [all …]
|
| HD | print-cfm.c | 218 const u_char *tptr, const u_int length) in cfm_network_addr_print() argument 233 network_addr_type = GET_U_1(tptr); in cfm_network_addr_print() 248 ND_PRINT(", %s", GET_IPADDR_STRING(tptr + 1)); in cfm_network_addr_print() 257 ND_PRINT(", %s", GET_IP6ADDR_STRING(tptr + 1)); in cfm_network_addr_print() 275 const uint8_t *tptr, *tlv_ptr; in cfm_print() local 293 tptr=pptr; in cfm_print() 327 tptr += sizeof(struct cfm_common_header_t); in cfm_print() 340 msg_ptr.cfm_ccm = (const struct cfm_ccm_t *)tptr; in cfm_print() 469 msg_ptr.cfm_ltm = (const struct cfm_ltm_t *)tptr; in cfm_print() 492 msg_ptr.cfm_ltr = (const struct cfm_ltr_t *)tptr; in cfm_print() [all …]
|
| HD | print-mpcp.c | 129 const u_char *tptr; in mpcp_print() local 136 tptr=pptr; in mpcp_print() 150 tptr += sizeof(struct mpcp_common_header_t); in mpcp_print() 157 grant_numbers = GET_U_1(tptr) & MPCP_GRANT_NUMBER_MASK; in mpcp_print() 162 GET_U_1(tptr) & ~MPCP_GRANT_NUMBER_MASK)); in mpcp_print() 163 tptr++; in mpcp_print() 166 const struct mpcp_grant_t *mpcp_grant = (const struct mpcp_grant_t *)tptr; in mpcp_print() 171 tptr += sizeof(struct mpcp_grant_t); in mpcp_print() 174 ND_PRINT("\n\tSync-Time %u ticks", GET_BE_U_2(tptr)); in mpcp_print() 179 queue_sets = GET_U_1(tptr); in mpcp_print() [all …]
|
| HD | print-ospf.c | 183 const u_char *tptr, u_int ls_length) in ospf_grace_lsa_print() argument 189 ND_TCHECK_4(tptr); in ospf_grace_lsa_print() 194 tlv_type = GET_BE_U_2(tptr); in ospf_grace_lsa_print() 195 tlv_length = GET_BE_U_2(tptr + 2); in ospf_grace_lsa_print() 196 tptr+=4; in ospf_grace_lsa_print() 215 ND_TCHECK_LEN(tptr, tlv_length); in ospf_grace_lsa_print() 223 ND_PRINT("%us", GET_BE_U_4(tptr)); in ospf_grace_lsa_print() 232 tok2str(lsa_opaque_grace_tlv_reason_values, "Unknown", GET_U_1(tptr)), in ospf_grace_lsa_print() 233 GET_U_1(tptr)); in ospf_grace_lsa_print() 241 ND_PRINT("%s", GET_IPADDR_STRING(tptr)); in ospf_grace_lsa_print() [all …]
|
| HD | print-dtp.c | 47 dtp_print(netdissect_options *ndo, const u_char *tptr, u_int length) in dtp_print() argument 56 GET_U_1(tptr), in dtp_print() 66 tptr += DTP_HEADER_LEN; in dtp_print() 76 type = GET_BE_U_2(tptr); in dtp_print() 77 len = GET_BE_U_2(tptr + 2); in dtp_print() 94 nd_printjnp(ndo, tptr+4, len-4); in dtp_print() 101 ND_PRINT(", 0x%x", GET_U_1(tptr + 4)); in dtp_print() 107 ND_PRINT(", %s", GET_ETHERADDR_STRING(tptr+4)); in dtp_print() 111 ND_TCHECK_LEN(tptr, len); in dtp_print() 114 tptr += len; in dtp_print() [all …]
|
| HD | print-rpki-rtr.c | 175 rpki_rtr_pdu_print(netdissect_options *ndo, const u_char *tptr, const u_int len, in rpki_rtr_pdu_print() argument 183 if (GET_U_1(tptr) != 0) { in rpki_rtr_pdu_print() 190 ND_PRINT("%sRPKI-RTRv%u (unknown)", indent_string(8), GET_U_1(tptr)); in rpki_rtr_pdu_print() 197 ND_TCHECK_LEN(tptr, sizeof(rpki_rtr_pdu)); in rpki_rtr_pdu_print() 198 pdu_header = (const rpki_rtr_pdu *)tptr; in rpki_rtr_pdu_print() 261 pdu = (const rpki_rtr_pdu_ipv4_prefix *)tptr; in rpki_rtr_pdu_print() 276 pdu = (const rpki_rtr_pdu_ipv6_prefix *)tptr; in rpki_rtr_pdu_print() 294 ND_TCHECK_LEN(tptr, tlen + 4); in rpki_rtr_pdu_print() 298 pdu = (const rpki_rtr_pdu_error_report *)tptr; in rpki_rtr_pdu_print() 324 ND_TCHECK_LEN(tptr, tlen + encapsulated_pdu_length); in rpki_rtr_pdu_print() [all …]
|
| HD | print-lwapp.c | 171 const u_char *tptr; in lwapp_control_print() local 177 tptr=pptr; in lwapp_control_print() 181 ND_TCHECK_6(tptr); in lwapp_control_print() 220 ND_PRINT("\n\tAP identity: %s", GET_ETHERADDR_STRING(tptr)); in lwapp_control_print() 221 tptr+=sizeof(struct lwapp_transport_header)+6; in lwapp_control_print() 223 tptr+=sizeof(struct lwapp_transport_header); in lwapp_control_print() 229 ND_TCHECK_LEN(tptr, sizeof(struct lwapp_control_header)); in lwapp_control_print() 235 lwapp_control_header = (const struct lwapp_control_header *)tptr; in lwapp_control_print() 252 ND_TCHECK_LEN(tptr, msg_tlen); in lwapp_control_print() 291 tptr += sizeof(struct lwapp_control_header) + msg_tlen; in lwapp_control_print() [all …]
|
| HD | print-vqp.c | 105 const u_char *tptr; in vqp_print() local 113 tptr=pptr; in vqp_print() 153 tptr+=sizeof(struct vqp_common_header_t); in vqp_print() 158 vqp_obj_tlv = (const struct vqp_obj_tlv_t *)tptr; in vqp_print() 164 tptr+=sizeof(struct vqp_obj_tlv_t); in vqp_print() 177 ND_TCHECK_LEN(tptr, vqp_obj_len); in vqp_print() 185 ND_PRINT("%s (0x%08x)", GET_IPADDR_STRING(tptr), in vqp_print() 186 GET_BE_U_4(tptr)); in vqp_print() 193 nd_printjnp(ndo, tptr, vqp_obj_len); in vqp_print() 200 ND_PRINT("%s", GET_ETHERADDR_STRING(tptr)); in vqp_print() [all …]
|
| HD | print-sflow.c | 476 const u_char *tptr; in sflow_print_counter_records() local 484 tptr = pointer; in sflow_print_counter_records() 491 sflow_counter_record = (const struct sflow_counter_record_t *)tptr; in sflow_print_counter_records() 503 tptr += sizeof(struct sflow_counter_record_t); in sflow_print_counter_records() 511 if (print_sflow_counter_generic(ndo, tptr, tlen)) in sflow_print_counter_records() 515 if (print_sflow_counter_ethernet(ndo, tptr, tlen)) in sflow_print_counter_records() 519 if (print_sflow_counter_token_ring(ndo, tptr,tlen)) in sflow_print_counter_records() 523 if (print_sflow_counter_basevg(ndo, tptr, tlen)) in sflow_print_counter_records() 527 if (print_sflow_counter_vlan(ndo, tptr, tlen)) in sflow_print_counter_records() 531 if (print_sflow_counter_processor(ndo, tptr, tlen)) in sflow_print_counter_records() [all …]
|
| HD | print-slow.c | 344 const u_char *tptr, u_int tlen, in slow_marker_lacp_print() argument 363 tlv_header = (const struct tlv_header_t *)tptr; in slow_marker_lacp_print() 393 ND_TCHECK_LEN(tptr, tlv_len); in slow_marker_lacp_print() 395 tlv_tptr=tptr+sizeof(struct tlv_header_t); in slow_marker_lacp_print() 466 print_unknown_data(ndo, tptr+sizeof(struct tlv_header_t), "\n\t ", in slow_marker_lacp_print() 470 tptr+=tlv_len; in slow_marker_lacp_print() 481 const u_char *tptr, u_int tlen) in slow_oam_print() argument 512 ptr.slow_oam_common_header = (const struct slow_oam_common_header_t *)tptr; in slow_oam_print() 516 tptr += sizeof(struct slow_oam_common_header_t); in slow_oam_print() 529 ptr.slow_oam_tlv_header = (const struct slow_oam_tlv_header_t *)tptr; in slow_oam_print() [all …]
|
| HD | print-cdp.c | 235 const u_char *tptr, u_int length) in cdp_print() argument 247 GET_U_1(tptr + CDP_HEADER_VERSION_OFFSET), in cdp_print() 248 GET_U_1(tptr + CDP_HEADER_TTL_OFFSET)); in cdp_print() 249 checksum = GET_BE_U_2(tptr + CDP_HEADER_CHECKSUM_OFFSET); in cdp_print() 253 tptr += CDP_HEADER_LEN; in cdp_print() 267 type = GET_BE_U_2(tptr + CDP_TLV_TYPE_OFFSET); in cdp_print() 268 …len = GET_BE_U_2(tptr + CDP_TLV_LEN_OFFSET); /* object length includes the 4 bytes header length … in cdp_print() 284 tptr += CDP_TLV_HEADER_LEN; in cdp_print() 301 info->printer(ndo, tptr, len); in cdp_print() 303 ND_TCHECK_LEN(tptr, len); in cdp_print() [all …]
|
| HD | print-ospf6.c | 410 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() 470 const uint8_t *tptr; in ospf6_print_lsa() local 485 tptr = (const uint8_t *)lsap+sizeof(struct lsa6_hdr); in ospf6_print_lsa() 568 tptr = (const uint8_t *)lsap->lsa_un.un_inter_ap.inter_ap_prefix; in ospf6_print_lsa() 570 bytelen = ospf6_print_lsaprefix(ndo, tptr, lsa_length); in ospf6_print_lsa() 579 tptr += bytelen; in ospf6_print_lsa() 594 tptr = (const uint8_t *)lsap->lsa_un.un_asla.asla_prefix; in ospf6_print_lsa() 595 lsapp = (const struct lsa6_prefix *)tptr; in ospf6_print_lsa() 596 bytelen = ospf6_print_lsaprefix(ndo, tptr, lsa_length); in ospf6_print_lsa() [all …]
|
| HD | print-rsvp.c | 513 const u_char *tptr, u_int obj_tlen) in rsvp_intserv_print() argument 523 parameter_id = GET_U_1(tptr); in rsvp_intserv_print() 524 parameter_length = GET_BE_U_2(tptr + 2)<<2; /* convert wordcount to bytecount */ in rsvp_intserv_print() 530 GET_U_1(tptr + 1)); in rsvp_intserv_print() 545 ND_PRINT("\n\t\tIS hop count: %u", GET_BE_U_4(tptr + 4)); in rsvp_intserv_print() 558 bw.i = GET_BE_U_4(tptr + 4); in rsvp_intserv_print() 573 if (GET_BE_U_4(tptr + 4) == 0xffffffff) in rsvp_intserv_print() 576 ND_PRINT("%u", GET_BE_U_4(tptr + 4)); in rsvp_intserv_print() 590 ND_PRINT("\n\t\tComposed MTU: %u bytes", GET_BE_U_4(tptr + 4)); in rsvp_intserv_print() 611 ND_TCHECK_LEN(tptr + 4, 20); in rsvp_intserv_print() [all …]
|
| HD | print-olsr.c | 326 const u_char *tptr, *msg_data; in olsr_print() local 329 tptr = pptr; in olsr_print() 338 ND_TCHECK_LEN(tptr, sizeof(struct olsr_common)); in olsr_print() 340 ptr.common = (const struct olsr_common *)tptr; in olsr_print() 347 tptr += sizeof(struct olsr_common); in olsr_print() 356 while (tptr < (pptr+length)) { in olsr_print() 366 ND_TCHECK_LEN(tptr, sizeof(struct olsr_msg6)); in olsr_print() 367 msgptr.v6 = (const struct olsr_msg6 *) tptr; in olsr_print() 393 msg_data = tptr + sizeof(struct olsr_msg6); in olsr_print() 397 ND_TCHECK_LEN(tptr, sizeof(struct olsr_msg4)); in olsr_print() [all …]
|
| /dragonfly/lib/libc/stdtime/ |
| HD | strptime.c | 89 const struct lc_time_T *tptr = __get_current_time_locale(locale); in _strptime() local 122 buf = _strptime(buf, tptr->date_fmt, tm, GMTp, locale); in _strptime() 149 buf = _strptime(buf, tptr->c_fmt, tm, GMTp, locale); in _strptime() 188 buf = _strptime(buf, tptr->ampm_fmt, tm, GMTp, locale); in _strptime() 200 buf = _strptime(buf, tptr->X_fmt, tm, GMTp, locale); in _strptime() 206 buf = _strptime(buf, tptr->x_fmt, tm, GMTp, locale); in _strptime() 297 len = strlen(tptr->am); in _strptime() 298 if (strncasecmp_l(buf, tptr->am, len, locale) == 0) { in _strptime() 307 len = strlen(tptr->pm); in _strptime() 308 if (strncasecmp_l(buf, tptr->pm, len, locale) == 0) { in _strptime() [all …]
|
| HD | strftime.c | 122 struct lc_time_T *tptr = __get_current_time_locale(loc); in _fmt() local 137 "?" : tptr->weekday[t->tm_wday], in _fmt() 143 "?" : tptr->wday[t->tm_wday], in _fmt() 149 "?" : (Oalternative ? tptr->alt_month : in _fmt() 150 tptr->month)[t->tm_mon], in _fmt() 157 "?" : tptr->mon[t->tm_mon], in _fmt() 175 pt = _fmt(tptr->c_fmt, t, pt, ptlim, &warn2, loc); in _fmt() 280 tptr->pm : in _fmt() 281 tptr->am, in _fmt() 288 pt = _fmt(tptr->ampm_fmt, t, pt, ptlim, in _fmt() [all …]
|
| /dragonfly/sys/dev/disk/isp/ |
| HD | isp_freebsd.c | 824 tstate_t *tptr; in is_lun_enabled() local 828 SLIST_FOREACH(tptr, lhp, next) { in is_lun_enabled() 829 if (xpt_path_lun_id(tptr->owner) == lun) { in is_lun_enabled() 841 tstate_t *tptr = NULL; in dump_tstates() local 849 SLIST_FOREACH(tptr, lhp, next) { in dump_tstates() 850 …xpt_print(tptr->owner, "[%d, %d] atio_cnt=%d inot_cnt=%d\n", i, j, tptr->atio_count, tptr->inot_co… in dump_tstates() 859 tstate_t *tptr = NULL; in get_lun_statep() local 866 SLIST_FOREACH(tptr, lhp, next) { in get_lun_statep() 867 if (xpt_path_lun_id(tptr->owner) == lun) { in get_lun_statep() 868 tptr->hold++; in get_lun_statep() [all …]
|
| /dragonfly/games/adventure/ |
| HD | wizard.c | 53 struct tm *tptr; in datime() local 56 tptr = localtime(&tvec); in datime() 58 *d = (tptr->tm_yday + 365 * (tptr->tm_year - 77) in datime() 59 + (tptr->tm_year - 77) / 4 - (tptr->tm_year - 1) / 100 in datime() 60 + (tptr->tm_year + 299) / 400); in datime() 64 *t = tptr->tm_hour * 60 + tptr->tm_min; in datime()
|
| /dragonfly/usr.bin/gencat/ |
| HD | gencat.c | 186 char *tptr; local 187 for (tptr = curline; tptr < cptr; ++tptr) 304 char *tptr; local 318 tptr = msg; 326 *tptr++ = *cptr++; 339 i = tptr - msg; 341 tptr = msg + i; 346 *tptr++ = CH; \ 361 *tptr++ = *cptr++; 363 *tptr = 0; [all …]
|
| /dragonfly/contrib/libarchive/tar/ |
| HD | bsdtar.c | 158 char *tptr; in main() local 306 tptr = NULL; in main() 307 t = (int)strtol(bsdtar->argument, &tptr, 10); in main() 309 *(bsdtar->argument) == '\0' || tptr == NULL || in main() 310 *tptr != '\0') { in main() 374 tptr = NULL; in main() 375 t = (int)strtol(bsdtar->argument, &tptr, 10); in main() 377 tptr == NULL || *tptr != '\0') { in main() 689 tptr = NULL; in main() 690 t = (int)strtol(bsdtar->argument, &tptr, 10); in main() [all …]
|