/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_netbios.c | 103 sprintf(get_line(0, 0), " - Broadcast"); in print_flag_details() 105 sprintf(get_line(0, 0), " - Recursion Available"); in print_flag_details() 107 sprintf(get_line(0, 0), " - Recursion Desired"); in print_flag_details() 109 sprintf(get_line(0, 0), " - Truncation Flag"); in print_flag_details() 111 sprintf(get_line(0, 0), " - Authoritative Answer"); in print_flag_details() 188 sprintf(get_line(0, 0), "Type = %s %s", optype, resptype); in print_ns_type() 220 sprintf(get_line(0, 0), "Datagram Packet Type = 0x%.2x", in interpret_netbios_datagram() 222 sprintf(get_line(0, 0), "Datagram Flags = 0x%.2x", in interpret_netbios_datagram() 225 sprintf(get_line(0, 0), "Datagram ID = 0x%.4x", in interpret_netbios_datagram() 228 sprintf(get_line(0, 0), "Source IP = %d.%d.%d.%d", in interpret_netbios_datagram() [all …]
|
H A D | snoop_ppp.c | 338 (void) sprintf(get_line(0, 0), "Protocol = 0x%x (%s)", in interpret_ppp() 387 (void) sprintf(get_line(0, 0), "Code = %d %s", code, codestr); in interpret_ppp_cp() 388 (void) sprintf(get_line(0, 0), "Identifier = %d", id); in interpret_ppp_cp() 389 (void) sprintf(get_line(0, 0), "Length = %d", length); in interpret_ppp_cp() 408 (void) sprintf(get_line(0, 0), "Magic-Number = 0x%08x", in interpret_ppp_cp() 419 (void) sprintf(get_line(0, 0), "OUI = 0x%06x (%s)", in interpret_ppp_cp() 421 (void) sprintf(get_line(0, 0), "Kind = %d", kind); in interpret_ppp_cp() 443 (void) sprintf(get_line(0, 0), "Data = %.*s", in interpret_ppp_cp() 487 (void) sprintf(get_line(0, 0), "Magic-Number = 0x%08x", in interpret_ppp_cp() 505 (void) sprintf(get_line(0, 0), in interpret_ppp_cp() [all …]
|
H A D | snoop_sctp.c | 305 (void) snprintf(get_line(0, 0), BUFLEN, msg, buf); in dumphex() 335 (void) snprintf(get_line(0, 0), get_line_remain(), in parse_asconfok_param() 340 (void) snprintf(get_line(0, 0), get_line_remain(), " ASCONF CID = %u", in parse_asconfok_param() 351 (void) snprintf(get_line(0, 0), get_line_remain(), in parse_asconferr_param() 356 (void) snprintf(get_line(0, 0), get_line_remain(), " ASCONF CID = %u", in parse_asconferr_param() 380 (void) snprintf(get_line(0, 0), get_line_remain(), in parse_addip_param() 385 (void) snprintf(get_line(0, 0), get_line_remain(), " ASCONF CID = %u", in parse_addip_param() 400 (void) snprintf(get_line(0, 0), get_line_remain(), in parse_ip4_param() 410 (void) snprintf(get_line(0, 0), get_line_remain(), " Addr = %s", ap); in parse_ip4_param() 421 (void) snprintf(get_line(0, 0), get_line_remain(), in parse_ip6_param() [all …]
|
H A D | snoop_ntp.c | 133 (void) sprintf(get_line((char *)(uintptr_t)ntp->li_vn_mode - in interpret_ntp() 138 (void) sprintf(get_line((char *)(uintptr_t)ntp->li_vn_mode - in interpret_ntp() 141 (void) sprintf(get_line((char *)(uintptr_t)ntp->li_vn_mode - in interpret_ntp() 146 (void) sprintf(get_line((char *)(uintptr_t)ntp->stratum - in interpret_ntp() 153 (void) sprintf(get_line((char *)(uintptr_t)ntp->ppoll - in interpret_ntp() 155 (void) sprintf(get_line((char *)(uintptr_t)ntp->precision - in interpret_ntp() 159 (void) sprintf(get_line( in interpret_ntp() 166 (void) sprintf(get_line( in interpret_ntp() 173 (void) sprintf(get_line((char *)(uintptr_t)ntp->refid - in interpret_ntp() 177 (void) sprintf(get_line( in interpret_ntp() [all …]
|
H A D | snoop_dhcp.c | 159 (void) sprintf(get_line((char *)(uintptr_t)dp->htype - in interpret_dhcp() 163 (void) sprintf(get_line((char *)(uintptr_t)dp->hlen - in interpret_dhcp() 166 (void) sprintf(get_line((char *)(uintptr_t)dp->hops - in interpret_dhcp() 169 (void) sprintf(get_line((char *)(uintptr_t)dp->xid - in interpret_dhcp() 172 (void) sprintf(get_line((char *)(uintptr_t)dp->secs - in interpret_dhcp() 175 (void) sprintf(get_line((char *)(uintptr_t)dp->flags - in interpret_dhcp() 178 (void) sprintf(get_line((char *)&dp->ciaddr - dlc_header, 4), in interpret_dhcp() 180 (void) sprintf(get_line((char *)&dp->yiaddr - dlc_header, 4), in interpret_dhcp() 183 (void) sprintf(get_line((char *)&dp->siaddr - dlc_header, 4), in interpret_dhcp() 186 (void) sprintf(get_line((char *)&dp->giaddr - dlc_header, 4), in interpret_dhcp() [all …]
|
H A D | snoop_ospf.c | 165 (void) snprintf(get_line(0, 0), get_line_remain(), in interpret_ospf_hello() 168 (void) snprintf(get_line(0, 0), get_line_remain(), "Mask = %s", in interpret_ospf_hello() 170 (void) snprintf(get_line(0, 0), get_line_remain(), in interpret_ospf_hello() 173 (void) snprintf(get_line(0, 0), get_line_remain(), in interpret_ospf_hello() 175 (void) snprintf(get_line(0, 0), get_line_remain(), in interpret_ospf_hello() 178 (void) snprintf(get_line(0, 0), get_line_remain(), in interpret_ospf_hello() 183 (void) snprintf(get_line(0, 0), get_line_remain(), in interpret_ospf_hello() 192 (void) snprintf(get_line(0, 0), get_line_remain(), in interpret_ospf_hello() 211 (void) snprintf(get_line(0, 0), get_line_remain(), in ospf_print_ls_type() 223 (void) snprintf(get_line(0, 0), get_line_remain(), in ospf_print_ls_type() [all …]
|
H A D | snoop_mip.c | 164 (void) sprintf(get_line((char *)payload-dlc_header, 1), msg, buf); in dumphex() 238 (void) sprintf(get_line((char *)exthdr-dlc_header, 1), in interpret_extensions() 244 (void) sprintf(get_line((char *)exthdr-dlc_header, 1), in interpret_extensions() 255 (void) sprintf(get_line((char *)&exthdr->length-dlc_header, 1), in interpret_extensions() 505 (void) sprintf(get_line((char *)&rreq - in interpret_mip_cntrlmsg() 508 (void) sprintf(get_line( in interpret_mip_cntrlmsg() 513 (void) sprintf(get_line( in interpret_mip_cntrlmsg() 518 (void) sprintf(get_line( in interpret_mip_cntrlmsg() 524 (void) sprintf(get_line( in interpret_mip_cntrlmsg() 529 (void) sprintf(get_line( in interpret_mip_cntrlmsg() [all …]
|
H A D | snoop_ip.c | 157 (void) snprintf(get_line(0, 0), get_line_remain(), in interpret_ip() 159 (void) snprintf(get_line(0, 0), get_line_remain(), in interpret_ip() 161 (void) snprintf(get_line(0, 0), get_line_remain(), in interpret_ip() 163 (void) snprintf(get_line(0, 0), get_line_remain(), in interpret_ip() 166 (void) snprintf(get_line(0, 0), get_line_remain(), in interpret_ip() 169 (void) snprintf(get_line(0, 0), get_line_remain(), " %s", in interpret_ip() 172 (void) snprintf(get_line(0, 0), get_line_remain(), " %s", in interpret_ip() 175 (void) snprintf(get_line(0, 0), get_line_remain(), " %s", in interpret_ip() 178 (void) snprintf(get_line(0, 0), get_line_remain(), " %s", in interpret_ip() 184 (void) snprintf(get_line(0, 0), get_line_remain(), in interpret_ip() [all …]
|
H A D | snoop_nfs3.c | 377 (void) sprintf(get_line(0, 0), "Proc = %d (%s)", 429 (void) sprintf(get_line(0, 0), "Method = %s", 437 (void) sprintf(get_line(0, 0), "File type = %s", 456 (void) sprintf(get_line(0, 0), "Stable = %s", 519 (void) sprintf(get_line(0, 0), "Stable = %s", 540 (void) sprintf(get_line(0, 0), 564 (void) sprintf(get_line(0, 0), "Access = %s", 636 (void) sprintf(get_line(0, 0), " %s", 640 (void) sprintf(get_line(0, 0), " %s", 644 (void) sprintf(get_line(0, 0), " %s", [all …]
|
H A D | snoop_dhcpv6.c | 153 (void) snprintf(get_line(0, 0), get_line_remain(), in interpret_dhcpv6() 159 (void) strlcpy(get_line(0, 0), "Truncated", in interpret_dhcpv6() 164 (void) snprintf(get_line(0, 0), get_line_remain(), in interpret_dhcpv6() 172 (void) strlcpy(get_line(0, 0), "Truncated", in interpret_dhcpv6() 177 (void) snprintf(get_line(0, 0), get_line_remain(), in interpret_dhcpv6() 508 (void) snprintf(get_line(0, 0), get_line_remain(), "%*s %c%s", in show_hex() 535 (void) snprintf(get_line(0, 0), get_line_remain(), in show_ascii() 553 (void) snprintf(get_line(0, 0), get_line_remain(), "%s = %s", in show_address() 556 (void) snprintf(get_line(0, 0), get_line_remain(), in show_address() 604 (void) snprintf(get_line(0, 0), get_line_remain(), in show_options() [all …]
|
H A D | snoop_ospf6.c | 112 (void) snprintf(get_line(0, 0), get_line_remain(), in interpret_ospf6_hello() 115 (void) snprintf(get_line(0, 0), get_line_remain(), in interpret_ospf6_hello() 118 (void) snprintf(get_line(0, 0), get_line_remain(), in interpret_ospf6_hello() 121 (void) snprintf(get_line(0, 0), get_line_remain(), in interpret_ospf6_hello() 123 (void) snprintf(get_line(0, 0), get_line_remain(), in interpret_ospf6_hello() 126 (void) snprintf(get_line(0, 0), get_line_remain(), in interpret_ospf6_hello() 131 (void) snprintf(get_line(0, 0), get_line_remain(), in interpret_ospf6_hello() 140 (void) snprintf(get_line(0, 0), get_line_remain(), in interpret_ospf6_hello() 174 (void) snprintf(get_line(0, 0), get_line_remain(), in ospf6_print_ls_type() 180 (void) snprintf(get_line(0, 0), get_line_remain(), in ospf6_print_ls_type() [all …]
|
H A D | snoop_zip.c | 95 (void) snprintf(get_line(0, 0), get_line_remain(), in interpret_ddp_zip() 103 (void) snprintf(get_line(0, 0), get_line_remain(), in interpret_ddp_zip() 112 (void) snprintf(get_line(0, 0), in interpret_ddp_zip() 119 (void) snprintf(get_line(0, 0), get_line_remain(), in interpret_ddp_zip() 130 (void) snprintf(get_line(0, 0), in interpret_ddp_zip() 141 (void) snprintf(get_line(0, 0), get_line_remain(), in interpret_ddp_zip() 174 (void) snprintf(get_line(0, 0), get_line_remain(), in interpret_ddp_zip() 178 (void) snprintf(get_line(0, 0), get_line_remain(), in interpret_ddp_zip() 181 (void) snprintf(get_line(0, 0), get_line_remain(), in interpret_ddp_zip() 185 (void) snprintf(get_line(0, 0), in interpret_ddp_zip() [all …]
|
H A D | snoop_nfs4.c | 730 (void) sprintf(get_line(0, 0), "Proc = %d (%s)", in interpret_nfs4_cb() 741 sprintf(get_line(0, 0), "Status = %d (%s)", in interpret_nfs4_cb() 801 (void) sprintf(get_line(0, 0), "Proc = %d (%s)", in interpret_nfs4() 812 sprintf(get_line(0, 0), "Status = %d (%s)", in interpret_nfs4() 1063 (void) sprintf(get_line(0, 0), "Minor version = %u", in detail_nfs_argop4() 1067 (void) sprintf(get_line(0, 0), "Number of operations = %d", in detail_nfs_argop4() 1078 get_line(0, 0); /* blank line to separate ops */ in detail_nfs_argop4() 1079 sprintf(get_line(0, 0), "Op = %d (%s)", in detail_nfs_argop4() 1109 (void) sprintf(get_line(0, 0), "Minor version = %u", in detail_cb_argop4() 1114 (void) sprintf(get_line(0, 0), "Callback Ident = %u", in detail_cb_argop4() [all …]
|
H A D | snoop_slp.c | 272 sprintf(get_line(0, 0), " \"%s\"", p); in slp_prevresp() 443 sprintf(get_line(0, 0), "%s: length = -1: Use all NAs", tag); in slp_field() 447 sprintf(get_line(0, 0), "%s: length = %d", tag, length); in slp_field() 450 sprintf(get_line(0, 0), in slp_field() 474 sprintf(get_line(0, 0), " \"%s\"", buf); in slp_field() 510 sprintf(get_line(0, 0), in slpv2_url() 515 sprintf(get_line(0, 0), in slpv2_url() 522 sprintf(get_line(0, 0), in slpv2_url() 533 sprintf(get_line(0, 0), " \"%s\"", buf); in slpv2_url() 546 sprintf(get_line(0, 0), "%d Authentication Blocks", n); in slpv2_url() [all …]
|
H A D | snoop_icmp.c | 383 (void) sprintf(get_line(0, 0), "Type = %d (%s)", in interpret_icmp() 386 (void) sprintf(get_line(0, 0), "Code = %d (%s)", in interpret_icmp() 389 (void) sprintf(get_line(0, 0), "Code = %d", in interpret_icmp() 392 (void) sprintf(get_line(0, 0), "Checksum = %x", in interpret_icmp() 399 (void) sprintf(get_line(0, 0), in interpret_icmp() 410 (void) sprintf(get_line(0, 0), in interpret_icmp() 598 (void) sprintf(get_line(0, 0), "Type = %d (%s)", 601 (void) sprintf(get_line(0, 0), "Code = %d (%s)", 604 (void) sprintf(get_line(0, 0), "Code = %d", 606 (void) sprintf(get_line(0, 0), "Checksum = %x", [all …]
|
H A D | snoop_rpcsec.c | 107 (void) sprintf(get_line(pos, getxdr_pos()), in print_rpcsec_gss_cred() 110 (void) sprintf(get_line(pos, getxdr_pos()), in print_rpcsec_gss_cred() 115 (void) sprintf(get_line(pos, getxdr_pos()), in print_rpcsec_gss_cred() 118 (void) sprintf(get_line(pos, getxdr_pos()), in print_rpcsec_gss_cred() 124 line = get_line(pos, getxdr_pos()); in print_rpcsec_gss_cred() 165 sprintf(get_line(0, 0), in rpcsec_gss_pre_proto() 189 sprintf(get_line(0, 0), in rpcsec_gss_pre_proto() 192 sprintf(get_line(0, 0), in rpcsec_gss_pre_proto() 240 sprintf(get_line(0, 0), in rpcsec_gss_post_proto() 242 sprintf(get_line(0, 0), "[%s]", checksum); in rpcsec_gss_post_proto() [all …]
|
H A D | snoop_nfs_acl.c | 277 (void) sprintf(get_line(0, 0), "Proc = %d (%s)", in interpret_nfs_acl2() 352 (void) sprintf(get_line(0, 0), "Proc = %d (%s)", in interpret_nfs_acl3() 416 (void) sprintf(get_line(0, 0), "Proc = %d (%s)", in interpret_nfs_acl4() 448 (void) sprintf(get_line(pos, getxdr_pos()), "Status = %d (%s)", in detail_nfsstat4() 615 (void) sprintf(get_line(0, 0), " %s", in detail_access2() 617 (void) sprintf(get_line(0, 0), " %s", in detail_access2() 619 (void) sprintf(get_line(0, 0), " %s", in detail_access2() 621 (void) sprintf(get_line(0, 0), " %s", in detail_access2() 623 (void) sprintf(get_line(0, 0), " %s", in detail_access2() 625 (void) sprintf(get_line(0, 0), " %s", in detail_access2() [all …]
|
H A D | snoop_igmp.c | 102 (void) snprintf(get_line(0, 0), get_line_remain(), in interpret_igmp() 104 (void) snprintf(get_line(0, 0), get_line_remain(), in interpret_igmp() 106 (void) snprintf(get_line(0, 0), get_line_remain(), in interpret_igmp() 115 (void) snprintf(get_line(0, 0), get_line_remain(), in interpret_igmp() 135 (void) snprintf(get_line(0, 0), get_line_remain(), in interpret_igmpv3qry() 143 (void) snprintf(get_line(0, 0), get_line_remain(), in interpret_igmpv3qry() 146 (void) snprintf(get_line(0, 0), get_line_remain(), in interpret_igmpv3qry() 153 (void) snprintf(get_line(0, 0), get_line_remain(), " %s", in interpret_igmpv3qry() 184 (void) snprintf(get_line(0, 0), get_line_remain(), in interpret_igmpv3rpt() 192 (void) snprintf(get_line(0, 0), get_line_remain(), in interpret_igmpv3rpt() [all …]
|
H A D | snoop_dns.c | 154 (void) snprintf(get_line(0, 0), get_line_remain(), in interpret_dns() 156 (void) snprintf(get_line(0, 0), get_line_remain(), in interpret_dns() 161 (void) snprintf(get_line(0, 0), get_line_remain(), in interpret_dns() 164 (void) snprintf(get_line(0, 0), get_line_remain(), in interpret_dns() 168 (void) snprintf(get_line(0, 0), get_line_remain(), in interpret_dns() 170 (void) snprintf(get_line(0, 0), get_line_remain(), in interpret_dns() 172 (void) snprintf(get_line(0, 0), get_line_remain(), in interpret_dns() 176 (void) snprintf(get_line(0, 0), get_line_remain(), in interpret_dns() 186 rrp += print_question(get_line(0, 0), in interpret_dns() 192 (void) snprintf(get_line(0, 0), get_line_remain(), in interpret_dns() [all …]
|
H A D | snoop_rip.c | 149 (void) snprintf(get_line(0, 0), get_line_remain(), in interpret_rip() 152 (void) snprintf(get_line(0, 0), get_line_remain(), in interpret_rip() 160 (void) snprintf(get_line(0, 0), get_line_remain(), in interpret_rip() 168 (void) snprintf(get_line in interpret_rip() 174 (void) snprintf(get_line in interpret_rip() 183 (void) snprintf(get_line(0, 0), in interpret_rip() 203 (void) snprintf(get_line in interpret_rip() 214 (void) snprintf(get_line(0, 0), in interpret_rip() 220 (void) snprintf(get_line(0, 0), in interpret_rip() 254 (void) snprintf(get_line(0, 0), in interpret_rip() [all …]
|
H A D | snoop_aarp.c | 89 (void) snprintf(get_line(0, 0), get_line_remain(), in interpret_aarp() 94 (void) snprintf(get_line(0, 0), get_line_remain(), in interpret_aarp() 97 (void) snprintf(get_line(0, 0), get_line_remain(), in interpret_aarp() 101 (void) snprintf(get_line(0, 0), get_line_remain(), in interpret_aarp() 104 (void) snprintf(get_line(0, 0), get_line_remain(), in interpret_aarp() 107 (void) snprintf(get_line(0, 0), get_line_remain(), in interpret_aarp() 114 (void) snprintf(get_line(0, 0), get_line_remain(), in interpret_aarp() 117 (void) snprintf(get_line(0, 0), get_line_remain(), in interpret_aarp() 120 (void) snprintf(get_line(0, 0), get_line_remain(), in interpret_aarp() 125 (void) snprintf(get_line(0, 0), get_line_remain(), in interpret_aarp()
|
H A D | snoop_rstat.c | 99 (void) sprintf(get_line(0, 0), 135 (void) sprintf(get_line(0, 0), "CPU Times:"); in detail_stats() 141 (void) sprintf(get_line(0, 0), "Disk Transfers:"); in detail_stats() 164 (void) sprintf(get_line(0, 0), "CPU Times:"); in detail_statsswtch() 170 (void) sprintf(get_line(0, 0), "Disk Transfers:"); in detail_statsswtch() 200 (void) sprintf(get_line(0, 0), "CPU Times:"); in detail_statstime() 206 (void) sprintf(get_line(0, 0), "Disk Transfers:"); in detail_statstime() 239 (void) sprintf(get_line(0, 0), "CPU Times:"); in detail_statsvar() 242 (void) sprintf(get_line(0, 0), in detail_statsvar() 246 (void) sprintf(get_line(0, 0), "Disk Transfers:"); in detail_statsvar() [all …]
|
H A D | snoop_tcp.c | 141 (void) sprintf(get_line((char *)(uintptr_t)tcp->th_sport - in interpret_tcp() 155 (void) sprintf(get_line((char *)(uintptr_t)tcp->th_dport - in interpret_tcp() 158 (void) sprintf(get_line((char *)(uintptr_t)tcp->th_seq - in interpret_tcp() 161 (void) sprintf(get_line((char *)(uintptr_t)tcp->th_ack - dlc_header, 4), in interpret_tcp() 164 (void) sprintf(get_line(((char *)(uintptr_t)tcp->th_ack - dlc_header) + in interpret_tcp() 166 (void) sprintf(get_line(((char *)(uintptr_t)tcp->th_flags - in interpret_tcp() 168 (void) sprintf(get_line(((char *)(uintptr_t)tcp->th_flags - in interpret_tcp() 172 (void) sprintf(get_line(((char *)(uintptr_t)tcp->th_flags - in interpret_tcp() 176 get_line(((char *)(uintptr_t)tcp->th_flags - dlc_header) + 4, 1), in interpret_tcp() 179 (void) sprintf(get_line(((char *)(uintptr_t)tcp->th_flags - in interpret_tcp() [all …]
|
H A D | snoop_ether.c | 270 (void) sprintf(get_line(0, 0), in interpret_ether() 275 (void) sprintf(get_line(0, 0), in interpret_ether() 279 (void) sprintf(get_line(0, 6), in interpret_ether() 283 (void) sprintf(get_line(6, 6), in interpret_ether() 288 (void) sprintf(get_line(0, 0), in interpret_ether() 290 (void) sprintf(get_line(0, 0), in interpret_ether() 294 (void) sprintf(get_line(12, 2), in interpret_ether() 298 (void) snprintf(get_line(0, 0), in interpret_ether() 305 (void) sprintf(get_line(12, 2), in interpret_ether() 927 (void) sprintf(get_line(0, 0), in interpret_tr() [all …]
|
H A D | snoop_pmap.c | 203 (void) sprintf(get_line(0, 0), 214 (void) sprintf(get_line(0, 0), 219 (void) sprintf(get_line(0, 0), 226 (void) sprintf(get_line(0, 0), 229 (void) sprintf(get_line(0, 0), 231 (void) sprintf(get_line(0, 0), 305 (void) sprintf(get_line(0, 0), in show_pmaplist() 311 (void) sprintf(get_line(0, 0), " Program Version Protocol Port"); in show_pmaplist() 318 (void) sprintf(get_line(0, 0), in show_pmaplist() 324 (void) sprintf(get_line(0, 0), " %d maps", maps); in show_pmaplist() [all …]
|