Searched defs:netmask (Results 1 - 25 of 25) sorted by relevance

/illumos-gate/usr/src/cmd/getent/
H A Ddogetnetmask.c42 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/boot/lib/libstand/
H A Dglobals.c34 n_long netmask = 0xffffff00; /* subnet or net mask */ variable
/illumos-gate/usr/src/lib/nsswitch/ldap/common/
H A Dgetnetmasks.c56 * 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/lib/libslp/clib/
H A Dslp_net_utils.c45 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/lib/libdladm/common/
H A Dflowattr.c85 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 Drouting_events.c118 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));
H A Devents.c371 uint32_t addr_added, struct sockaddr *addr, struct sockaddr *netmask)
404 if (netmask != NULL) {
405 bcopy(netmask,
407 netmask->sa_family == AF_INET ?
370 nwamd_event_init_if_state(const char *linkname, uint32_t flags, uint32_t addr_added, struct sockaddr *addr, struct sockaddr *netmask) argument
/illumos-gate/usr/src/lib/udapl/udapl_tavor/common/
H A Ddapl_name_service.c547 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/uts/common/sys/ib/mgt/ibcm/
H A Dibcm_arp.h63 ibt_ip_addr_t netmask; /* rts returned netmask */ member in struct:ibcm_arp_prwqn
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.routed/
H A Dparms.c223 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;
H A Dradix.c147 * 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 Drtquery.c123 in_addr_t netaddr, netmask; local
166 rflag = getnet(optarg, &netaddr, &netmask);
170 OMSG.rip_nets[0].n_mask = htonl(netmask);
657 * Without a netmask, do not worry about
662 * If we have a netmask we can make a
/illumos-gate/usr/src/lib/libnsl/nss/
H A Dnetdir_inet_sundry.c307 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/common/net/patricia/
H A Dradix.c216 * 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/grub/grub-0.97/netboot/
H A Dnic.c35 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/cmd/cmd-inet/usr.sbin/nwamadm/
H A Dnwamadm.c1112 struct sockaddr_storage *netmask = local
1117 int plen = mask2plen((struct sockaddr *)netmask);
/illumos-gate/usr/src/stand/lib/inet/
H A Dipv4.c58 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/libsldap/common/
H A Dns_common.c55 struct in_addr addr, netmask; member in struct:ifinfo
679 struct in_addr netmask; local
731 netmask = ((struct sockaddr_in *)&ifreq.ifr_addr)->sin_addr;
739 localinfo[i].netmask = netmask;
780 if ((iaddr & ifs[i].netmask.s_addr) ==
782 ifs[i].netmask.s_addr))
H A Dns_sldap.h421 char *netmask; member in struct:_ns_netmasks
/illumos-gate/usr/src/lib/libipadm/common/
H A Dipadm_addr.c906 struct sockaddr_storage netmask; local
925 if ((err = plen2mask(prefixlen, af, (struct sockaddr *)&netmask)) != 0)
933 (void) memcpy(&lifr.lifr_addr, &netmask, sizeof (netmask));
1638 * Computes the prefixlen for the given `addr' based on the netmask found using
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/
H A Doptions.c86 u_int32_t netmask = 0; /* IP netmask to set on interface */ variable
265 { "netmask", o_special, (void *)setnetmask,
266 "set netmask" },
1566 if (pcap_compile(&pc, &pass_filter, *argv, 1, netmask) == 0)
1585 if (pcap_compile(&pc, &active_filter, *argv, 1, netmask) == 0)
1790 * setnetmask - set the netmask to be used on the interface. Returns 1 upon
1812 if (n == 0 || p[n] != 0 || (netmask & ~mask) != 0) {
1813 option_error("invalid netmask value '%s'", *argv);
1817 netmask
[all...]
/illumos-gate/usr/src/uts/common/io/mac/
H A Dmac_flow.c1853 * The netmask only needs to be applied on the packet but not on the
2015 in6_addr_t *addr, *netmask; local
2042 netmask = &fd->fd_local_netmask;
2046 netmask = &fd->fd_remote_netmask;
2053 * Apply netmask onto specified address.
2055 V6_MASK_COPY(*addr, *netmask, *addr);
2058 ipaddr_t v4mask = V4_PART_OF_V6((*netmask));
2065 IN6_IS_ADDR_UNSPECIFIED(netmask))
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ifconfig/
H A Difconfig.c231 /* Refer to the comments in ifconfig() on the netmask "hack" */
232 #define NETMASK_CMD "netmask"
641 * such as address, netmask, broadcast, ... is set separately. But
643 * example, setting an address without a netmask does not make sense.
645 * ifconfig(1M) syntax. The kernel then "infers" the correct netmask
650 * the netmask command first. Then use this netmask to set the
654 * Note that if the "netmask" command argument is a "+", we need
672 /* Only go thru the command list once to find the netmask. */
676 * Currently, if multiple netmask command
930 struct sockaddr_storage netmask; local
1365 struct sockaddr_in netmask; local
3226 struct sockaddr_in netmask = { AF_INET }; local
3435 struct sockaddr_in netmask = { AF_INET }; local
[all...]
/illumos-gate/usr/src/uts/common/inet/ip/
H A Dip_if.c4036 * ill won't change any of its critical state such as address, netmask etc.
4095 * such as netmask, address etc. Returns an error if the ill has started
4334 * all ones netmask.
4338 /* A given netmask overrides the "guess" netmask */
4347 * Even if the netmask is all ones, we do not allow address to be
5380 * Returns B_FALSE if the IPv4 netmask pointed by `mask' is non-contiguous.
5383 * The netmask can be verified to be contiguous with 32 shifts and or
5431 * If this is the case of RTF_HOST being set, then we set the netmask
5622 * Since a netmask is
15664 ipaddr_t netmask = ip_net_mask(ipif->ipif_lcl_addr); local
15718 ipaddr_t netmask = ip_net_mask(ipif->ipif_lcl_addr); local
[all...]
/illumos-gate/usr/src/uts/common/io/cxgbe/common/
H A Dt4_msg.h1619 __be32 netmask; member in struct:cpl_rte_write_req

Completed in 123 milliseconds