/titanic_44/usr/src/lib/nsswitch/ldap/common/ |
H A D | getnetmasks.c | 70 char *buffer, **netmask; in _nss_ldap_netmasks2str() local 77 netmask = __ns_ldap_getAttr(result->entry, _N_NETMASK); in _nss_ldap_netmasks2str() 78 if (netmask == NULL || netmask[0] == NULL || in _nss_ldap_netmasks2str() 79 (strlen(netmask[0]) < 1)) { in _nss_ldap_netmasks2str() 84 len = strlen(netmask[0]) + 1; in _nss_ldap_netmasks2str() 96 (void) snprintf(buffer, len, "%s", netmask[0]); in _nss_ldap_netmasks2str()
|
/titanic_44/usr/src/cmd/getent/ |
H A D | dogetnetmask.c | 42 putnetmask(const struct in_addr key, const struct in_addr netmask, FILE *fp) in putnetmask() argument 51 if (fprintf(fp, " %s", inet_ntoa(netmask)) == EOF) in putnetmask() 65 struct in_addr addr, netmask; in dogetnetmask() local 73 if (getnetmaskbyaddr(addr, &netmask) == 0) { in dogetnetmask() 74 (void) putnetmask(addr, netmask, stdout); in dogetnetmask()
|
/titanic_44/usr/src/cmd/cmd-inet/usr.sbin/in.routed/ |
H A D | radix.c | 172 uint8_t *netmask = NULL; in rn_lookup() local 180 netmask = x->rn_key; in rn_lookup() 183 if (x && netmask) { in rn_lookup() 184 while (x && x->rn_mask != netmask) in rn_lookup() 435 uint8_t *netmask = n_arg; in rn_addmask() local 451 (void) memmove(addmask_key + skip, netmask + skip, mlen - skip); in rn_addmask() 474 netmask = cp = (uint8_t *)(x + 2); in rn_addmask() 489 cplim = netmask + mlen; in rn_addmask() 491 for (cp = netmask + skip; (cp < cplim) && *cp == 0xff; ) in rn_addmask() 499 b += (cp - netmask) << 3; in rn_addmask() [all …]
|
H A D | parms.c | 223 uint32_t dst, netmask, gate; in gwkludge() local 304 netmask = HOST_MASK; in gwkludge() 306 if (!getnet(dname, &dst, &netmask)) { in gwkludge() 388 addroutefordefault(dst, gate, netmask, metric, in gwkludge() 393 ifp = check_dup(NULL, gate, dst, netmask, 0, _B_FALSE); in gwkludge() 403 if (netmask == HOST_MASK) in gwkludge() 410 ifp->int_mask = netmask; in gwkludge() 411 ifp->int_ripv1_mask = netmask; in gwkludge()
|
H A D | rtquery.c | 123 in_addr_t netaddr, netmask; in main() local 166 rflag = getnet(optarg, &netaddr, &netmask); in main() 170 OMSG.rip_nets[0].n_mask = htonl(netmask); in main()
|
/titanic_44/usr/src/common/net/patricia/ |
H A D | radix.c | 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 + mlen; 626 for (cp = netmask + skip; (cp < cplim) && *(uchar_t *)cp == 0xff; ) [all …]
|
/titanic_44/usr/src/lib/libslp/clib/ |
H A D | slp_net_utils.c | 45 struct sockaddr_in netmask; member 144 struct in_addr netmask, net_addr, masked_addr; in slp_on_subnet() local 166 netmask.s_addr = all_ifs[i].netmask.sin_addr.s_addr; in slp_on_subnet() 169 all_ifs[i].addr.sin_addr.s_addr & netmask.s_addr; in slp_on_subnet() 171 masked_addr.s_addr = addr.s_addr & netmask.s_addr; in slp_on_subnet() 301 (void) memset(&(all_ifs[i].netmask), 0, in get_all_interfaces() 302 sizeof (all_ifs[i].netmask)); in get_all_interfaces() 304 (void) memcpy(&(all_ifs[i].netmask), &ifr.ifr_addr, in get_all_interfaces() 305 sizeof (all_ifs[i].netmask)); in get_all_interfaces()
|
/titanic_44/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;
|
/titanic_44/usr/src/lib/libdladm/common/ |
H A D | flowattr.c | 85 uchar_t *netmask; in do_check_ip_addr() local 109 netmask = (uchar_t *)&fd->fd_local_netmask; in do_check_ip_addr() 113 netmask = (uchar_t *)&fd->fd_remote_netmask; in do_check_ip_addr() 120 netmask = (uchar_t *) in do_check_ip_addr() 121 &(V4_PART_OF_V6((*((in6_addr_t *)(void *)netmask)))); in do_check_ip_addr() 131 status = dladm_prefixlen2mask(prefix_len, prefix_max, netmask); in do_check_ip_addr()
|
/titanic_44/usr/src/grub/grub-0.97/netboot/ |
H A D | nic.c | 35 static unsigned long netmask; variable 322 if (((destip & netmask) != in ip_transmit() 323 (arptable[ARP_CLIENT].ipaddr.s_addr & netmask)) && in ip_transmit() 561 netmask = default_netmask(); in await_bootp() 658 netmask = default_netmask(); in await_dhcp() 1073 memcpy(&netmask, p+2, sizeof(in_addr)); in decode_rfc1533() 1172 netmask = tmp.s_addr; in ifconfig() 1180 if (! netmask && ! sm) in ifconfig() 1181 netmask = default_netmask (); in ifconfig() 1198 if (IP_BROADCAST == (netmask | arptable[ARP_CLIENT].ipaddr.s_addr) in ifconfig() [all …]
|
/titanic_44/usr/src/cmd/cmd-inet/lib/nwamd/ |
H A D | routing_events.c | 118 struct sockaddr *addr, *netmask; in routing_events_v4() local 181 if ((netmask = (struct sockaddr *)getaddr(RTA_NETMASK, in routing_events_v4() 213 addr, netmask); in routing_events_v4() 233 struct sockaddr *addr, *netmask; in routing_events_v6() local 304 if ((netmask = in routing_events_v6() 337 addr, netmask); in routing_events_v6()
|
H A D | events.c | 371 uint32_t addr_added, struct sockaddr *addr, struct sockaddr *netmask) in nwamd_event_init_if_state() argument 404 if (netmask != NULL) { in nwamd_event_init_if_state() 405 bcopy(netmask, in nwamd_event_init_if_state() 407 netmask->sa_family == AF_INET ? in nwamd_event_init_if_state()
|
/titanic_44/usr/src/lib/udapl/udapl_tavor/common/ |
H A D | dapl_name_service.c | 547 uint32_t netmask, netaddr, netaddr_dest; in dapls_ns_subnet_match_v4() local 558 netmask = ((struct sockaddr_in *)&lifreq.lifr_addr)-> in dapls_ns_subnet_match_v4() 574 sin_addr.s_addr & netmask; in dapls_ns_subnet_match_v4() 575 netaddr_dest = addr->sin_addr.s_addr & netmask; in dapls_ns_subnet_match_v4() 591 uchar_t *netmask, *local_addr, *dest_addr; in dapls_ns_subnet_match_v6() local 618 netmask = (uchar_t *)&netmask_sock.sin6_addr; in dapls_ns_subnet_match_v6() 624 if (((local_addr[i] ^ dest_addr[i]) & netmask[i]) != 0) { in dapls_ns_subnet_match_v6()
|
/titanic_44/usr/src/lib/libnsl/nss/ |
H A D | netdir_inet_sundry.c | 509 uint32_t mask, netmask, clnt_addr, if_addr; in get_best_match() local 521 netmask = ntohl(ifn->if_netmask.s_addr); /* host order */ in get_best_match() 529 for (mask = netmask; mask && ((mask & 1) == 0); mask >>= 1) in get_best_match() 560 while (netmask && count < subnet_count) { in get_best_match() 561 if ((netmask & clnt_addr) == (netmask & if_addr)) { in get_best_match() 567 netmask <<= 1; in get_best_match() 576 if (found && (netmask == ntohl(ifn->if_netmask.s_addr))) { in get_best_match()
|
/titanic_44/usr/src/uts/common/io/ib/mgt/ibcm/ |
H A D | ibcm_arp_link.c | 164 wqnp->netmask.un.ip4addr = ire->ire_mask; in ibcm_resolver_pr_lookup() 166 wqnp->netmask.family = AF_INET; in ibcm_resolver_pr_lookup() 204 wqnp->netmask.un.ip6addr = ire->ire_mask_v6; in ibcm_resolver_pr_lookup() 206 wqnp->netmask.family = AF_INET6; in ibcm_resolver_pr_lookup()
|
/titanic_44/usr/src/stand/lib/inet/ |
H A D | ipv4.c | 58 static struct in_addr netmask = variable 477 netmask.s_addr = htonl(ip->s_addr); in ipv4_setnetmask() 478 mynet.s_addr = netmask.s_addr & myip.s_addr; /* implicit */ in ipv4_setnetmask() 504 ip->s_addr = ntohl(netmask.s_addr); in ipv4_getnetmask() 756 ipdst.s_addr != (mynet.s_addr | ~netmask.s_addr) && in ipv4_input() 1027 (netmask.s_addr != htonl(INADDR_BROADCAST) && in ipv4_output() 1028 iphp->ip_dst.s_addr == (mynet.s_addr | ~netmask.s_addr))) { in ipv4_output() 1034 ((iphp->ip_dst.s_addr & netmask.s_addr) != mynet.s_addr)) { in ipv4_output() 1085 ((iph->ip_dst.s_addr & netmask.s_addr) != mynet.s_addr)) { in ipv4_tcp_output()
|
/titanic_44/usr/src/cmd/svc/milestone/ |
H A D | Makefile | 48 network-netmask.xml \ 118 net-netmask \
|
H A D | net-physical | 118 /sbin/ifconfig -auD4 netmask + broadcast + 432 /sbin/ifconfig -adD4 auto-revarp netmask + broadcast + up 502 netmask $mask broadcast + up 2>/dev/null;
|
H A D | net-netmask | 72 /usr/sbin/ifconfig -auD4 netmask + broadcast +
|
/titanic_44/usr/src/lib/brand/solaris10/cmd/ |
H A D | s10_net_physical.sh | 82 /sbin/ifconfig -auD4 netmask + broadcast + 391 /sbin/ifconfig -adD4 auto-revarp netmask + broadcast + up
|
/titanic_44/usr/src/cmd/cmd-inet/usr.sbin/ifconfig/ |
H A D | ifconfig.c | 930 struct sockaddr_storage netmask; in setifaddr() local 941 (void) memset(&netmask, 0, sizeof (netmask)); in setifaddr() 942 netmask.ss_family = afp->af_af; in setifaddr() 953 sin6 = (struct sockaddr_in6 *)&netmask; in setifaddr() 962 sin = (struct sockaddr_in *)&netmask; in setifaddr() 983 set_mask_lifreq(&lifr, &laddr, &netmask); in setifaddr() 1365 struct sockaddr_in netmask; in setifnetmask() local 1370 if (!in_getmask(&netmask, _B_FALSE)) in setifnetmask() 1373 inet_ntoa(netmask.sin_addr)); in setifnetmask() 1375 in_getaddr(addr, (struct sockaddr *)&netmask, NULL); in setifnetmask() [all …]
|
/titanic_44/usr/src/uts/common/sys/ib/mgt/ibcm/ |
H A D | ibcm_arp.h | 63 ibt_ip_addr_t netmask; /* rts returned netmask */ member
|
/titanic_44/usr/src/lib/libsldap/common/ |
H A D | ns_common.c | 55 struct in_addr addr, netmask; member 679 struct in_addr netmask; in __s_api_get_local_interfaces() local 731 netmask = ((struct sockaddr_in *)&ifreq.ifr_addr)->sin_addr; in __s_api_get_local_interfaces() 739 localinfo[i].netmask = netmask; in __s_api_get_local_interfaces() 780 if ((iaddr & ifs[i].netmask.s_addr) == in __s_api_IPv4sameNet() 782 ifs[i].netmask.s_addr)) in __s_api_IPv4sameNet()
|
/titanic_44/usr/src/cmd/cmd-inet/etc/ |
H A D | netmasks | 31 # network-number netmask
|
/titanic_44/usr/src/cmd/cmd-inet/usr.bin/pppd/ |
H A D | options.c | 86 u_int32_t netmask = 0; /* IP netmask to set on interface */ variable 1566 if (pcap_compile(&pc, &pass_filter, *argv, 1, netmask) == 0) 1585 if (pcap_compile(&pc, &active_filter, *argv, 1, netmask) == 0) 1812 if (n == 0 || p[n] != 0 || (netmask & ~mask) != 0) { 1817 netmask = mask;
|