/illumos-gate/usr/src/lib/libtsnet/common/ |
H A D | tsol_sgetrhent.c | 101 parse_address(tsol_rhent_t *rh, const char *addrbuf) in parse_address() argument 107 if (strchr(addrbuf, ':') == NULL) { in parse_address() 110 if (inet_pton(AF_INET, addrbuf, in parse_address() 116 inet_network(addrbuf)) != (in_addr_t)-1) { in parse_address() 129 if (inet_pton(AF_INET6, addrbuf, in parse_address() 169 char addrbuf[1024]; in rhstr_to_ent() local 211 if (len >= sizeof (addrbuf)) { in rhstr_to_ent() 215 (void) memset(addrbuf, '\0', sizeof (addrbuf)); in rhstr_to_ent() 216 (void) memcpy(addrbuf, address, len); in rhstr_to_ent() 232 (void) strlcpy(addrbuf, address, sizeof (addrbuf)); in rhstr_to_ent() [all …]
|
/illumos-gate/usr/src/lib/libnsl/nss/ |
H A D | gethostent.c | 111 char addrbuf[100]; /* Why 100? */ in __str2hostent() local 197 if (addrlen >= sizeof (addrbuf)) in __str2hostent() 200 (void) memcpy(addrbuf, addrstart, addrlen); in __str2hostent() 201 addrbuf[addrlen] = '\0'; in __str2hostent() 213 if ((addrp[i].s_addr = inet_addr(addrbuf)) == in __str2hostent() 224 if (strchr(addrbuf, ':') != 0) { in __str2hostent() 225 if (inet_pton(af, addrbuf, &addrp6[i]) != 1) in __str2hostent() 229 if ((in4.s_addr = inet_addr(addrbuf)) == in __str2hostent()
|
/illumos-gate/usr/src/lib/nsswitch/files/common/ |
H A D | getnetent.c | 54 char addrbuf[NSS_LINELEN_NETWORKS]; in check_addr() local 73 if (addrlen < sizeof (addrbuf)) { in check_addr() 74 (void) memcpy(addrbuf, addrstart, addrlen); in check_addr() 75 addrbuf[addrlen] = '\0'; in check_addr() 76 if ((linenet = inet_network(addrbuf)) == in check_addr()
|
H A D | netmasks.c | 54 char addrbuf[NSS_LINELEN_NETMASKS]; in check_addr() local 70 if (addrlen < sizeof (addrbuf)) { in check_addr() 71 (void) memcpy(addrbuf, addrstart, addrlen); in check_addr() 72 addrbuf[addrlen] = '\0'; in check_addr() 73 if ((lineaddr.s_addr = inet_addr(addrbuf)) == in check_addr()
|
H A D | gethostent.c | 136 char addrbuf[INET6_ADDRSTRLEN + 1]; in __nss_files_get_addr() local 138 if (addrlen >= sizeof (addrbuf)) in __nss_files_get_addr() 140 (void) memcpy(addrbuf, addrstart, addrlen); in __nss_files_get_addr() 141 addrbuf[addrlen] = '\0'; in __nss_files_get_addr() 145 if ((*addrpv4 = inet_addr(addrbuf)) == 0xffffffffU) in __nss_files_get_addr() 151 if (inet_pton(af, addrbuf, addrpv6) != 1) in __nss_files_get_addr() 154 if ((addr_ipv4.s_addr = inet_addr(addrbuf)) == in __nss_files_get_addr()
|
/illumos-gate/usr/src/lib/nsswitch/ldap/common/ |
H A D | gethostent6.c | 192 char addrbuf[INET6_ADDRSTRLEN + 1]; in getbyaddr() local 206 (void *)addrbuf, INET_ADDRSTRLEN) == NULL) { in getbyaddr() 210 if (inet_ntop(AF_INET6, (void *)&addr, (void *)addrbuf, in getbyaddr() 215 _F_GETHOSTS6BYADDR, addrbuf); in getbyaddr() 220 _F_GETHOSTS6BYADDR_SSD, addrbuf); in getbyaddr()
|
/illumos-gate/usr/src/cmd/krb5/krb5kdc/ |
H A D | network.c | 171 char addrbuf[56]; member 769 char addrbuf[46]; in process_packet() local 772 addr.contents, addrbuf, sizeof(addrbuf)) == 0) { in process_packet() 773 strcpy(addrbuf, "?"); in process_packet() 776 addrbuf, faddr.port); in process_packet() 819 newconn->u.tcp.addrbuf, sizeof(newconn->u.tcp.addrbuf), in accept_tcp_connection() 822 strcpy(newconn->u.tcp.addrbuf, "???"); in accept_tcp_connection() 825 p = newconn->u.tcp.addrbuf; in accept_tcp_connection() 826 end = p + sizeof(newconn->u.tcp.addrbuf); in accept_tcp_connection() 835 s, newconn->u.tcp.addrbuf); in accept_tcp_connection() [all …]
|
/illumos-gate/usr/src/lib/libipadm/common/ |
H A D | ipadm_persist.c | 235 char addrbuf[IPADM_STRSIZE]; in i_ipadm_intfid_nvp2dbline() local 251 (void) inet_ntop(AF_INET6, &in6addr, addrbuf, in i_ipadm_intfid_nvp2dbline() 252 sizeof (addrbuf)); in i_ipadm_intfid_nvp2dbline() 253 (void) strlcat(buf, addrbuf, buflen); in i_ipadm_intfid_nvp2dbline() 258 (void) snprintf(addrbuf, sizeof (addrbuf), "/%d,%s,%s", in i_ipadm_intfid_nvp2dbline() 260 return (strlcat(buf, addrbuf, buflen)); in i_ipadm_intfid_nvp2dbline() 274 char addrbuf[IPADM_STRSIZE]; in i_ipadm_dhcp_nvp2dbline() local 288 (void) snprintf(addrbuf, sizeof (addrbuf), "%d,%s", wait, in i_ipadm_dhcp_nvp2dbline() 290 return (strlcat(buf, addrbuf, buflen)); in i_ipadm_dhcp_nvp2dbline()
|
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/ |
H A D | mlsvc_util.c | 100 char addrbuf[INET6_ADDRSTRLEN]; in mlsvc_join() local 181 addrbuf, sizeof (addrbuf)) == NULL) in mlsvc_join() 182 strcpy(addrbuf, "?"); in mlsvc_join() 184 dxi.d_dci.dc_name, addrbuf); in mlsvc_join()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/bridged/ |
H A D | dlpi.c | 139 uchar_t addrbuf[DLPI_PHYSADDR_MAX]; in port_dlpi_open() local 200 rc = dlpi_get_physaddr(port->dlpi, DL_CURR_PHYS_ADDR, addrbuf, &alen); in port_dlpi_open() 211 (void) memcpy(port->mac_addr, addrbuf, ETHERADDRL); in port_dlpi_open()
|
/illumos-gate/usr/src/cmd/mdb/common/modules/klmmod/ |
H A D | klmmod.c | 684 char addrbuf[NLM_MAXADDRSTR]; member 788 if (nlm_netbuf_str(arg->addrbuf, NLM_MAXADDRSTR, &nh->nh_addr) < 0) in nlm_list_host_cb() 789 (void) strlcpy(arg->addrbuf, "?", sizeof (char)); in nlm_list_host_cb() 802 nlm_host_print(addr, nh, arg->namebuf, arg->addrbuf, in nlm_list_host_cb() 901 char addrbuf[NLM_MAXADDRSTR]; member 985 if (nlm_netbuf_str(arg->addrbuf, NLM_MAXADDRSTR, &nh->nh_addr) < 0) in nlm_locks_host_cb() 986 (void) strlcpy(arg->addrbuf, "?", sizeof (char)); in nlm_locks_host_cb() 997 nlm_host_print(addr, nh, arg->namebuf, arg->addrbuf, 0); in nlm_locks_host_cb()
|
/illumos-gate/usr/src/lib/libnsl/dial/ |
H A D | callers.c | 470 char addrbuf[ BUFSIZ ]; in tlicall() local 562 strecpy(addrbuf, dev[D_ARG], "\\")); in tlicall() 582 addrbuf[j] = NULLCHAR; in tlicall() 585 addrbuf[j] = dev[D_ARG][i]; in tlicall() 588 sndcall->addr.buf = addrbuf; in tlicall()
|
/illumos-gate/usr/src/uts/common/inet/sctp/ |
H A D | sctp_hash.c | 361 in6_addr_t **addrbuf = NULL, **faddrpp = NULL; in sctp_lookup_by_faddrs() local 414 addrbuf = (in6_addr_t **) in sctp_lookup_by_faddrs() 416 if (addrbuf == NULL) in sctp_lookup_by_faddrs() 418 faddrpp = addrbuf; in sctp_lookup_by_faddrs() 463 sctp = sctp_conn_match(addrbuf, nfaddr, dstp, ports, in sctp_lookup_by_faddrs() 467 for (faddrpp = addrbuf; nfaddr > 0; in sctp_lookup_by_faddrs() 476 kmem_free(addrbuf, totaddr * sizeof (in6_addr_t *)); in sctp_lookup_by_faddrs()
|
/illumos-gate/usr/src/uts/common/inet/ip/ |
H A D | tnet.c | 2050 char addrbuf[INET6_ADDRSTRLEN]; in tsol_check_interface_address() local 2113 (void) inet_ntop(af, addr, addrbuf, sizeof (addrbuf)); in tsol_check_interface_address() 2117 "CIPSO type for %s", ifname, addrbuf); in tsol_check_interface_address() 2121 "Change to CIPSO type for %s", ifname, addrbuf); in tsol_check_interface_address() 2126 "all-zones. Converted to CIPSO.", ifname, addrbuf); in tsol_check_interface_address() 2130 "instead of %d", ifname, addrbuf, in tsol_check_interface_address() 2141 addrbuf, tp->tpc_tp.tp_doi); in tsol_check_interface_address() 2145 "%s", ifname, zone->zone_name, addrbuf); in tsol_check_interface_address() 2169 "template for local addr %s", ifname, addrbuf); in tsol_check_interface_address()
|
H A D | ip_multi.c | 1352 char addrbuf[INET6_ADDRSTRLEN]; in ill_recover_multicast() local 1369 &ilm->ilm_v6addr, addrbuf, sizeof (addrbuf)))); in ill_recover_multicast() 1402 char addrbuf[INET6_ADDRSTRLEN]; in ill_leave_multicast() local 1419 &ilm->ilm_v6addr, addrbuf, sizeof (addrbuf)))); in ill_leave_multicast()
|
H A D | ip_ftable.c | 1241 char addrbuf[INET6_ADDRSTRLEN]; in ip_select_route() local 1244 inet_ntop(AF_INET6, &v6src, addrbuf, in ip_select_route() 1245 sizeof (addrbuf)))); in ip_select_route()
|
H A D | ip_ndp.c | 2552 char addrbuf[INET6_ADDRSTRLEN]; in nce_timer() local 2577 &sender4, addrbuf, sizeof (addrbuf)))); in nce_timer() 2580 &ncec->ncec_addr, addrbuf, sizeof (addrbuf)))); in nce_timer() 2634 &ncec->ncec_addr, addrbuf, sizeof (addrbuf)))); in nce_timer() 2696 &ncec->ncec_addr, addrbuf, sizeof (addrbuf)))); in nce_timer()
|
/illumos-gate/usr/src/cmd/bnu/ |
H A D | callers.c | 1048 char addrbuf[ BUFSIZ ]; local 1139 strecpy( addrbuf, dev[D_ARG], "\\" ) ); 1158 addrbuf[j] = NULLCHAR; 1162 addrbuf[j] = dev[D_ARG][i]; 1165 sndcall->addr.buf = addrbuf;
|
/illumos-gate/usr/src/lib/libslp/clib/ |
H A D | slp_net_utils.c | 356 char storebuf[SLP_NETDB_BUFSZ], addrbuf[INET6_ADDRSTRLEN], *cname; in slp_gethostbyaddr() local 362 cname = slp_ntop(addrbuf, INET6_ADDRSTRLEN, (const void *) addr); in slp_gethostbyaddr()
|
H A D | slp_net.c | 281 char addrbuf[INET6_ADDRSTRLEN], *cname; in slp_uc_udp_send() local 283 cname = slp_ntop(addrbuf, INET6_ADDRSTRLEN, in slp_uc_udp_send()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ |
H A D | in.telnetd.c | 2797 char *addrbuf = NULL; in doit() local 2803 addrbuf = (char *)malloc(wholen); in doit() 2804 if (addrbuf == NULL) in doit() 2808 free(addrbuf); in doit() 2812 (void) memcpy(addrbuf, (const void *)&sin->sin_addr, wholen); in doit() 2819 rsaddr.contents = (krb5_octet *)addrbuf; in doit() 2831 char *addrbuf = NULL; in doit() local 2840 addrbuf = (char *)malloc(wholen); in doit() 2841 if (addrbuf == NULL) in doit() 2846 free(addrbuf); in doit() [all …]
|
/illumos-gate/usr/src/common/iscsit/ |
H A D | iscsit_common.c | 85 char addrbuf[NI_MAXHOST + NI_MAXSERV + 1]; in it_common_convert_sa() local 105 (void) strlcpy(addrbuf, arg, sizeof (addrbuf)); in it_common_convert_sa() 107 addr_str = addrbuf; in it_common_convert_sa()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ipadm/ |
H A D | ipadm.c | 1877 char addrbuf[MAXPROPVALLEN]; in print_sa_cb() local 1973 bzero(addrbuf, sizeof (addrbuf)); in print_sa_cb() 2000 addrbuf, sizeof (addrbuf)); in print_sa_cb() 2005 (void) snprintf(buf, bufsize, "%s->%s", addrbuf, in print_sa_cb() 2008 (void) snprintf(buf, bufsize, "%s%s", addrbuf, in print_sa_cb()
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/ |
H A D | sendto_kdc.c | 130 char addrbuf[NI_MAXHOST], portbuf[NI_MAXSERV]; in krb5int_debug_fprint() local 239 addrbuf, sizeof (addrbuf), in krb5int_debug_fprint() 247 sprintf(tmpbuf + strlen(tmpbuf), " %s.%s", addrbuf, portbuf); in krb5int_debug_fprint()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/inetd/ |
H A D | inetd.c | 1222 static char addrbuf[sizeof ("ffffffff.65536")]; in expand_address() local 1246 addrbuf[0] = '\0'; in expand_address() 1252 (void) snprintf(addrbuf, sizeof (addrbuf), "%x.%hu", in expand_address() 1255 ret[1] = addrbuf; in expand_address()
|