/titanic_44/usr/src/cmd/svr4pkg/libinst/ |
H A D | is_local_host.c | 79 struct lifreq *lifrp; in is_local_if() local 116 #define lifraddrp(lifrp) ((lifrp->lifr_addr.ss_family == AF_INET6) ? \ in is_local_if() argument 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() 120 for (lifrp = lifc.lifc_req, in is_local_if() 122 nif > 0; nif--, lifrp++) { in is_local_if() 123 if (lifrp->lifr_addr.ss_family != hp->h_addrtype) { in is_local_if() 127 (void) strncpy(lifr.lifr_name, lifrp->lifr_name, in is_local_if() 137 if (memcmp(hp->h_addr_list[nha], lifraddrp(lifrp), in is_local_if()
|
/titanic_44/usr/src/uts/common/io/ib/clients/rds/ |
H A D | rds_ioctl.c | 84 rds_capable_interface(struct lifreq *lifrp) in rds_capable_interface() argument 91 if (lifrp->lifr_type == IFT_IB) in rds_capable_interface() 98 (void) strlcpy(ifname, lifrp->lifr_name, LIFNAMSIZ); in rds_capable_interface() 166 struct lifreq *lifrp; in rds_ioctl_copyin_done() local 173 for (lifrp = lifc.lifc_req, i = 0; i < nifs; i++, lifrp++) { in rds_ioctl_copyin_done() 174 if (strlen(lifrp->lifr_name) <= IFNAMSIZ && in rds_ioctl_copyin_done() 175 rds_capable_interface(lifrp)) { in rds_ioctl_copyin_done() 192 struct lifreq *lifrp; in rds_ioctl_copyin_done() local 211 for (lifrp = lifc.lifc_req, i = 0; i < nifs && in rds_ioctl_copyin_done() 212 MBLKTAIL(mp1) >= sizeof (struct ifreq); i++, lifrp++) { in rds_ioctl_copyin_done() [all …]
|
/titanic_44/usr/src/lib/libinetutil/common/ |
H A D | ifaddrlist.c | 61 struct lifreq *lifrp; in ifaddrlist() local 131 for (lifrp = lifc.lifc_req, i = 0; i < nlifr; i++, lifrp++) { in ifaddrlist() 132 (void) strlcpy(al->device, lifrp->lifr_name, LIFNAMSIZ); in ifaddrlist() 134 if (ioctl(fd, SIOCGLIFFLAGS, lifrp) == -1) { in ifaddrlist() 140 al->flags = lifrp->lifr_flags; in ifaddrlist() 142 if (ioctl(fd, SIOCGLIFINDEX, lifrp) == -1) { in ifaddrlist() 148 al->index = lifrp->lifr_index; in ifaddrlist() 150 if (ioctl(fd, SIOCGLIFADDR, lifrp) == -1) { in ifaddrlist() 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 | 45 struct lifreq *lifrp; in ifaddrlistx() local 105 for (lifrp = lifc.lifc_req, i = 0; i < nlifr; i++, lifrp++) { in ifaddrlistx() 106 if ((cp = strchr(lifrp->lifr_name, ':')) != NULL) in ifaddrlistx() 109 if (strcmp(lifrp->lifr_name, ifname) != 0) in ifaddrlistx() 115 addr = lifrp->lifr_addr; in ifaddrlistx() 117 if (ioctl(isv6 ? s6 : s4, SIOCGLIFFLAGS, lifrp) == -1) { in ifaddrlistx() 123 if (set != 0 && ((lifrp->lifr_flags & set) == 0) || in ifaddrlistx() 124 (lifrp->lifr_flags & clear) != 0) in ifaddrlistx() 133 (void) strlcpy(ifaddrp->ia_name, lifrp->lifr_name, LIFNAMSIZ); in ifaddrlistx() 134 ifaddrp->ia_flags = lifrp->lifr_flags; in ifaddrlistx()
|
/titanic_44/usr/src/lib/libsocket/inet/ |
H A D | interface_id.c | 116 struct lifreq *lifrp; in if_indextoname() local 180 lifrp = lifc.lifc_req; in if_indextoname() 182 for (n = lifc.lifc_len / sizeof (struct lifreq); n > 0; n--, lifrp++) { in if_indextoname() 191 index = if_nametoindex(lifrp->lifr_name); in if_indextoname() 196 size = strcspn(lifrp->lifr_name, in if_indextoname() 198 lifrp->lifr_name[size] = '\0'; in if_indextoname() 200 (void) strncpy(ifname, lifrp->lifr_name, size + 1); in if_indextoname() 225 struct lifreq *lifrp; in if_nameindex() local 267 lifrp = lifc.lifc_req; in if_nameindex() 285 for (n = numifs; n > 0; n--, lifrp++) { in if_nameindex() [all …]
|
H A D | getifaddrs.c | 95 struct lifreq *lifrp; in getallifaddrs() local 125 lifrp = buf; in getallifaddrs() 127 for (n = 0; n < numifs; n++, lifrp++) { in getallifaddrs() 130 (void) strncpy(lifrl.lifr_name, lifrp->lifr_name, in getallifaddrs() 132 lifr_af = lifrp->lifr_addr.ss_family; in getallifaddrs() 160 if ((curr->ifa_name = strdup(lifrp->lifr_name)) == NULL) in getallifaddrs() 166 (void) memcpy(curr->ifa_addr, &lifrp->lifr_addr, in getallifaddrs()
|
/titanic_44/usr/src/uts/common/io/ib/mgt/ibcm/ |
H A D | ibcm_arp.c | 382 struct lifreq *lifrp, lifr_copy; in ibcm_arp_get_ibd_ipaddr() local 398 for (lifrp = lifc.lifc_req, i = 0; i < nifs; i++, lifrp++) { in ibcm_arp_get_ibd_ipaddr() 400 if (lifrp->lifr_type != IFT_IB) in ibcm_arp_get_ibd_ipaddr() 405 "lifr_type : 0x%lX", lifrp->lifr_name, in ibcm_arp_get_ibd_ipaddr() 406 lifrp->lifr_addr.ss_family, lifrp->lifr_type); in ibcm_arp_get_ibd_ipaddr() 408 (void) strlcpy(ifname, lifrp->lifr_name, LIFNAMSIZ); in ibcm_arp_get_ibd_ipaddr() 411 lifr_copy = *lifrp; in ibcm_arp_get_ibd_ipaddr() 425 lifr_copy = *lifrp; in ibcm_arp_get_ibd_ipaddr() 436 lifr_copy = *lifrp; in ibcm_arp_get_ibd_ipaddr() 448 lifr_copy = *lifrp; in ibcm_arp_get_ibd_ipaddr() [all …]
|
/titanic_44/usr/src/cmd/cmd-inet/sbin/dhcpagent/ |
H A D | interface.c | 1712 struct lifreq *lifrp, *lifrmax; in remove_v6_strays() local 1742 lifc.lifc_len = numifs * sizeof (*lifrp); in remove_v6_strays() 1743 lifrp = realloc(lifc.lifc_buf, lifc.lifc_len); in remove_v6_strays() 1744 if (lifrp == NULL) { in remove_v6_strays() 1750 lifc.lifc_buf = (caddr_t)lifrp; in remove_v6_strays() 1753 lifc.lifc_len < numifs * sizeof (*lifrp)) in remove_v6_strays() 1764 lifrmax = lifrp + lifc.lifc_len / sizeof (*lifrp); in remove_v6_strays() 1765 for (; lifrp < lifrmax; lifrp++) { in remove_v6_strays() 1769 if (ioctl(v6_sock_fd, SIOCGLIFFLAGS, lifrp) == -1) in remove_v6_strays() 1771 flags = lifrp->lifr_flags; in remove_v6_strays() [all …]
|
/titanic_44/usr/src/cmd/cmd-inet/usr.sbin/in.routed/ |
H A D | if.c | 1042 struct lifreq *lifrp, *lifrp_lim; in ifscan() local 1123 lifrp = lifc.lifc_req; in ifscan() 1124 lifrp_lim = lifrp + lifc.lifc_len / sizeof (*lifrp); in ifscan() 1125 for (; lifrp < lifrp_lim; lifrp++) { in ifscan() 1129 (void) strlcpy(ifs.int_name, lifrp->lifr_name, in ifscan() 1133 ifs.int_addr = ((struct sockaddr_in *)&lifrp->lifr_addr)-> in ifscan() 1136 if (ioctl(sock, SIOCGLIFFLAGS, lifrp) == -1) { in ifscan() 1144 ifs.int_if_flags = lifrp->lifr_flags; in ifscan() 1165 if (ioctl(sock, SIOCGLIFINDEX, lifrp) == -1) { in ifscan() 1173 ifindex = lifrp->lifr_index; in ifscan() [all …]
|
/titanic_44/usr/src/lib/smbsrv/libsmb/common/ |
H A D | smb_nic.c | 133 static boolean_t smb_duplicate_nic(smb_hostifs_t *iflist, struct lifreq *lifrp); 609 struct lifreq *lifrp; in smb_nic_hlist_sysget() local 664 lifrp = lifc.lifc_req; in smb_nic_hlist_sysget() 667 for (i = 0; i < ifnum; i++, lifrp++) { in smb_nic_hlist_sysget() 669 if ((iflist->if_num > 0) && smb_duplicate_nic(iflist, lifrp)) in smb_nic_hlist_sysget() 675 (void) strlcpy(lifrl.lifr_name, lifrp->lifr_name, in smb_nic_hlist_sysget() 694 ifname = strdup(lifrp->lifr_name); in smb_nic_hlist_sysget() 713 smb_duplicate_nic(smb_hostifs_t *iflist, struct lifreq *lifrp) in smb_duplicate_nic() argument 721 lifrp->lifr_name) == 0) in smb_duplicate_nic()
|
/titanic_44/usr/src/cmd/cmd-inet/usr.lib/in.ripngd/ |
H A D | startup.c | 61 struct lifreq *lifrp; in initifs() local 104 lifrp = lifc.lifc_req; in initifs() 105 for (n = lifc.lifc_len / sizeof (struct lifreq); n > 0; n--, lifrp++) { in initifs() 107 (void) strncpy(lifr.lifr_name, lifrp->lifr_name, in initifs()
|
/titanic_44/usr/src/uts/common/io/ |
H A D | strplumb.c | 287 getifflags(ldi_handle_t lh, struct lifreq *lifrp) in getifflags() argument 295 iocb.ic_dp = (char *)lifrp; in getifflags() 302 setifname(ldi_handle_t lh, struct lifreq *lifrp) in setifname() argument 310 iocb.ic_dp = (char *)lifrp; in setifname()
|
/titanic_44/usr/src/lib/libipadm/common/ |
H A D | ipadm_if.c | 88 struct lifreq *lifrp; in i_ipadm_active_if_info() local 104 lifrp = buf; in i_ipadm_active_if_info() 105 for (n = 0; n < numifs; n++, lifrp++) { in i_ipadm_active_if_info() 107 if (i_ipadm_get_lnum(lifrp->lifr_name) != 0) in i_ipadm_active_if_info() 114 if (ifname != NULL && strcmp(lifrp->lifr_name, ifname) != 0) in i_ipadm_active_if_info() 121 if (strcmp(lifrp->lifr_name, ifp->ifi_name) == 0) in i_ipadm_active_if_info() 130 (void) strlcpy(ifp->ifi_name, lifrp->lifr_name, in i_ipadm_active_if_info() 145 lifrp->lifr_name, sizeof (lifrl.lifr_name)); in i_ipadm_active_if_info() 146 s = (lifrp->lifr_addr.ss_family == AF_INET) ? in i_ipadm_active_if_info()
|
/titanic_44/usr/src/cmd/cmd-inet/usr.lib/mdnsd/ |
H A D | mDNSUNP.c | 354 struct lifreq *lifrp, *best_lifr; in get_ifi_info_solaris() local 393 lifrp = lifc.lifc_req; in get_ifi_info_solaris() 396 for (n = nlifr; n > 0; n--, lifrp++) { in get_ifi_info_solaris() 398 if (lifrp->lifr_addr.ss_family != family) in get_ifi_info_solaris() 405 if (strlcpy(ifname, lifrp->lifr_name, sizeof(ifname)) >= sizeof(ifname)) in get_ifi_info_solaris()
|
/titanic_44/usr/src/lib/libadutils/common/ |
H A D | addisc.c | 443 struct lifreq lifr, *lifrp; in find_subnets() local 449 lifrp = &lifr; in find_subnets() 500 for (i = 0, lifrp = lifc.lifc_req; i < n; i++, lifrp++) { in find_subnets() 501 if (ioctl(sock, SIOCGLIFFLAGS, lifrp) < 0) in find_subnets() 504 if ((lifrp->lifr_flags & IFF_UP) == 0) in find_subnets() 507 if (ioctl(sock, SIOCGLIFSUBNET, lifrp) < 0) in find_subnets() 510 prefix_len = lifrp->lifr_addrlen; in find_subnets() 513 &lifrp->lifr_addr)->sin_addr); in find_subnets()
|
/titanic_44/usr/src/uts/common/io/ib/clients/rdsv3/ |
H A D | af_rds.c | 269 struct lifreq lifr, *lifrp; in rdsv3_ioctl() local 302 for (lifrp = (struct lifreq *)buf, rc = 0; rc < numifs; in rdsv3_ioctl() 303 rc++, lifrp++) { in rdsv3_ioctl() 304 if (strlen(lifrp->lifr_name) <= IFNAMSIZ) { in rdsv3_ioctl()
|
H A D | rdsv3_impl.c | 79 rdsv3_capable_interface(struct lifreq *lifrp) in rdsv3_capable_interface() argument 88 if (lifrp->lifr_type == IFT_IB) in rdsv3_capable_interface() 95 (void) strlcpy(ifname, lifrp->lifr_name, LIFNAMSIZ); in rdsv3_capable_interface()
|
/titanic_44/usr/src/cmd/fs.d/nfs/statd/ |
H A D | sm_proc.c | 1022 struct lifreq *lifrp; in merge_hosts() local 1055 lifrp = lifc->lifc_req; in merge_hosts() 1056 for (n = lifc->lifc_len / sizeof (struct lifreq); n > 0; n--, lifrp++) { in merge_hosts() 1058 (void) strncpy(lifr.lifr_name, lifrp->lifr_name, in merge_hosts() 1061 af = lifrp->lifr_addr.ss_family; in merge_hosts()
|
/titanic_44/usr/src/cmd/cmd-inet/usr.sbin/ifconfig/ |
H A D | ifconfig.c | 575 struct lifreq *lifrp; in plumball() local 589 lifrp = lifc.lifc_req; in plumball() 590 for (n = lifc.lifc_len / sizeof (struct lifreq); n > 0; n--, lifrp++) { in plumball() 598 (void) strncpy(name, lifrp->lifr_name, sizeof (name)); in plumball() 1760 struct lifreq *lifrp; in find_all_interfaces() local 1789 for (n = 0, lifrp = lifcp->lifc_req; n < num_ni; n++, lifrp++) { in find_all_interfaces() 1791 (void) strncpy(lifrp->lifr_name, nip->ni_name, in find_all_interfaces() 2839 struct lifreq *lifrp; in ifstatus() local 2936 lifrp = lifs.lifs_req; in ifstatus() 2938 for (n = numifs; n > 0; n--, lifrp++) { in ifstatus() [all …]
|
/titanic_44/usr/src/cmd/cmd-inet/usr.lib/in.ndpd/ |
H A D | tables.h | 261 extern int phyint_get_lla(struct phyint *pi, struct lifreq *lifrp);
|
H A D | tables.c | 644 phyint_get_lla(struct phyint *pi, struct lifreq *lifrp) in phyint_get_lla() argument 654 (void) strlcpy(lifrp->lifr_name, pi->pi_name, LIFNAMSIZ); in phyint_get_lla() 655 sin6 = (struct sockaddr_in6 *)&(lifrp->lifr_nd.lnr_addr); in phyint_get_lla() 658 if (ioctl(pi->pi_sock, SIOCLIFGETND, lifrp) < 0) { in phyint_get_lla()
|
/titanic_44/usr/src/uts/common/rpc/ |
H A D | rpcib.c | 5239 rpcib_rdma_capable_interface(struct lifreq *lifrp) in rpcib_rdma_capable_interface() argument 5244 if (lifrp->lifr_type == IFT_IB) in rpcib_rdma_capable_interface() 5251 (void) strlcpy(ifname, lifrp->lifr_name, LIFNAMSIZ); in rpcib_rdma_capable_interface() 5333 struct lifreq *lifrp; in rpcib_get_ib_addresses() local 5357 for (lifrp = lifc.lifc_req, i = 0; i < nifs; i++, lifrp++) { in rpcib_get_ib_addresses() 5358 if (!rpcib_rdma_capable_interface(lifrp)) in rpcib_get_ib_addresses() 5361 if (lifrp->lifr_addr.ss_family == AF_INET) { in rpcib_get_ib_addresses() 5363 bcopy(&lifrp->lifr_addr, &sinp[addrs4->ri_count++], in rpcib_get_ib_addresses() 5365 } else if (lifrp->lifr_addr.ss_family == AF_INET6) { in rpcib_get_ib_addresses() 5367 bcopy(&lifrp->lifr_addr, &sin6p[addrs6->ri_count++], in rpcib_get_ib_addresses()
|
/titanic_44/usr/src/uts/common/sys/ib/clients/rdsv3/ |
H A D | rdsv3_impl.h | 348 boolean_t rdsv3_capable_interface(struct lifreq *lifrp);
|
/titanic_44/usr/src/cmd/zoneadmd/ |
H A D | vplat.c | 1875 struct lifreq *lifrp, lifrl; in unconfigure_shared_network_interfaces() local 1911 lifrp = lifc.lifc_req; in unconfigure_shared_network_interfaces() 1912 for (i = lifc.lifc_len / sizeof (struct lifreq); i > 0; i--, lifrp++) { in unconfigure_shared_network_interfaces() 1914 if ((s = socket(lifrp->lifr_addr.ss_family, SOCK_DGRAM, 0)) < in unconfigure_shared_network_interfaces() 1922 (void) strncpy(lifrl.lifr_name, lifrp->lifr_name, in unconfigure_shared_network_interfaces()
|
/titanic_44/usr/src/uts/common/inet/ip/ |
H A D | ip_if.c | 18159 struct lifreq *lifrp; in ip_ipmp_cleanup() local 18168 for (lifrp = lifc.lifc_req, i = 0; i < nifs; i++, lifrp++) { in ip_ipmp_cleanup() 18169 err = ip_ioctl(lh, SIOCGLIFFLAGS, lifrp, lifrsize, cr); in ip_ipmp_cleanup() 18172 "flags: error %d", lifrp->lifr_name, err); in ip_ipmp_cleanup() 18176 if (lifrp->lifr_flags & IFF_IPMP) { in ip_ipmp_cleanup() 18177 if ((lifrp->lifr_flags & (IFF_UP|IFF_DUPLICATE)) == 0) in ip_ipmp_cleanup() 18180 lifrp->lifr_flags &= ~IFF_UP; in ip_ipmp_cleanup() 18181 err = ip_ioctl(lh, SIOCSLIFFLAGS, lifrp, lifrsize, cr); in ip_ipmp_cleanup() 18185 "not be shutdown", lifrp->lifr_name, err); in ip_ipmp_cleanup() 18192 err = ip_ioctl(lh, SIOCGLIFFLAGS, lifrp, lifrsize, cr); in ip_ipmp_cleanup() [all …]
|