/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/ifconfig/ |
H A D | ifconfig.c | 417 af = lifr.lifr_addr.ss_family = afp->af_af; in main() 890 lifr->lifr_addr = g_netmask; in set_mask_lifreq() 902 lifr->lifr_addr = *mask; in set_mask_lifreq() 905 lifr->lifr_addr = g_netmask; in set_mask_lifreq() 912 lifr->lifr_addr = *mask; in set_mask_lifreq() 1007 prefixlen = mask2plen((struct sockaddr *)&lifr.lifr_addr); in setifaddr() 1033 sav_netmask = lifr1.lifr_addr; in setifaddr() 1057 lifr.lifr_addr = laddr; in setifaddr() 1058 lifr.lifr_addr.ss_family = afp->af_af; in setifaddr() 1066 lifr.lifr_addr = sav_netmask; in setifaddr() [all …]
|
/titanic_41/usr/src/cmd/svr4pkg/libinst/ |
H A D | is_local_host.c | 116 #define lifraddrp(lifrp) ((lifrp->lifr_addr.ss_family == AF_INET6) ? \ in is_local_if() 117 (void *) &((struct sockaddr_in6 *)&lifrp->lifr_addr)->sin6_addr : \ in is_local_if() 118 (void *) &((struct sockaddr_in *)&lifrp->lifr_addr)->sin_addr) in is_local_if() 123 if (lifrp->lifr_addr.ss_family != hp->h_addrtype) { in is_local_if()
|
/titanic_41/usr/src/lib/gss_mechs/mech_krb5/krb5/os/ |
H A D | foreachaddr.c | 292 if (lifr2->lifr_addr.ss_family == lifr->lifr_addr.ss_family in foreach_localaddr() 297 && !memcmp (&lifr2->lifr_addr, &lifr->lifr_addr, in foreach_localaddr() 305 if ((*pass1fn) (data, ss2sa (&lifr->lifr_addr))) in foreach_localaddr() 335 if ((*pass2fn) (data, ss2sa (&lifr->lifr_addr))) in foreach_localaddr()
|
H A D | localaddr.c | 604 if (lifr2->lifr_addr.ss_family == lifr->lifr_addr.ss_family in foreach_localaddr() 609 && !memcmp (&lifr2->lifr_addr, &lifr->lifr_addr, in foreach_localaddr() 617 if ((*pass1fn) (data, ss2sa (&lifr->lifr_addr))) in foreach_localaddr() 647 if ((*pass2fn) (data, ss2sa (&lifr->lifr_addr))) in foreach_localaddr()
|
/titanic_41/usr/src/lib/libsocket/inet/ |
H A D | getifaddrs.c | 132 lifr_af = lifrp->lifr_addr.ss_family; in getallifaddrs() 166 (void) memcpy(curr->ifa_addr, &lifrp->lifr_addr, in getallifaddrs() 175 (void) memcpy(curr->ifa_netmask, &lifrl.lifr_addr, in getallifaddrs() 186 (void) memcpy(curr->ifa_dstaddr, &lifrl.lifr_addr, in getallifaddrs() 195 (void) memcpy(curr->ifa_broadaddr, &lifrl.lifr_addr, in getallifaddrs()
|
/titanic_41/usr/src/lib/libipadm/common/ |
H A D | ipadm_ndpd.c | 168 sin6 = (struct sockaddr_in6 *)&lifr.lifr_addr; in i_ipadm_create_linklocal() 171 bzero(&lifr.lifr_addr, sizeof (lifr.lifr_addr)); in i_ipadm_create_linklocal() 173 (struct sockaddr *)&lifr.lifr_addr); in i_ipadm_create_linklocal() 212 sin6 = (struct sockaddr_in6 *)&lifr.lifr_addr; in i_ipadm_create_linklocal()
|
H A D | ipadm_addr.c | 933 (void) memcpy(&lifr.lifr_addr, &netmask, sizeof (netmask)); in i_ipadm_set_prefixlen() 1115 addr = (SIN(&lifr.lifr_addr))->sin_addr.s_addr; in i_ipadm_get_broadcast() 1144 sin = SIN(&lifr.lifr_addr); in i_ipadm_get_broadcast() 1209 &lifr.lifr_addr, &prefixlen); in i_ipadm_get_prefixlen() 1589 bzero(&lifr.lifr_addr, sizeof (lifr.lifr_addr)); in i_ipadm_delete_addr() 1590 lifr.lifr_addr.ss_family = addr->ipadm_af; in i_ipadm_delete_addr() 2316 *exists = !sockaddrunspec((struct sockaddr *)&lifr.lifr_addr); in i_ipadm_addr_exists_on_if() 2568 if (sockaddrcmp(&lifr.lifr_addr, &addr->ipadm_static_addr)) in ipadm_create_addr() 2683 lifr.lifr_addr = *mask; in i_ipadm_create_addr() 2688 lifr.lifr_addr = *addr; in i_ipadm_create_addr() [all …]
|
H A D | ipadm_if.c | 146 s = (lifrp->lifr_addr.ss_family == AF_INET) ? in i_ipadm_active_if_info() 730 bzero(&lifr.lifr_addr, sizeof (lifr.lifr_addr)); in i_ipadm_plumb_if() 731 lifr.lifr_addr.ss_family = af; in i_ipadm_plumb_if()
|
/titanic_41/usr/src/lib/print/libpapi-common/common/ |
H A D | misc.c | 143 switch (r->lifr_addr.ss_family) { in local_interfaces() 146 (struct sockaddr_in *)&r->lifr_addr; in local_interfaces() 153 (struct sockaddr_in6 *)&r->lifr_addr; in local_interfaces()
|
/titanic_41/usr/src/cmd/cmd-inet/usr.lib/mdnsd/ |
H A D | mDNSUNP.c | 280 if (lifr->lifr_addr.ss_family == AF_INET) { in select_src_ifi_info_solaris() 283 sinptr = (struct sockaddr_in *) &lifr->lifr_addr; in select_src_ifi_info_solaris() 398 if (lifrp->lifr_addr.ss_family != family) in get_ifi_info_solaris() 438 assert((best_lifr->lifr_addr.ss_family == AF_INET6) || in get_ifi_info_solaris() 439 (best_lifr->lifr_addr.ss_family == AF_INET)); in get_ifi_info_solaris() 441 switch (best_lifr->lifr_addr.ss_family) { in get_ifi_info_solaris() 445 sinptr6 = (struct sockaddr_in6 *) &best_lifr->lifr_addr; in get_ifi_info_solaris() 462 sinptr = (struct sockaddr_in *) &best_lifr->lifr_addr; in get_ifi_info_solaris() 483 sinptr = (struct sockaddr_in *) &lifrcopy.lifr_addr; in get_ifi_info_solaris()
|
/titanic_41/usr/src/cmd/cmd-inet/sbin/dhcpagent/ |
H A D | interface.c | 450 ASSIGN_ADDR(lif_addr, lif_v6addr, lifr_addr); in insert_lif() 460 ASSIGN_ADDR(lif_netmask, lif_v6mask, lifr_addr); in insert_lif() 691 (struct sockaddr_in6 *)&lifr.lifr_addr; in checkaddr() 703 (struct sockaddr_in *)&lifr.lifr_addr; in checkaddr() 881 (void) memset(&lifr.lifr_addr, 0, sizeof (lifr.lifr_addr)); in canonize_lif() 884 (struct sockaddr_in6 *)&lifr.lifr_addr; in canonize_lif() 890 (struct sockaddr_in *)&lifr.lifr_addr; in canonize_lif() 944 ((struct sockaddr_in *)&lifr.lifr_addr)-> in canonize_lif() 989 sin6 = (struct sockaddr_in6 *)&lifr.lifr_addr; in plumb_lif() 1447 ((struct sockaddr_in *)&lifr.lifr_addr)->sin_addr.s_addr; in open_ip_lif() [all …]
|
/titanic_41/usr/src/lib/libresolv2/common/irs/ |
H A D | gethostent.c | 497 #define lifr_addr iflr_addr macro 565 if (lifreq.lifr_addr.sa_len == 0) 566 lifreq.lifr_addr.sa_len = 16; 570 if (lifreq.lifr_addr.sa_len > sizeof (struct sockaddr)) 571 cpsize += (int)lifreq.lifr_addr.sa_len - 574 cpsize = sizeof lifreq.lifr_name + lifreq.lifr_addr.sa_len; 584 switch (lifreq.lifr_addr.ss_family) { 589 &lifreq.lifr_addr)->sin_addr, 605 &lifreq.lifr_addr)->sin6_addr, sizeof in6);
|
/titanic_41/usr/src/lib/libinetutil/common/ |
H A D | ifaddrlist.c | 158 sin = (struct sockaddr_in *)&lifrp->lifr_addr; in ifaddrlist() 161 sin6 = (struct sockaddr_in6 *)&lifrp->lifr_addr; in ifaddrlist()
|
H A D | ifaddrlistx.c | 115 addr = lifrp->lifr_addr; in ifaddrlistx()
|
/titanic_41/usr/src/cmd/cmd-inet/sbin/netstrategy/ |
H A D | netstrategy.c | 202 isv4 = ifr->lifr_addr.ss_family == AF_INET; in get_first_interface() 242 sin = (struct sockaddr_in *)&ifr->lifr_addr; in get_first_interface()
|
/titanic_41/usr/src/uts/common/io/ib/mgt/ibcm/ |
H A D | ibcm_arp.c | 406 lifrp->lifr_addr.ss_family, lifrp->lifr_type); in ibcm_arp_get_ibd_ipaddr() 488 switch (lifrp->lifr_addr.ss_family) { in ibcm_arp_get_ibd_ipaddr() 491 bcopy(&lifrp->lifr_addr, &ipp->ip_cm_sin, in ibcm_arp_get_ibd_ipaddr() 497 bcopy(&lifrp->lifr_addr, &ipp->ip_cm_sin6, in ibcm_arp_get_ibd_ipaddr()
|
/titanic_41/usr/src/lib/udapl/udapl_tavor/common/ |
H A D | dapl_name_service.c | 558 netmask = ((struct sockaddr_in *)&lifreq.lifr_addr)-> in dapls_ns_subnet_match_v4() 573 netaddr = ((struct sockaddr_in *)&lifreq.lifr_addr)-> in dapls_ns_subnet_match_v4() 603 (void) dapl_os_memcpy(&netmask_sock, &lifreq.lifr_addr, in dapls_ns_subnet_match_v6() 619 local_addr = (uchar_t *)&((struct sockaddr_in6 *)&lifreq.lifr_addr)-> in dapls_ns_subnet_match_v6()
|
/titanic_41/usr/src/cmd/zoneadmd/ |
H A D | vplat.c | 1914 if ((s = socket(lifrp->lifr_addr.ss_family, SOCK_DGRAM, 0)) < in unconfigure_shared_network_interfaces() 2017 if (lifr->lifr_addr.ss_family == AF_INET) { in who_is_using() 2021 sin4 = (struct sockaddr_in *)&lifr->lifr_addr; in who_is_using() 2027 sin6 = (struct sockaddr_in6 *)&lifr->lifr_addr; in who_is_using() 2169 af = lifr.lifr_addr.ss_family; in configure_one_interface() 2171 in4 = ((struct sockaddr_in *)(&lifr.lifr_addr))->sin_addr; in configure_one_interface() 2185 laddr = lifr.lifr_addr; in configure_one_interface() 2188 (void) memset(&lifr.lifr_addr, 0, sizeof (lifr.lifr_addr)); in configure_one_interface() 2251 (void) memcpy(&lifr.lifr_addr, &netmask4, in configure_one_interface() 2267 (void) memcpy(&lifr.lifr_addr, &netmask6, in configure_one_interface() [all …]
|
/titanic_41/usr/src/cmd/cmd-inet/usr.lib/in.ndpd/ |
H A D | tables.c | 263 sin6 = (struct sockaddr_in6 *)&lifr.lifr_addr; in phyint_init_from_k() 291 sin6 = (struct sockaddr_in6 *)&lifr.lifr_addr; in phyint_init_from_k() 1212 if (lifr.lifr_addr.ss_family != AF_INET6) { in prefix_init_from_k() 1217 sin6 = (struct sockaddr_in6 *)&lifr.lifr_addr; in prefix_init_from_k() 1464 lifr.lifr_addr.ss_family = AF_INET6; in prefix_update_dhcp() 1465 prefix_set(&((struct sockaddr_in6 *)&lifr.lifr_addr)->sin6_addr, in prefix_update_dhcp() 1532 lifr.lifr_addr.ss_family = AF_UNSPEC; in prefix_update_k() 1583 lifr.lifr_addr.ss_family = AF_UNSPEC; in prefix_update_k() 1601 sin6 = (struct sockaddr_in6 *)&lifr.lifr_addr; in prefix_update_k() 1647 sin6 = (struct sockaddr_in6 *)&lifr.lifr_addr; in prefix_update_k() [all …]
|
/titanic_41/usr/src/uts/common/io/ib/clients/rds/ |
H A D | rds_ioctl.c | 222 ifrp->ifr_addr = *(struct sockaddr *)&lifrp->lifr_addr; in rds_ioctl_copyin_done() 355 sinp = (struct sockaddr_in *)&lifrp->lifr_addr; in rds_verify_bind_address()
|
/titanic_41/usr/src/lib/smbsrv/libsmb/common/ |
H A D | smb_nic.c | 497 isv6 = (lifrr.lifr_addr.ss_family == AF_INET6); in smb_nic_getinfo() 499 sin6 = (struct sockaddr_in6 *)(&lifrr.lifr_addr); in smb_nic_getinfo() 503 sin = (struct sockaddr_in *)(&lifrr.lifr_addr); in smb_nic_getinfo() 524 sin = (struct sockaddr_in *)&lifrr.lifr_addr; in smb_nic_getinfo()
|
/titanic_41/usr/src/cmd/cmd-inet/usr.lib/ncaconfd/ |
H A D | ncaconfd.c | 384 lifr.lifr_addr.ss_family = AF_INET; in nca_setup() 510 if (lifr->lifr_addr.ss_family != AF_INET) in get_if_ip_addr() 514 sin = (struct sockaddr_in *)&lifr->lifr_addr; in get_if_ip_addr() 1230 lifr.lifr_addr.ss_family = AF_INET; in daemon_work()
|
/titanic_41/usr/src/lib/libnsl/nss/ |
H A D | netdir_inet_sundry.c | 393 if (lifr->lifr_addr.ss_family != AF_INET) in get_if_info() 397 ((struct sockaddr_in *)&lifr->lifr_addr)->sin_addr; in get_if_info() 410 ((struct sockaddr_in *)&lifr->lifr_addr)->sin_addr; in get_if_info()
|
/titanic_41/usr/src/cmd/fs.d/nfs/statd/ |
H A D | sm_proc.c | 1061 af = lifrp->lifr_addr.ss_family; in merge_hosts() 1082 sa = (struct sockaddr_storage *)&(lifr.lifr_addr); in merge_hosts() 1085 sin = (struct sockaddr_in *)&lifr.lifr_addr; in merge_hosts() 1089 sin6 = (struct sockaddr_in6 *)&lifr.lifr_addr; in merge_hosts()
|
/titanic_41/usr/src/uts/common/inet/kifconf/ |
H A D | kifconf.c | 190 buf = (char *)&lifr.lifr_addr; in kifioctl()
|