Home
last modified time | relevance | path

Searched refs:lifn (Results 1 – 25 of 34) sorted by relevance

12

/titanic_44/usr/src/lib/libnsl/rpc/
H A Dcan_use_af.c47 struct lifnum lifn; in __can_use_af() local
52 lifn.lifn_family = af; in __can_use_af()
55 lifn.lifn_flags = IFF_UP & !(IFF_NOXMIT | IFF_DEPRECATED); in __can_use_af()
56 if (ioctl(fd, SIOCGLIFNUM, &lifn, sizeof (lifn)) < 0) in __can_use_af()
57 lifn.lifn_count = 0; in __can_use_af()
60 return (lifn.lifn_count); in __can_use_af()
/titanic_44/usr/src/cmd/fs.d/nfs/lib/
H A Dselfcheck.c118 struct lifnum lifn; in getmyaddrs() local
128 lifn.lifn_family = AF_UNSPEC; in getmyaddrs()
129 lifn.lifn_flags = 0; in getmyaddrs()
131 if (ioctl(sock, SIOCGLIFNUM, (char *)&lifn) < 0) { in getmyaddrs()
137 numifs = lifn.lifn_count; in getmyaddrs()
177 struct lifnum lifn; in Is_ipv6present() local
183 lifn.lifn_family = AF_INET6; in Is_ipv6present()
184 lifn.lifn_flags = 0; in Is_ipv6present()
185 if (ioctl(sock, SIOCGLIFNUM, (char *)&lifn) < 0) { in Is_ipv6present()
190 if (lifn.lifn_count == 0) in Is_ipv6present()
/titanic_44/usr/src/lib/libinetutil/common/
H A Difaddrlist.c60 struct lifnum lifn; in ifaddrlist() local
80 lifn.lifn_family = family; in ifaddrlist()
81 lifn.lifn_flags = flags; in ifaddrlist()
83 if (ioctl(fd, SIOCGLIFNUM, &lifn) == -1) { in ifaddrlist()
92 lifn.lifn_count += 4; in ifaddrlist()
96 lifc.lifc_len = lifn.lifn_count * sizeof (struct lifreq); in ifaddrlist()
113 if (nlifr >= lifn.lifn_count) in ifaddrlist()
H A Difaddrlistx.c44 struct lifnum lifn; in ifaddrlistx() local
70 lifn.lifn_family = AF_UNSPEC; in ifaddrlistx()
71 lifn.lifn_flags = flags; in ifaddrlistx()
73 if (ioctl(s4, SIOCGLIFNUM, &lifn) == -1) in ifaddrlistx()
80 lifn.lifn_count += 4; in ifaddrlistx()
84 lifc.lifc_len = lifn.lifn_count * sizeof (struct lifreq); in ifaddrlistx()
97 if (nlifr >= lifn.lifn_count) in ifaddrlistx()
/titanic_44/usr/src/lib/libsocket/inet/
H A Dinterface_id.c114 struct lifnum lifn; in if_indextoname() local
139 lifn.lifn_family = AF_UNSPEC; in if_indextoname()
140 lifn.lifn_flags = flags; in if_indextoname()
141 if (ioctl(s, SIOCGLIFNUM, (char *)&lifn) < 0) { in if_indextoname()
152 numifs = lifn.lifn_count + 10; in if_indextoname()
223 struct lifnum lifn; in if_nameindex() local
241 lifn.lifn_family = AF_UNSPEC; in if_nameindex()
242 lifn.lifn_flags = LIFC_NOXMIT | LIFC_TEMPORARY | LIFC_ALLZONES; in if_nameindex()
243 if (ioctl(s, SIOCGLIFNUM, (char *)&lifn) < 0) in if_nameindex()
245 numifs = lifn.lifn_count; in if_nameindex()
H A Dgetifaddrs.c224 struct lifnum lifn; in getallifs() local
230 lifn.lifn_family = af; in getallifs()
231 lifn.lifn_flags = lifc_flags; in getallifs()
235 if (ioctl(s, SIOCGLIFNUM, &lifn) < 0) in getallifs()
244 bufsize = (lifn.lifn_count + 4) * sizeof (struct lifreq); in getallifs()
258 if (*numifs >= (lifn.lifn_count + 4)) { in getallifs()
/titanic_44/usr/src/cmd/svr4pkg/libinst/
H A Dis_local_host.c77 struct lifnum lifn; in is_local_if() local
90 lifn.lifn_family = hp->h_addrtype; in is_local_if()
91 lifn.lifn_flags = LIFC_EXTERNAL_SOURCE; in is_local_if()
92 if (ioctl(s, SIOCGLIFNUM, (char *)&lifn) == -1) { in is_local_if()
97 bufsiz = lifn.lifn_count * sizeof (struct lifreq); in is_local_if()
/titanic_44/usr/src/uts/common/io/ib/mgt/ibcm/
H A Dibcm_arp.c307 struct lifnum lifn; in ibcm_do_lifconf() local
309 bzero(&lifn, sizeof (struct lifnum)); in ibcm_do_lifconf()
310 lifn.lifn_family = family_loc; in ibcm_do_lifconf()
311 lifn.lifn_flags = LIFC_NOXMIT | LIFC_TEMPORARY | LIFC_ALLZONES; in ibcm_do_lifconf()
313 err = ibcm_do_ip_ioctl(SIOCGLIFNUM, sizeof (struct lifnum), &lifn); in ibcm_do_lifconf()
318 family_loc, lifn.lifn_count); in ibcm_do_lifconf()
323 lifn.lifn_count += 4; in ibcm_do_lifconf()
328 lifcp->lifc_len = *bufsizep = lifn.lifn_count * sizeof (struct lifreq); in ibcm_do_lifconf()
/titanic_44/usr/src/cmd/cmd-inet/usr.lib/inetd/
H A Dtlx.c79 struct lifnum lifn; in can_use_af() local
85 lifn.lifn_family = af; in can_use_af()
87 lifn.lifn_flags = IFF_UP & !(IFF_NOXMIT | IFF_DEPRECATED); in can_use_af()
88 if (ioctl(fd, SIOCGLIFNUM, &lifn, sizeof (lifn)) < 0) { in can_use_af()
89 lifn.lifn_count = 0; in can_use_af()
93 return (lifn.lifn_count); in can_use_af()
/titanic_44/usr/src/lib/libresolv2/common/resolv/
H A Dres_init.c281 struct lifnum lifn; in __res_vinit() local
287 lifn.lifn_family = AF_UNSPEC; in __res_vinit()
288 lifn.lifn_flags = LIFC_EXTERNAL_SOURCE; in __res_vinit()
289 if (ioctl(s, SIOCGLIFNUM, (char *)&lifn) < 0) { in __res_vinit()
293 if (lifn.lifn_count == 0) { in __res_vinit()
301 lifn.lifn_flags = 0; in __res_vinit()
302 if ((ioctl(s, SIOCGLIFNUM, (char *)&lifn) < 0) || in __res_vinit()
303 (lifn.lifn_count < 1)) { in __res_vinit()
308 buflen = lifn.lifn_count * sizeof (struct lifreq); in __res_vinit()
325 for (i = 0; i < lifn.lifn_count; ++i) { in __res_vinit()
/titanic_44/usr/src/cmd/cmd-inet/usr.lib/in.ripngd/
H A Dstartup.c58 struct lifnum lifn; in initifs() local
68 lifn.lifn_family = AF_INET6; in initifs()
69 lifn.lifn_flags = 0; in initifs()
70 if (ioctl(iocsoc, SIOCGLIFNUM, (char *)&lifn) < 0) { in initifs()
74 numifs = lifn.lifn_count; in initifs()
/titanic_44/usr/src/cmd/cmd-inet/sbin/dhcpagent/
H A Drelease.c60 dhcp_lif_t *lif, *lifn; in send_declines() local
98 for (nlifs = dlp->dl_nlifs; nlifs > 0; nlifs--, lif = lifn) { in send_declines()
99 lifn = lif->lif_next; in send_declines()
H A Dinterface.c1710 struct lifnum lifn; in remove_v6_strays() local
1722 (void) memset(&lifn, 0, sizeof (lifn)); in remove_v6_strays()
1723 lifn.lifn_family = AF_INET6; in remove_v6_strays()
1724 lifn.lifn_flags = LIFC_ALLZONES | LIFC_NOXMIT | LIFC_TEMPORARY; in remove_v6_strays()
1725 if (ioctl(v6_sock_fd, SIOCGLIFNUM, &lifn) == -1) { in remove_v6_strays()
1730 numifs = lifn.lifn_count + 10; in remove_v6_strays()
/titanic_44/usr/src/cmd/fs.d/nfs/statd/
H A Dsm_svc.c408 struct lifnum lifn; in init_hostname() local
416 lifn.lifn_family = AF_UNSPEC; in init_hostname()
417 lifn.lifn_flags = 0; in init_hostname()
419 if (ioctl(sock, SIOCGLIFNUM, (char *)&lifn) < 0) { in init_hostname()
426 host_name_count = lifn.lifn_count; in init_hostname()
/titanic_44/usr/src/lib/librdc/common/
H A Dnetaddrs.c67 struct lifnum lifn; in Is_ipv6present() local
73 lifn.lifn_family = AF_INET6; in Is_ipv6present()
74 lifn.lifn_flags = 0; in Is_ipv6present()
75 if (ioctl(sock, SIOCGLIFNUM, (char *)&lifn) < 0) { in Is_ipv6present()
80 if (lifn.lifn_count == 0) in Is_ipv6present()
/titanic_44/usr/src/lib/libnsl/nss/
H A Dgetipnodeby.c661 struct lifnum lifn; in __ai_addrconfig() local
695 lifn.lifn_family = af; in __ai_addrconfig()
702 lifn.lifn_flags = 0; in __ai_addrconfig()
704 if (nss_ioctl(af, SIOCGLIFNUM, &lifn) < 0) in __ai_addrconfig()
707 if (lifn.lifn_count == 0) { in __ai_addrconfig()
718 lifn.lifn_count += 4; in __ai_addrconfig()
720 bufsize = lifn.lifn_count * sizeof (struct lifreq); in __ai_addrconfig()
732 if (nlifr >= lifn.lifn_count) in __ai_addrconfig()
H A Dnetdir_inet_sundry.c333 struct lifnum lifn; in get_if_info() local
335 lifn.lifn_family = AF_INET; in get_if_info()
336 lifn.lifn_flags = 0; in get_if_info()
338 if (nss_ioctl(AF_INET, SIOCGLIFNUM, &lifn) == -1) { in get_if_info()
341 numifs = lifn.lifn_count; in get_if_info()
/titanic_44/usr/src/cmd/cmd-inet/usr.lib/mdnsd/
H A DmDNSUNP.c352 struct lifnum lifn; in get_ifi_info_solaris() local
368 lifn.lifn_family = family; in get_ifi_info_solaris()
369 lifn.lifn_flags = 0; in get_ifi_info_solaris()
370 if (ioctl(sockfd, SIOCGLIFNUM, &lifn) < 0) in get_ifi_info_solaris()
376 lifn.lifn_count += 4; in get_ifi_info_solaris()
377 numifs = lifn.lifn_count; in get_ifi_info_solaris()
/titanic_44/usr/src/cmd/cmd-inet/usr.lib/ncaconfd/
H A Dncaconfd.c461 struct lifnum lifn; in get_if_ip_addr() local
474 lifn.lifn_family = AF_UNSPEC; in get_if_ip_addr()
475 lifn.lifn_flags = 0; in get_if_ip_addr()
476 if (ioctl(sock, SIOCGLIFNUM, (char *)&lifn) < 0) { in get_if_ip_addr()
481 buf = (char *)calloc(lifn.lifn_count, sizeof (struct lifreq)); in get_if_ip_addr()
490 lifc.lifc_len = lifn.lifn_count * sizeof (struct lifreq); in get_if_ip_addr()
/titanic_44/usr/src/uts/common/io/ib/clients/rdsv3/
H A Daf_rds.c294 struct lifnum lifn; in rdsv3_ioctl() local
295 lifn.lifn_family = AF_INET_OFFLOAD; in rdsv3_ioctl()
296 lifn.lifn_flags = 0; in rdsv3_ioctl()
297 lifn.lifn_count = numifs; in rdsv3_ioctl()
298 (void) ddi_copyout(&lifn, (void *)arg, in rdsv3_ioctl()
H A Drdsv3_impl.c113 struct lifnum lifn; in rdsv3_do_ip_ioctl() local
130 lifn.lifn_family = PF_UNSPEC; in rdsv3_do_ip_ioctl()
131 lifn.lifn_flags = LIFC_NOXMIT | LIFC_TEMPORARY | LIFC_ALLZONES; in rdsv3_do_ip_ioctl()
132 lifn.lifn_count = 0; in rdsv3_do_ip_ioctl()
133 rval = ksocket_ioctl(so4, SIOCGLIFNUM, (intptr_t)&lifn, &rval, in rdsv3_do_ip_ioctl()
141 numifs = lifn.lifn_count; in rdsv3_do_ip_ioctl()
/titanic_44/usr/src/lib/smbsrv/libsmb/common/
H A Dsmb_nic.c614 struct lifnum lifn; in smb_nic_hlist_sysget() local
637 lifn.lifn_family = AF_UNSPEC; in smb_nic_hlist_sysget()
638 lifn.lifn_flags = 0; in smb_nic_hlist_sysget()
639 if (ioctl(s4, SIOCGLIFNUM, (char *)&lifn) < 0) { in smb_nic_hlist_sysget()
646 lifc.lifc_len = lifn.lifn_count * sizeof (struct lifreq); in smb_nic_hlist_sysget()
/titanic_44/usr/src/cmd/cmd-inet/usr.lib/in.mpathd/
H A Dmpd_main.c264 struct lifnum lifn; in initifs() local
311 lifn.lifn_family = AF_UNSPEC; in initifs()
312 lifn.lifn_flags = LIFC_ALLZONES | LIFC_UNDER_IPMP; in initifs()
314 if (ioctl(ifsock_v4, SIOCGLIFNUM, (char *)&lifn) < 0) { in initifs()
322 lifn.lifn_count += 4; in initifs()
324 if ((buf = calloc(lifn.lifn_count, sizeof (struct lifreq))) == NULL) { in initifs()
331 lifc.lifc_len = lifn.lifn_count * sizeof (struct lifreq); in initifs()
346 if (nlifr >= lifn.lifn_count) { in initifs()
/titanic_44/usr/src/lib/libadutils/common/
H A Daddisc.c444 struct lifnum lifn; in find_subnets() local
457 lifn.lifn_family = AF_INET; in find_subnets()
458 lifn.lifn_flags = 0; in find_subnets()
459 if (ioctl(sock, SIOCGLIFNUM, (char *)&lifn) < 0) { in find_subnets()
467 if (lifn.lifn_count < 1) { in find_subnets()
475 lifc.lifc_len = lifn.lifn_count * sizeof (struct lifreq); in find_subnets()
/titanic_44/usr/src/cmd/cmd-inet/usr.sbin/in.routed/
H A Dif.c1040 struct lifnum lifn; in ifscan() local
1062 lifn.lifn_family = AF_INET; /* Only count IPv4 interfaces */ in ifscan()
1069 lifn.lifn_flags = LIFC_NOXMIT; in ifscan()
1071 if (ioctl(sock, SIOCGLIFNUM, &lifn) == -1) { in ifscan()
1083 needed = (lifn.lifn_count + 4) * sizeof (struct lifreq); in ifscan()

12