Searched refs:numifs (Results 1 - 11 of 11) sorted by relevance

/osnet-11/usr/src/lib/libslp/clib/
H A Dslp_net_utils.c52 int numifs; member in struct:slp_handle_ifinfo
81 int numifs; local
96 numifs = ((slp_handle_ifinfo_t *)hp->ifinfo)->numifs;
107 for (i = 0; i < numifs; i++) {
147 int numifs; local
162 numifs = ((slp_handle_ifinfo_t *)hp->ifinfo)->numifs;
164 for (i = 0; i < numifs; i++) {
189 int numifs; local
226 int numifs; local
[all...]
/osnet-11/usr/src/lib/libsocket/inet/
H A Dinterface_id.c117 int numifs; local
152 numifs = lifn.lifn_count + 10;
160 bufsize = numifs * sizeof (struct lifreq);
226 int numifs; local
244 numifs = lifn.lifn_count;
246 bufsize = numifs * sizeof (struct lifreq);
270 interface_list = malloc((numifs + 1) * sizeof (struct if_nameindex));
281 bzero(interface_list, ((numifs + 1) * sizeof (struct if_nameindex)));
284 for (n = numifs; n > 0; n--, lifrp++) {
H A Dgetifaddrs.c99 int s, n, numifs; local
117 ret = getallifs(sock4, af, &buf, &numifs, lifc_flags);
128 for (n = 0; n < numifs; n++, lifrp++) {
223 getallifs(int s, sa_family_t af, struct lifreq **lifr, int *numifs, argument
259 *numifs = lifc.lifc_len / sizeof (struct lifreq);
260 if (*numifs >= (lifn.lifn_count + 4)) {
/osnet-11/usr/src/lib/libresolv/
H A Dres_init.c107 { int numifs, s, n, int_up; local
120 if (ioctl(s, SIOCGIFNUM, (char *)&numifs) < 0) {
121 numifs = MAXIFS;
123 bufsize = numifs * sizeof (struct ifreq);
/osnet-11/usr/src/lib/librdc/common/
H A Dnetaddrs.c95 int numifs; local
114 if (ioctl(sock, SIOCGIFNUM, (char *)&numifs) < 0) {
118 numifs = MAXIFS;
121 buf = (char *)malloc(numifs * sizeof (struct ifreq));
131 ifc->ifc_len = numifs * sizeof (struct ifreq);
/osnet-11/usr/src/lib/libnsl/nss/
H A Dnetdir_inet_sundry.c327 int numifs; local
336 numifs = MAXIFS;
338 numifs = lifn.lifn_count;
344 needed = (numifs + 4) * sizeof (struct lifreq);
373 numifs = lifc.lifc_len / (int)sizeof (struct lifreq);
375 if (if_info == NULL || numifs > numifs_last) {
377 if_info = malloc(numifs * sizeof (if_info_t));
379 if_info = realloc(if_info, numifs * sizeof (if_info_t));
385 numifs_last = numifs;
389 for (lifr = buf; lifr < (buf + numifs); lif
[all...]
H A Dnetdir_inet.c2539 int numifs; local
2553 numifs = MAXIFS;
2555 numifs = lifn.lifn_count;
2562 needed = (numifs + 4) * sizeof (lifreq);
2593 numifs = lifc.lifc_len/sizeof (lifreq);
2594 localinfo = malloc(ifinfosize(numifs));
2606 for (localinfo->count = 0, n = numifs; n > 0; n--, lifr++) {
2902 int n, i, numifs; local
2913 if (ioctl(fd, SIOCGIFNUM, (char *)&numifs) < 0)
2914 numifs
[all...]
/osnet-11/usr/src/lib/libsldap/common/
H A Dns_common.c763 int numifs = 0; local
769 if (ioctl(fd, SIOCGIFNUM, (char *)&numifs) < 0) {
770 numifs = MAXIFS;
773 buf = malloc(numifs * sizeof (struct ifreq));
778 ifc.ifc_len = numifs * (int)sizeof (struct ifreq);
787 numifs = ifc.ifc_len/(int)sizeof (struct ifreq);
788 localinfo = (struct ifinfo *)malloc((numifs + 1) *
797 for (i = 0, n = numifs; n > 0; n--, ifr++) {
/osnet-11/usr/src/cmd/sendmail/src/
H A Dconf.c4720 int numifs; local
4733 i = ioctl(s, SIOCGIFNUM, (char *) &numifs);
4739 numifs = lifn.lifn_count;
4749 numifs = -1;
4752 sm_dprintf("system has %d interfaces\n", numifs);
4753 if (numifs < 0)
4755 numifs = MAXINTERFACES;
4757 if (numifs <= 0)
4763 len = lifc.lifc_len = numifs * sizeof(struct lifreq);
4944 int numifs;
[all...]
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dlocaladdr.c866 int numifs = -1; local
880 code = ioctl (s, SIOCGIFNUM, &numifs);
881 if (!code && numifs > 0)
882 est_if_count = numifs;
909 && numifs <= 0
/osnet-11/usr/src/lib/libipadm/common/
H A Dipadm_if.c249 int numifs; local
271 if (getallifs(iph->ih_sock, 0, &buf, &numifs, lifc_flags) != 0)
288 for (n = 0; n < numifs; n++, lifrp++) {

Completed in 102 milliseconds