HomeSort by: relevance | last modified time | path
    Searched defs:netmask (Results 1 - 25 of 45) sorted by relevancy

1 2

  /src/sys/lib/libsa/
globals.c 26 n_long netmask = 0xffffff00; /* subnet or net mask */ variable
  /src/external/mpl/bind/dist/lib/isc/include/isc/
interfaceiter.h 26 * returned by the iterator. Interfaces whose netmask, interface flags,
52 isc_netaddr_t netmask; /*%< Network mask. */ member in struct:isc_interface
  /src/external/bsd/iscsi/dist/src/lib/
netmask.c 1 /* $NetBSD: netmask.c,v 1.2 2009/06/30 02:44:52 agc Exp $ */
54 /* this struct is used to define a magic netmask value */
72 /* return 1 if address is in netmask's range */
78 const char *netmask; local
85 /* firstly check for any magic values in the netmask */
86 netmask = netmaskarg;
88 if (strcmp(netmask, mp->magic) == 0) {
89 netmask = mp->xform;
96 if ((cp = strchr(netmask, '/')) == NULL) {
97 (void) strlcpy(maskaddr, netmask, sizeof(maskaddr))
    [all...]
  /src/external/bsd/libpcap/dist/
fad-getad.c 169 struct sockaddr *addr, *netmask, *broadaddr, *dstaddr; local
236 * the address and netmask only if "ifa_addr" is
238 * no netmask).
243 netmask = ifa->ifa_netmask;
247 netmask = NULL;
287 addr, addr_size, netmask, addr_size,
fad-glifc.c 97 struct sockaddr *netmask, *broadaddr, *dstaddr; local
216 * Get the netmask for this address on this interface.
227 netmask = NULL;
238 netmask = (struct sockaddr *)&ifrnetmask.lifr_addr;
340 netmask, sizeof (struct sockaddr_storage),
fad-gifc.c 155 struct sockaddr *netmask, *broadaddr, *dstaddr; local
220 * we still get the netmask, etc. with ioctls on
283 * Get the netmask for this address on this interface.
294 netmask = NULL;
306 netmask = &ifrnetmask.ifr_addr;
307 netmask_size = SA_LEN(netmask);
422 netmask, netmask_size, broadaddr, broadaddr_size,
  /src/external/bsd/ntp/dist/libntp/lib/isc/include/isc/
interfaceiter.h 33 * returned by the iterator. Interfaces whose netmask, interface flags,
57 isc_netaddr_t netmask; /*%< Network mask. */ member in struct:isc_interface
  /src/external/mpl/dhcp/bind/dist/lib/isc/include/isc/
interfaceiter.h 27 * returned by the iterator. Interfaces whose netmask, interface flags,
53 isc_netaddr_t netmask; /*%< Network mask. */ member in struct:isc_interface
  /src/tests/fs/nfs/nfsservice/
rumpnfsd.c 62 const char *netmask; local
76 netmask = "255.255.255.0";
84 netmask = argv[5];
133 netcfg_rump_if(ifname, serveraddr, netmask);
136 netcfg_rump_if(ifname_ro, serveraddr_ro, netmask);
  /src/sys/fs/nfs/common/
nfs_diskless.c 160 * boot.netif.netmask netmask on boot interface
178 struct sockaddr_in myaddr, netmask; local
202 if (inaddr_to_sockaddr("boot.netif.netmask", &netmask)) {
203 printf("nfs_diskless: no netmask\n");
211 myaddr.sin_addr.s_addr | ~ netmask.sin_addr.s_addr;
212 bcopy(&netmask, &nd3->myif.ifra_mask, sizeof(netmask));
218 myaddr.sin_addr.s_addr | ~ netmask.sin_addr.s_addr
    [all...]
  /src/external/bsd/libpcap/dist/testprogs/
filtertest.c 218 bpf_u_int32 netmask = PCAP_NETMASK_UNKNOWN; local
272 error("invalid netmask %s", optarg);
275 error("invalid netmask %s: %s", optarg,
279 netmask = addr;
335 if (pcap_compile(pd, &fcode, cmdbuf, Oflag, netmask) < 0)
369 "Usage: %s [-dgO] [ -F file ] [ -m netmask] [ -s snaplen ] dlt [ expression ]\n",
371 "Usage: %s [-dO] [ -F file ] [ -m netmask] [ -s snaplen ] dlt [ expression ]\n",
capturetest.c 111 bpf_u_int32 localnet, netmask; local
243 if (pcap_lookupnet(device, &localnet, &netmask, ebuf) < 0) {
245 netmask = 0;
250 if (pcap_compile(pd, &fcode, cmdbuf, 1, netmask) < 0)
selpolltest.c 70 bpf_u_int32 localnet, netmask; local
152 if (pcap_lookupnet(device, &localnet, &netmask, ebuf) < 0) {
154 netmask = 0;
159 if (pcap_compile(pd, &fcode, cmdbuf, 1, netmask) < 0)
threadsignaltest.c 187 bpf_u_int32 localnet, netmask; local
255 if (pcap_lookupnet(device, &localnet, &netmask, ebuf) < 0) {
257 netmask = 0;
262 if (pcap_compile(pd, &fcode, cmdbuf, 1, netmask) < 0)
writecaptest.c 242 bpf_u_int32 localnet, netmask; local
391 if (pcap_lookupnet(device, &localnet, &netmask, ebuf) < 0) {
393 netmask = 0;
414 if (pcap_compile(pd, &fcode, cmdbuf, 1, netmask) < 0)
  /src/usr.sbin/rpcbind/
util.c 76 u_int8_t *p1 = dst, *p2 = src, *netmask = mask; local
82 if (!(netmask[i] & bitmask))
183 * sinmask: netmask of this interface
205 * sin6mask: netmask of this interface
  /src/sbin/routed/
parms.c 177 naddr dst, netmask, gate; local
243 netmask = HOST_MASK;
245 if (!getnet(dname, &dst, &netmask)) {
320 ifp = check_dup(gate,dst,netmask,state);
330 if (netmask == HOST_MASK)
337 ifp->int_mask = netmask;
338 ifp->int_ripv1_mask = netmask;
953 * netmask.
radix.c 169 caddr_t netmask = 0; local
174 netmask = x->rn_key;
177 if (x && netmask) {
178 while (x && x->rn_mask != netmask)
414 caddr_t netmask = (caddr_t)n_arg; local
422 if ((mlen = *(u_char *)netmask) > max_keylen)
431 Bcopy(netmask + skip, addmask_key + skip, mlen - skip);
455 netmask = cp = (caddr_t)(x + 2);
466 cplim = netmask + mlen; isnormal = 1;
467 for (cp = netmask + skip; (cp < cplim) && *(u_char *)cp == 0xff;
525 caddr_t v = (caddr_t)v_arg, netmask = (caddr_t)n_arg; local
670 caddr_t v, netmask; local
    [all...]
  /src/usr.sbin/ldpd/
mpls_routes.c 274 /* returns in mask the netmask created from CIDR prefixlen */
332 /* Order is: destination, gateway, netmask, genmask, ifp, ifa, tag */
423 /* destination, gateway, netmask, genmask, ifp, ifa */
497 * ORDER of fields is: destination, gateway, netmask, genmask, ifp,
777 union sockunion *ifa, *netmask; local
791 ifa = netmask = (union sockunion *)(msghdr + 1);
792 if (netmask->sa.sa_family != AF_INET)
794 CHECK_LEN(netmask);
  /src/external/bsd/dhcpcd/dist/src/
ipv4.c 381 struct sockaddr_in *dest, *netmask, *gateway; local
413 netmask = satosin(&rth->rt_netmask);
414 cp3 = (const char *)&netmask->sin_addr.s_addr;
415 cplim = cp3 + sizeof(netmask->sin_addr.s_addr);
779 /* If the netmask or broadcast is different, re-add the addresss.
793 /* Linux does not change netmask/broadcast address
  /src/external/bsd/wpa/dist/src/wps/
wps_upnp_i.h 131 struct in_addr netmask; member in struct:upnp_wps_device_sm
162 struct in_addr *netmask, u8 mac[ETH_ALEN]);
  /src/sys/net/
radix.c 199 const char *netmask = NULL; local
204 netmask = x->rn_key;
207 if (x != NULL && netmask != NULL) {
208 while (x != NULL && x->rn_mask != netmask)
484 const char *netmask = n_arg; local
493 if ((mlen = *(const u_char *)netmask) > max_keylen)
502 memmove(addmask_key + skip, netmask + skip, mlen - skip);
526 cp = netmask = (void *)(x + 2);
537 cplim = netmask + mlen; isnormal = 1;
538 for (cp = netmask + skip; (cp < cplim) && *(const u_char *)cp == 0xff;
602 const char *v = v_arg, *netmask = n_arg; local
763 const char *v, *netmask; local
    [all...]
  /src/usr.bin/netstat/
if.c 524 struct sockaddr_in netmask; local
537 netmask =
541 netmask.sin_addr.s_addr = ifaddr_in->ia_subnetmask;
543 cp = netname4(sin, &netmask, nflag);
  /src/external/gpl3/gcc/dist/c++tools/
server.cc 122 struct netmask { struct
126 netmask (const in6_addr &a, unsigned b) function in struct:netmask
154 /* Netmask comparison. */
156 bool operator() (const netmask &a, const netmask &b) const
167 typedef std::set<netmask, netmask_cmp> netmask_set_t;
168 typedef std::vector<netmask> netmask_vec_t;
302 fnotice (file, " -a, --accept Netmask to accept from\n");
331 /* ARG is a netmask to accept from. Add it to the table. Return
376 netmask mask (((const sockaddr_in6 *)next->ai_addr)->sin6_addr, bits)
    [all...]
  /src/external/gpl3/gcc.old/dist/c++tools/
server.cc 122 struct netmask { struct
126 netmask (const in6_addr &a, unsigned b) function in struct:netmask
154 /* Netmask comparison. */
156 bool operator() (const netmask &a, const netmask &b) const
167 typedef std::set<netmask, netmask_cmp> netmask_set_t;
168 typedef std::vector<netmask> netmask_vec_t;
302 fnotice (file, " -a, --accept Netmask to accept from\n");
331 /* ARG is a netmask to accept from. Add it to the table. Return
376 netmask mask (((const sockaddr_in6 *)next->ai_addr)->sin6_addr, bits)
    [all...]

Completed in 44 milliseconds

1 2