Home
last modified time | relevance | path

Searched refs:addrstr (Results 1 – 25 of 26) sorted by relevance

12

/illumos-gate/usr/src/cmd/smbsrv/fksmbd/
H A Dfksmbd_ksock.c36 char addrstr[INET6_ADDRSTRLEN]; in ksocket_bind_helper() local
52 addrstr, sizeof (addrstr)); in ksocket_bind_helper()
58 addrstr, sizeof (addrstr)); in ksocket_bind_helper()
73 familystr, addrstr, portstr); in ksocket_bind_helper()
78 argv[3] = addrstr; in ksocket_bind_helper()
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_igmp.c56 char addrstr[INET_ADDRSTRLEN]; in interpret_igmp() local
120 addrstr, INET_ADDRSTRLEN)); in interpret_igmp()
134 char addrstr[INET_ADDRSTRLEN]; in interpret_igmpv3qry() local
146 "Group = %s", inet_ntop(AF_INET, &qry->igmp3q_group, addrstr, in interpret_igmpv3qry()
156 inet_ntop(AF_INET, &src->s_addr, addrstr, INET_ADDRSTRLEN)); in interpret_igmpv3qry()
183 char addrstr[INET_ADDRSTRLEN]; in interpret_igmpv3rpt() local
202 &grh->grphdr_group.s_addr, addrstr, INET_ADDRSTRLEN), in interpret_igmpv3rpt()
214 " %s", inet_ntop(AF_INET, &src->s_addr, addrstr, in interpret_igmpv3rpt()
H A Dsnoop_rip.c60 char addrstr[15+1+15+1]; in interpret_rip() local
229 (void) strcpy(addrstr, "default"); in interpret_rip()
232 (void) strlcpy(addrstr, inet_ntoa(dst), in interpret_rip()
233 sizeof (addrstr)); in interpret_rip()
237 count = strlen(addrstr); in interpret_rip()
244 (void) snprintf(addrstr + count, in interpret_rip()
245 sizeof (addrstr) - count, in interpret_rip()
249 (void) snprintf(addrstr + count, in interpret_rip()
250 sizeof (addrstr) - count, in interpret_rip()
259 addrstr, in interpret_rip()
H A Dsnoop_icmp.c448 char addrstr[INET6_ADDRSTRLEN]; local
634 addrstr, INET6_ADDRSTRLEN));
639 addrstr, INET6_ADDRSTRLEN));
652 addrstr, INET6_ADDRSTRLEN),
668 addrstr, INET6_ADDRSTRLEN),
744 addrstr, INET6_ADDRSTRLEN));
759 mldg->mld_addr.s6_addr, addrstr, INET6_ADDRSTRLEN));
913 char addrstr[INET6_ADDRSTRLEN]; in interpret_mldv2qry() local
925 &qry->mld2q_addr.s6_addr, addrstr, INET6_ADDRSTRLEN)); in interpret_mldv2qry()
961 char addrstr[INET6_ADDRSTRLEN]; in interpret_mldv2rpt() local
[all …]
H A Dsnoop_ppp.c1264 char addrstr[INET_ADDRSTRLEN]; in opt_format_epdisc() local
1268 if (inet_ntop(AF_INET, addr, addrstr, INET_ADDRSTRLEN) != in opt_format_epdisc()
1270 (void) sprintf(get_line(0, 0), "Address = %s", addrstr); in opt_format_epdisc()
1275 char *addrstr; in opt_format_epdisc() local
1397 char addrstr[INET_ADDRSTRLEN]; in opt_format_ipaddresses() local
1402 addrstr); in opt_format_ipaddresses()
1410 addrstr); in opt_format_ipaddresses()
1518 char addrstr[INET_ADDRSTRLEN]; in opt_format_ipaddress() local
1522 (void) sprintf(get_line(0, 0), "Address = %s", addrstr); in opt_format_ipaddress()
1542 char addrstr[INET_ADDRSTRLEN]; in opt_format_mobileipv4() local
[all …]
H A Dsnoop_dhcpv6.c546 char addrstr[INET6_ADDRSTRLEN]; in show_address() local
550 (void) inet_ntop(AF_INET6, &addr, addrstr, sizeof (addrstr)); in show_address()
552 if (strcmp(hname, addrstr) == 0) { in show_address()
554 addrname, addrstr); in show_address()
557 "%s = %s (%s)", addrname, addrstr, hname); in show_address()
H A Dsnoop_ipaddr.c163 char addrstr[INET6_ADDRSTRLEN]; in ip6lookup() local
198 (void) inet_ntop(AF_INET6, ip6addr, addrstr, INET6_ADDRSTRLEN); in ip6lookup()
199 addname = addrstr; in ip6lookup()
H A Dsnoop_ospf6.c325 char addrstr[INET6_ADDRSTRLEN]; in interpret_ospf6_lsa() local
517 addrstr, INET6_ADDRSTRLEN); in interpret_ospf6_lsa()
520 ntohl(llsa->llsa_priority), addrstr, in interpret_ospf6_lsa()
528 "Link Local addr %d", addrstr); in interpret_ospf6_lsa()
/illumos-gate/usr/src/cmd/cmd-inet/lib/nwamd/
H A Dllp.c192 char *cp, *lasts, *lstr, *srcstr, *addrstr; in parse_llp_config() local
236 if ((addrstr = strtok_r(NULL, " \t", &lasts)) == NULL || in parse_llp_config()
237 atoi(addrstr) == 0) { /* crude check for number */ in parse_llp_config()
240 } else if ((addrstr = strdup(addrstr)) == NULL) { in parse_llp_config()
246 llp->llp_ipv4addrstr = addrstr; in parse_llp_config()
254 if ((addrstr = strtok_r(NULL, " \t", &lasts)) == NULL) { in parse_llp_config()
256 } else if ((addrstr = strdup(addrstr)) == NULL) { in parse_llp_config()
261 llp->llp_ipv6addrstr = addrstr; in parse_llp_config()
268 if ((addrstr = strtok_r(NULL, " \t", &lasts)) == NULL) { in parse_llp_config()
273 llp->llp_pri = atoi(addrstr); in parse_llp_config()
H A Dncu_ip.c864 char addrstr[INET6_ADDRSTRLEN]; in nwamd_ncu_handle_if_state_event() local
884 nwamd_sockaddr2str((struct sockaddr *)addr, addrstr, in nwamd_ncu_handle_if_state_event()
885 sizeof (addrstr)), addr_added ? "added" : "removed"); in nwamd_ncu_handle_if_state_event()
900 "addrinfo doesn't exist for %s", addrstr); in nwamd_ncu_handle_if_state_event()
924 "removing it", addrstr); in nwamd_ncu_handle_if_state_event()
961 "nothing to do", addrstr); in nwamd_ncu_handle_if_state_event()
1053 addrstr, ncu->ncu_name, flags); in nwamd_ncu_handle_if_state_event()
1071 addrstr, ncu->ncu_name); in nwamd_ncu_handle_if_state_event()
/illumos-gate/usr/src/lib/nsswitch/nis/common/
H A Dgetnetent.c59 char addrstr[16]; local
63 if (nettoa((int)argp->key.netaddr.net, addrstr, 16, &pnull) != 0)
65 rc = _nss_nis_lookup(be, argp, 1, "networks.byaddr", addrstr, 0);
74 addrstr, 0);
/illumos-gate/usr/src/uts/common/os/
H A Ddamap.c1025 char *addrstr; in dam_addr_activate() local
1038 char *, addrstr); in dam_addr_activate()
1063 char *, addrstr); in dam_addr_activate()
1069 char *, addrstr); in dam_addr_activate()
1079 char *addrstr; in dam_addr_deactivate() local
1084 char *, addrstr); in dam_addr_deactivate()
1121 char *, addrstr); in dam_deact_cleanup()
1251 char *addrstr; in dam_addr_release() local
1261 char *, addrstr); in dam_addr_release()
1280 char *, addrstr); in dam_addr_release()
[all …]
/illumos-gate/usr/src/lib/nsswitch/ldap/common/
H A Dgetnetent.c240 char addrstr[INET_ADDRSTRLEN], addrstr2[INET_ADDRSTRLEN]; in getbyaddr() local
245 if (nettoa((int)argp->key.netaddr.net, addrstr, addrstr2, in getbyaddr()
250 _F_GETNETBYADDR, addrstr, addrstr2); in getbyaddr()
255 _F_GETNETBYADDR_SSD, addrstr, addrstr2); in getbyaddr()
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/bridged/
H A Ddlpi.c142 char addrstr[ETHERADDRL * 3]; in port_dlpi_open() local
238 (void) _link_ntoa(port->mac_addr, addrstr, ETHERADDRL, in port_dlpi_open()
240 syslog(LOG_DEBUG, "got MAC address %s on %s", addrstr, in port_dlpi_open()
/illumos-gate/usr/src/cmd/fs.d/nfs/nfslog/
H A Dnfslog_ipaddr.c146 char addrstr[INET6_ADDRSTRLEN]; local
178 (void) inet_ntop(AF_INET6, ip6addr, addrstr, INET6_ADDRSTRLEN);
179 addname = addrstr;
/illumos-gate/usr/src/cmd/rcm_daemon/common/
H A Dip_rcm.c828 char addrstr[INET6_ADDRSTRLEN]; in ip_usage() local
903 if (!ip_addrstr(lif, addrstr, sizeof (addrstr))) in ip_usage()
906 (void) strlcat(buf, addrstr, bufsz); in ip_usage()
920 ip_addrstr(ip_lif_t *lif, char *addrstr, size_t addrsize) in ip_addrstr() argument
935 if (inet_ntop(af, addr, addrstr, addrsize) == NULL) { in ip_addrstr()
941 rcm_log_message(RCM_DEBUG, "IP addr := %s\n", addrstr); in ip_addrstr()
2163 char addrstr[INET6_ADDRSTRLEN]; in ip_get_addrlist() local
2187 if (!ip_addrstr(lif, addrstr, sizeof (addrstr))) { in ip_get_addrlist()
2192 addrlistsize = strlen(addrstr) + sizeof (RCM_STR_SUNW_IP); in ip_get_addrlist()
2201 RCM_STR_SUNW_IP, addrstr); in ip_get_addrlist()
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.routed/
H A Dmain.c760 char addrstr[INET_ADDRSTRLEN]; in rip_off() local
779 (void) strlcpy(addrstr, in rip_off()
781 sizeof (addrstr)); in rip_off()
789 addrstr, inet_ntoa(m.imr_interface), in rip_off()
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/nwamadm/
H A Dnwamadm.c1116 char addrstr[NWAM_MAX_VALUE_LEN]; in eventhandler() local
1123 addrstr, sizeof (addrstr)); in eventhandler()
1128 addrstr, sizeof (addrstr)); in eventhandler()
1134 addrstr, plen); in eventhandler()
/illumos-gate/usr/src/lib/libslp/clib/
H A Dslp_net_utils.c427 int slp_pton(const char *addrstr, void *addr) { in slp_pton() argument
428 return (inet_pton(AF_INET, addrstr, addr)); in slp_pton()
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/
H A Dtopo_digraph.c955 char *end, *addrstr, *estr; in path_fmri_str2nvl() local
966 addrstr = end + 1; in path_fmri_str2nvl()
973 if ((end = strchr(addrstr, '/')) == NULL) { in path_fmri_str2nvl()
985 pathinst = strtoull(addrstr, &estr, 16); in path_fmri_str2nvl()
/illumos-gate/usr/src/uts/common/io/urtw/
H A Durtw.c1077 addrstr[0] = addr & (1 << 7); in urtw_eprom_read32()
1078 addrstr[1] = addr & (1 << 6); in urtw_eprom_read32()
1079 addrstr[2] = addr & (1 << 5); in urtw_eprom_read32()
1080 addrstr[3] = addr & (1 << 4); in urtw_eprom_read32()
1081 addrstr[4] = addr & (1 << 3); in urtw_eprom_read32()
1082 addrstr[5] = addr & (1 << 2); in urtw_eprom_read32()
1083 addrstr[6] = addr & (1 << 1); in urtw_eprom_read32()
1084 addrstr[7] = addr & (1 << 0); in urtw_eprom_read32()
1087 addrstr[0] = addr & (1 << 5); in urtw_eprom_read32()
1088 addrstr[1] = addr & (1 << 4); in urtw_eprom_read32()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ifconfig/
H A Difconfig.c988 char addrstr[INET6_ADDRSTRLEN]; in setifaddr() local
992 (void) inet_ntop(AF_INET, &sin->sin_addr, addrstr, in setifaddr()
993 sizeof (addrstr)); in setifaddr()
996 (void) inet_ntop(AF_INET6, &sin6->sin6_addr, addrstr, in setifaddr()
997 sizeof (addrstr)); in setifaddr()
1010 addrstr, prefixlen); in setifaddr()
1821 char addrstr[INET6_ADDRSTRLEN]; in addif() local
1921 (void) inet_ntop(AF_INET, &sin->sin_addr, addrstr, in addif()
1922 sizeof (addrstr)); in addif()
1926 sizeof (addrstr)); in addif()
[all …]
/illumos-gate/usr/src/lib/libipadm/common/
H A Dipadm_addr.c1938 char addrstr[NI_MAXHOST + 5]; in ipadm_set_addr() local
1941 (void) snprintf(addrstr, sizeof (addrstr), "%s", astr); in ipadm_set_addr()
1942 if ((prefixlenstr = strchr(addrstr, '/')) != NULL) { in ipadm_set_addr()
1953 status = i_ipadm_resolve_addr(addrstr, af, &ipaddr->ipadm_static_addr); in ipadm_set_addr()
1955 (void) strlcpy(ipaddr->ipadm_static_aname, addrstr, in ipadm_set_addr()
2017 char addrstr[INET6_ADDRSTRLEN + 1]; in ipadm_set_interface_id() local
2023 (void) strlcpy(addrstr, interface_id, sizeof (addrstr)); in ipadm_set_interface_id()
2024 if ((cp = strchr(addrstr, '/')) == NULL) in ipadm_set_interface_id()
2028 if (inet_pton(AF_INET6, addrstr, &sin6->sin6_addr) == 1) { in ipadm_set_interface_id()
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/
H A Dipv6cp.c334 static char addrstr[26]; local
341 (void) inet_ntop(AF_INET6, &addr, addrstr, 26);
343 return addrstr;
/illumos-gate/usr/src/cmd/mdb/common/modules/ip/
H A Dip.c2878 char sbuf[DEFCOLS], addrstr[INET6_ADDRSTRLEN]; in ipif_format() local
2912 mdb_snprintf(addrstr, sizeof (addrstr), "%N", in ipif_format()
2916 mdb_snprintf(addrstr, sizeof (addrstr), "%I", in ipif_format()
2931 addrstr, mask_to_prefixlen(af, &ipif->ipif_v6net_mask)); in ipif_format()
2943 addrstr, mask_to_prefixlen(af, &ipif->ipif_v6net_mask)); in ipif_format()

12