Searched refs:lifrl (Results 1 – 5 of 5) sorted by relevance
/titanic_41/usr/src/lib/libsocket/inet/ |
H A D | getifaddrs.c | 96 struct lifreq lifrl; in getallifaddrs() local 130 (void) strncpy(lifrl.lifr_name, lifrp->lifr_name, in getallifaddrs() 131 sizeof (lifrl.lifr_name)); in getallifaddrs() 138 if (ioctl(s, SIOCGLIFFLAGS, (caddr_t)&lifrl) < 0) in getallifaddrs() 140 if ((flags & LIFC_ENABLED) && !(lifrl.lifr_flags & IFF_UP)) in getallifaddrs() 159 curr->ifa_flags = lifrl.lifr_flags; in getallifaddrs() 170 if (ioctl(s, SIOCGLIFNETMASK, (caddr_t)&lifrl) < 0) in getallifaddrs() 175 (void) memcpy(curr->ifa_netmask, &lifrl.lifr_addr, in getallifaddrs() 180 if (ioctl(s, SIOCGLIFDSTADDR, (caddr_t)&lifrl) < 0) in getallifaddrs() 186 (void) memcpy(curr->ifa_dstaddr, &lifrl.lifr_addr, in getallifaddrs() [all …]
|
/titanic_41/usr/src/lib/libipadm/common/ |
H A D | ipadm_if.c | 89 struct lifreq lifrl; in i_ipadm_active_if_info() local 144 (void) strlcpy(lifrl.lifr_name, in i_ipadm_active_if_info() 145 lifrp->lifr_name, sizeof (lifrl.lifr_name)); in i_ipadm_active_if_info() 148 if (ioctl(s, SIOCGLIFFLAGS, (caddr_t)&lifrl) < 0) in i_ipadm_active_if_info() 150 if (lifrl.lifr_flags & IFF_BROADCAST) in i_ipadm_active_if_info() 152 if (lifrl.lifr_flags & IFF_MULTICAST) in i_ipadm_active_if_info() 154 if (lifrl.lifr_flags & IFF_POINTOPOINT) in i_ipadm_active_if_info() 156 if (lifrl.lifr_flags & IFF_VIRTUAL) in i_ipadm_active_if_info() 158 if (lifrl.lifr_flags & IFF_IPMP) in i_ipadm_active_if_info() 160 if (lifrl.lifr_flags & IFF_STANDBY) in i_ipadm_active_if_info() [all …]
|
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/ifconfig/ |
H A D | ifconfig.c | 1489 struct lifreq lifrl; /* local lifreq struct */ in setifflags() local 1539 (void) strlcpy(lifrl.lifr_name, name, LIFNAMSIZ); in setifflags() 1543 ioctl(s, SIOCGLIFGROUPNAME, &lifrl) == 0 && in setifflags() 1544 lifrl.lifr_groupname[0] != '\0') { in setifflags() 1547 (void) strlcpy(lifgr.gi_grname, lifrl.lifr_groupname, in setifflags() 1552 (void) strlcpy(lifrl.lifr_name, lifgr.gi_grifname, LIFNAMSIZ); in setifflags() 1553 if (ioctl(s, SIOCGLIFFLAGS, &lifrl) == -1) in setifflags() 1555 if (!(lifrl.lifr_flags & IFF_UP)) { in setifflags() 1556 lifrl.lifr_flags |= IFF_UP; in setifflags() 1557 if (ioctl(s, SIOCSLIFFLAGS, &lifrl) == -1) in setifflags() [all …]
|
/titanic_41/usr/src/lib/smbsrv/libsmb/common/ |
H A D | smb_nic.c | 608 struct lifreq lifrl; in smb_nic_hlist_sysget() local 674 (void) memset(&lifrl, 0, sizeof (lifrl)); in smb_nic_hlist_sysget() 675 (void) strlcpy(lifrl.lifr_name, lifrp->lifr_name, in smb_nic_hlist_sysget() 676 sizeof (lifrl.lifr_name)); in smb_nic_hlist_sysget() 678 if (ioctl(s4, SIOCGLIFFLAGS, (caddr_t)&lifrl) < 0) { in smb_nic_hlist_sysget() 680 (ioctl(s6, SIOCGLIFFLAGS, (caddr_t)&lifrl) < 0)) { in smb_nic_hlist_sysget() 687 if (lifrl.lifr_flags & IFF_LOOPBACK) { in smb_nic_hlist_sysget() 691 if ((lifrl.lifr_flags & IFF_UP) == 0) { in smb_nic_hlist_sysget()
|
/titanic_41/usr/src/cmd/zoneadmd/ |
H A D | vplat.c | 1875 struct lifreq *lifrp, lifrl; in unconfigure_shared_network_interfaces() local 1917 lifrl.lifr_name); in unconfigure_shared_network_interfaces() 1921 (void) memset(&lifrl, 0, sizeof (lifrl)); in unconfigure_shared_network_interfaces() 1922 (void) strncpy(lifrl.lifr_name, lifrp->lifr_name, in unconfigure_shared_network_interfaces() 1923 sizeof (lifrl.lifr_name)); in unconfigure_shared_network_interfaces() 1924 if (ioctl(s, SIOCGLIFZONE, (caddr_t)&lifrl) < 0) { in unconfigure_shared_network_interfaces() 1933 "network interface is bound", lifrl.lifr_name); in unconfigure_shared_network_interfaces() 1937 if (lifrl.lifr_zoneid == zone_id) { in unconfigure_shared_network_interfaces() 1938 if (ioctl(s, SIOCLIFREMOVEIF, (caddr_t)&lifrl) < 0) { in unconfigure_shared_network_interfaces() 1941 lifrl.lifr_name); in unconfigure_shared_network_interfaces()
|