/illumos-gate/usr/src/lib/nsswitch/ldap/common/ |
H A D | getnetmasks.c | 56 * The front end marshaller str2add expects "netmask" only 70 char *buffer, **netmask; local 77 netmask = __ns_ldap_getAttr(result->entry, _N_NETMASK); 78 if (netmask == NULL || netmask[0] == NULL || 79 (strlen(netmask[0]) < 1)) { 84 len = strlen(netmask[0]) + 1; 96 (void) snprintf(buffer, len, "%s", netmask[0]); 106 * ldap search filter using the netmask name invocation parameter and the
|
/illumos-gate/usr/src/cmd/getent/ |
H A D | dogetnetmask.c | 42 putnetmask(const struct in_addr key, const struct in_addr netmask, FILE *fp) argument 51 if (fprintf(fp, " %s", inet_ntoa(netmask)) == EOF) 65 struct in_addr addr, netmask; local 73 if (getnetmaskbyaddr(addr, &netmask) == 0) { 74 (void) putnetmask(addr, netmask, stdout);
|
/illumos-gate/usr/src/cmd/ipf/examples/ |
H A D | mkfilters.sh | 14 $net{$i} = $inet{$i}."/".$netmask{$i} if (defined($inet{$i})); 106 if (/netmask/) { 107 ($mask = $_) =~ s/.*netmask ([^ ]+).*/$1/; 109 $netmask{$iface} = $mask;
|
/illumos-gate/usr/src/boot/lib/libstand/ |
H A D | globals.c | 34 n_long netmask = 0xffffff00; /* subnet or net mask */ variable
|
H A D | rarp.c | 121 /* Compute our "natural" netmask. */ 123 netmask = IN_CLASSA_NET; 125 netmask = IN_CLASSB_NET; 127 netmask = IN_CLASSC_NET;
|
H A D | net.h | 85 extern n_long netmask;
|
H A D | udp.c | 119 netmask == 0 || SAMENET(ip->ip_src, ip->ip_dst, netmask))
|
/illumos-gate/usr/src/cmd/svc/milestone/ |
H A D | net-netmask | 28 # Reset netmask and broadcast address whenever new information is 56 # Reset the netmask and broadcast address for our network interfaces. 66 # Re-set the netmask and broadcast addr for all IP interfaces. This 68 # "netmask +" will find the netmask if it lives in a NIS map. The 'D' 72 /usr/sbin/ifconfig -auD4 netmask + broadcast +
|
H A D | Makefile | 48 network-netmask.xml \ 119 net-netmask \
|
H A D | net-physical | 115 # DHCP, reset the netmask using the local "/etc/netmasks" file if one 116 # exists, and then reset the broadcast address based on the netmask. 118 /sbin/ifconfig -auD4 netmask + broadcast + 432 /sbin/ifconfig -adD4 auto-revarp netmask + broadcast + up 502 netmask $mask broadcast + up 2>/dev/null;
|
/illumos-gate/usr/src/common/net/patricia/ |
H A D | radix.c | 216 * when m_arg is a finer-granularity netmask -- it represents a subset 252 caddr_t netmask = NULL; local 258 netmask = x->rn_key; 261 if (x && netmask) { 262 while (x && x->rn_mask != netmask) 563 caddr_t netmask = (caddr_t)n_arg; local 572 if ((mlen = LEN(netmask)) > max_keylen) 581 bcopy(netmask + skip, addmask_key + skip, mlen - skip); 605 netmask = cp = (caddr_t)(x + 2); 624 cplim = netmask 693 caddr_t v = (caddr_t)v_arg, netmask = (caddr_t)n_arg; local 891 caddr_t v, netmask; local [all...] |
/illumos-gate/usr/src/lib/libslp/clib/ |
H A D | slp_net_utils.c | 45 struct sockaddr_in netmask; member in struct:slp_ifinfo 144 struct in_addr netmask, net_addr, masked_addr; local 165 /* get netmask */ 166 netmask.s_addr = all_ifs[i].netmask.sin_addr.s_addr; 169 all_ifs[i].addr.sin_addr.s_addr & netmask.s_addr; 170 /* apply netmask to input addr */ 171 masked_addr.s_addr = addr.s_addr & netmask.s_addr; 301 (void) memset(&(all_ifs[i].netmask), 0, 302 sizeof (all_ifs[i].netmask)); [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.routed/ |
H A D | radix.c | 147 * when m_arg is a finer-granularity netmask -- it represents a subset 172 uint8_t *netmask = NULL; local 180 netmask = x->rn_key; 183 if (x && netmask) { 184 while (x && x->rn_mask != netmask) 435 uint8_t *netmask = n_arg; local 451 (void) memmove(addmask_key + skip, netmask + skip, mlen - skip); 474 netmask = cp = (uint8_t *)(x + 2); 489 cplim = netmask + mlen; 491 for (cp = netmask 547 uint8_t *v = v_arg, *netmask = n_arg; local 714 uint8_t *v, *netmask; local [all...] |
H A D | parms.c | 223 uint32_t dst, netmask, gate; local 304 netmask = HOST_MASK; 306 if (!getnet(dname, &dst, &netmask)) { 388 addroutefordefault(dst, gate, netmask, metric, 393 ifp = check_dup(NULL, gate, dst, netmask, 0, _B_FALSE); 403 if (netmask == HOST_MASK) 410 ifp->int_mask = netmask; 411 ifp->int_ripv1_mask = netmask;
|
/illumos-gate/usr/src/boot/sys/boot/uboot/lib/ |
H A D | net.c | 137 * Netmask is optional, default to the "natural" netmask for our IP, but 140 if ((envstr = ub_env_get("netmask")) != NULL && 141 (netmask = inet_addr(envstr)) == INADDR_NONE) { 142 printf("Could not parse netmask '%s'\n", envstr); 144 if (netmask == INADDR_NONE) { 146 netmask = IN_CLASSA_NET; 148 netmask = IN_CLASSB_NET; 150 netmask = IN_CLASSC_NET; 183 if (!SAMENET(myip, rootip, netmask)) {
|
/illumos-gate/usr/src/boot/sys/boot/common/ |
H A D | dev_net.c | 168 setenv("boot.netif.netmask", intoa(netmask), 1); 274 * netmask to the "natural" default for our address. 299 /* Got it! Parse the netmask. */ 303 netmask = smask; 306 printf("net_open: subnet mask: %s\n", intoa(netmask));
|
/illumos-gate/usr/src/lib/libdladm/common/ |
H A D | flowattr.c | 85 uchar_t *netmask; local 109 netmask = (uchar_t *)&fd->fd_local_netmask; 113 netmask = (uchar_t *)&fd->fd_remote_netmask; 120 netmask = (uchar_t *) 121 &(V4_PART_OF_V6((*((in6_addr_t *)(void *)netmask)))); 131 status = dladm_prefixlen2mask(prefix_len, prefix_max, netmask);
|
/illumos-gate/usr/src/cmd/cmd-inet/lib/nwamd/ |
H A D | routing_events.c | 118 struct sockaddr *addr, *netmask; local 181 if ((netmask = (struct sockaddr *)getaddr(RTA_NETMASK, 213 addr, netmask); 233 struct sockaddr *addr, *netmask; local 304 if ((netmask = 337 addr, netmask); 484 nlog(LOG_DEBUG, "netmask: %s", printaddr(&address));
|
/illumos-gate/usr/src/grub/grub-0.97/netboot/ |
H A D | nic.c | 35 static unsigned long netmask; variable 262 DEFAULT_NETMASK - Return default netmask for IP address 322 if (((destip & netmask) != 323 (arptable[ARP_CLIENT].ipaddr.s_addr & netmask)) && 561 netmask = default_netmask(); 658 netmask = default_netmask(); 1073 memcpy(&netmask, p+2, sizeof(in_addr)); 1172 netmask = tmp.s_addr; 1180 if (! netmask && ! sm) 1181 netmask [all...] |
/illumos-gate/usr/src/uts/common/io/ib/mgt/ibcm/ |
H A D | ibcm_arp_link.c | 164 wqnp->netmask.un.ip4addr = ire->ire_mask; 166 wqnp->netmask.family = AF_INET; 204 wqnp->netmask.un.ip6addr = ire->ire_mask_v6; 206 wqnp->netmask.family = AF_INET6;
|
/illumos-gate/usr/src/uts/common/sys/ib/mgt/ibcm/ |
H A D | ibcm_arp.h | 63 ibt_ip_addr_t netmask; /* rts returned netmask */ member in struct:ibcm_arp_prwqn
|
/illumos-gate/usr/src/lib/udapl/udapl_tavor/common/ |
H A D | dapl_name_service.c | 547 uint32_t netmask, netaddr, netaddr_dest; local 554 "ns_subnet_match_v4: cannot get netmask: %s\n", 558 netmask = ((struct sockaddr_in *)&lifreq.lifr_addr)-> 574 sin_addr.s_addr & netmask; 575 netaddr_dest = addr->sin_addr.s_addr & netmask; 591 uchar_t *netmask, *local_addr, *dest_addr; local 599 "ns_subnet_match_v6: cannot get netmask: %s\n", 618 netmask = (uchar_t *)&netmask_sock.sin6_addr; 624 if (((local_addr[i] ^ dest_addr[i]) & netmask[i]) != 0) {
|
/illumos-gate/usr/src/stand/lib/inet/ |
H A D | ipv4.c | 58 static struct in_addr netmask = variable in typeref:struct:in_addr 59 { 0xff, 0xff, 0xff, 0xff }; /* our network-order netmask */ 60 static boolean_t netmask_set = B_FALSE; /* has anyone set netmask? */ 470 * Set our netmask. 477 netmask.s_addr = htonl(ip->s_addr); 478 mynet.s_addr = netmask.s_addr & myip.s_addr; /* implicit */ 494 * Returns our current netmask in host order. 496 * that the netmask be specified, so in the absence of 497 * a netmask, we attempt to derive it using class-based 504 ip->s_addr = ntohl(netmask [all...] |
/illumos-gate/usr/src/lib/libnsl/nss/ |
H A D | netdir_inet_sundry.c | 307 struct in_addr if_netmask; /* netmask in network order */ 509 uint32_t mask, netmask, clnt_addr, if_addr; local 521 netmask = ntohl(ifn->if_netmask.s_addr); /* host order */ 525 * set initial count to first bit set in netmask, with 529 for (mask = netmask; mask && ((mask & 1) == 0); mask >>= 1) 534 * than the inherent netmask for the class (A, B, C, etc). 546 * We assume that the netmask consists of a contiguous 560 while (netmask && count < subnet_count) { 561 if ((netmask & clnt_addr) == (netmask [all...] |
/illumos-gate/usr/src/lib/brand/solaris10/cmd/ |
H A D | s10_net_physical.sh | 78 # configured by DHCP, reset the netmask using the local "/etc/netmasks" 80 # the netmask. 82 /sbin/ifconfig -auD4 netmask + broadcast + 391 /sbin/ifconfig -adD4 auto-revarp netmask + broadcast + up
|