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

12

/freebsd-head/contrib/ntp/lib/isc/include/isc/
H A Dinterfaceiter.h31 * returned by the iterator. Interfaces whose netmask, interface flags,
55 isc_netaddr_t netmask; /*%< Network mask. */ member in struct:isc_interface
/freebsd-head/lib/libifconfig/
H A Dlibifconfig_inet6.c66 struct sockaddr_in6 *netmask; local
80 netmask = (struct sockaddr_in6 *)ifa->ifa_netmask;
81 addr->prefixlen = inet6_prefixlen(&netmask->sin6_addr);
H A Dlibifconfig.h68 const struct sockaddr_in *netmask; member in struct:ifconfig_inet_addr
/freebsd-head/sys/netgraph/
H A Dng_cisco.h68 struct in_addr netmask; /* Netmask */ member in struct:ng_cisco_ipaddr
74 { "netmask", &ng_parse_ipaddr_type }, \
/freebsd-head/contrib/netbsd-tests/fs/nfs/nfsservice/
H A Drumpnfsd.c60 const char *netmask; local
77 netmask = "255.255.255.0";
85 netmask = argv[5];
134 netcfg_rump_if(ifname, serveraddr, netmask);
137 netcfg_rump_if(ifname_ro, serveraddr_ro, netmask);
/freebsd-head/stand/libsa/
H A Dglobals.c35 n_long netmask = 0xffffff00; /* subnet or net mask */ variable
/freebsd-head/contrib/libpcap/
H A Dfad-getad.c151 struct sockaddr *addr, *netmask, *broadaddr, *dstaddr; local
218 * the address and netmask only if "ifa_addr" is
220 * no netmask).
225 netmask = ifa->ifa_netmask;
229 netmask = NULL;
269 addr, addr_size, netmask, addr_size,
H A Dfad-gifc.c154 struct sockaddr *netmask, *broadaddr, *dstaddr; local
219 * we still get the netmask, etc. with ioctls on
282 * Get the netmask for this address on this interface.
293 netmask = NULL;
305 netmask = &ifrnetmask.ifr_addr;
306 netmask_size = SA_LEN(netmask);
421 netmask, netmask_size, broadaddr, broadaddr_size,
H A Dfad-glifc.c91 struct sockaddr *netmask, *broadaddr, *dstaddr; local
210 * Get the netmask for this address on this interface.
221 netmask = NULL;
232 netmask = (struct sockaddr *)&ifrnetmask.lifr_addr;
334 netmask, sizeof (struct sockaddr_storage),
/freebsd-head/tools/regression/netinet/msocket_ifnet_remove/
H A Dmsocket_ifnet_remove.c128 * Configure an IP address and netmask on a network interface.
131 ifconfig_inet(char *ifname, int ifunit, char *ip, char *netmask) argument
155 sinp->sin_addr.s_addr = inet_addr(netmask);
/freebsd-head/tools/tools/ether_reflect/
H A Dether_reflect.c64 bpf_u_int32 localnet=0, netmask=0; local
117 if (pcap_lookupnet(interface, &localnet, &netmask, errbuf) < 0)
120 if (pcap_compile(capture, &program, in_string, 1, netmask) < 0)
/freebsd-head/usr.sbin/ppp/
H A Darp.c289 struct sockaddr_in *ifa, *netmask; local
292 netmask = (struct sockaddr_in *)sa[RTAX_NETMASK];
297 strncpy(a, inet_ntoa(netmask->sin_addr), sizeof a - 1);
303 if ((ifa->sin_addr.s_addr & netmask->sin_addr.s_addr) ==
304 (ipaddr.s_addr & netmask->sin_addr.s_addr)) {
H A Dipcp.h58 struct in_addr netmask; /* Iface netmask (unused by most OSs) */ member in struct:ipcp::__anon3372
93 struct in_addr ifmask; /* Interface netmask */
H A Dradius.c1074 /* Fetch IP, netmask from IPCP */
1077 struct in_addr *netmask)
1081 memcpy(&ac->peer.ip.mask, netmask, sizeof(ac->peer.ip.mask));
1076 radius_Account_Set_Ip(struct radacct *ac, struct in_addr *peer_ip, struct in_addr *netmask) argument
/freebsd-head/sys/nfs/
H A Dnfs_diskless.c156 * boot.netif.netmask netmask on boot interface
174 struct sockaddr_in myaddr, netmask; local
198 if (inaddr_to_sockaddr("boot.netif.netmask", &netmask)) {
199 printf("nfs_diskless: no netmask\n");
207 myaddr.sin_addr.s_addr | ~ netmask.sin_addr.s_addr;
208 bcopy(&netmask, &nd3->myif.ifra_mask, sizeof(netmask));
214 myaddr.sin_addr.s_addr | ~ netmask
[all...]
/freebsd-head/sys/net/
H A Dradix_mpath.c172 * Assume @rt rt_key host bits are cleared according to @netmask
176 struct sockaddr *netmask)
182 rn1 = rnh->rnh_lookup(rt_key(rt), netmask, &rnh->head);
175 rt_mpath_conflict(struct rib_head *rnh, struct rtentry *rt, struct sockaddr *netmask) argument
H A Dradix.c220 caddr_t netmask; local
230 netmask = x->rn_key;
234 while (x != NULL && x->rn_mask != netmask)
494 unsigned char *netmask = n_arg; local
502 if ((mlen = LEN(netmask)) > RADIX_MAX_KEY_LEN)
512 bcopy(netmask + skip, addmask_key + skip, mlen - skip);
530 netmask = cp = (unsigned char *)(x + 2);
546 cplim = netmask + mlen;
548 for (cp = netmask + skip; (cp < cplim) && *(u_char *)cp == 0xff;)
556 b += (cp - netmask) <<
603 caddr_t v = (caddr_t)v_arg, netmask = (caddr_t)n_arg; local
779 caddr_t v, netmask; local
[all...]
/freebsd-head/sys/netinet/
H A Din_rmx.c203 struct sockaddr *netmask,
208 rtredirect_fib(dst, gateway, netmask, flags, src, fibnum);
201 in_rtredirect(struct sockaddr *dst, struct sockaddr *gateway, struct sockaddr *netmask, int flags, struct sockaddr *src, u_int fibnum) argument
/freebsd-head/contrib/amd/libamu/
H A Dwire.c41 * This function returns the subnet (address&netmask) for the primary network
132 getwire_lookup(u_long address, u_long netmask, int ishost) argument
149 al->ip_mask = netmask;
154 subnet = ntohl(address) & ntohl(netmask);
160 u_long mask = ntohl(netmask);
181 net = ntohl(address) & (mask = ntohl(netmask));
232 subnet = address & netmask;
307 * If it does contain a '/' then interpret the string as a network/netmask
308 * pair. If "netmask" doesn't exist, use the interface's own netmask
[all...]
/freebsd-head/usr.sbin/rpcbind/
H A Dutil.c70 u_int8_t *p1, *p2, *netmask; local
81 netmask = (uint8_t*) &SA2SINADDR(mask);
88 netmask = (uint8_t*) &SA2SIN6ADDR(mask);
97 if ((p1[i] & netmask[i]) != (p2[i] & netmask[i]))
/freebsd-head/contrib/ntp/lib/isc/win32/
H A Dinterfaceiter.c104 get_broadcastaddr(isc_netaddr_t *bcastaddr, isc_netaddr_t *addr, isc_netaddr_t *netmask) { argument
111 n = *(isc_uint32_t *)&netmask->type.in;
417 iter->current.netmask.family = af;
436 octets = sizeof(iter->current.netmask.type.in6);
438 octets = sizeof(iter->current.netmask.type.in);
439 memset(&iter->current.netmask.type, 0xFF, octets);
444 memset(&iter->current.netmask.type.in6, 0xFF, nbytes);
445 pbits = (void *)&iter->current.netmask.type.in6;
498 &iter->current.netmask);
565 isc_netaddr_fromsockaddr(&iter->current.netmask,
[all...]
/freebsd-head/sbin/routed/
H A Dparms.c175 naddr dst, netmask, gate; local
241 netmask = HOST_MASK;
243 if (!getnet(dname, &dst, &netmask)) {
319 ifp = check_dup(gate,dst,netmask,state);
329 if (netmask == HOST_MASK)
336 ifp->int_mask = netmask;
337 ifp->int_ripv1_mask = netmask;
937 * netmask.
H A Dradix.c171 caddr_t netmask = 0; local
177 netmask = x->rn_key;
180 if (x && netmask) {
181 while (x && x->rn_mask != netmask)
417 caddr_t netmask = (caddr_t)n_arg; local
425 if ((mlen = *(u_char *)netmask) > max_keylen)
434 Bcopy(netmask + skip, addmask_key + skip, mlen - skip);
458 netmask = cp = (caddr_t)(x + 2);
469 cplim = netmask + mlen; isnormal = 1;
470 for (cp = netmask
528 caddr_t v = (caddr_t)v_arg, netmask = (caddr_t)n_arg; local
673 caddr_t v, netmask; local
[all...]
/freebsd-head/contrib/libpcap/pcap/
H A Dpcap.h277 struct sockaddr *netmask; /* netmask for that address */ member in struct:pcap_addr
314 * Value to pass to pcap_compile() as the netmask if you don't know what
315 * the netmask is.
/freebsd-head/crypto/heimdal/lib/roken/
H A Dgetifaddrs.c150 void *netmask; member in struct:rtmaddr_ifamap
783 if (ifamap.netmask) {
788 ifa_make_sockaddr(nlm_family, ifa->ifa_netmask, ifamap.netmask, ifamap.netmask_len,
1293 print_addr("netmask", p->ifa_netmask);

Completed in 449 milliseconds

12