Searched refs:netmask (Results 51 - 75 of 121) sorted by relevance

12345

/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/GeoIP-1.5.1/libGeoIP/
H A DGeoIPCity.c179 r->netmask = gl->netmask;
206 r->netmask = gl->netmask;
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/afs/
H A Dnetdevices.c58 bufs[n].netmask.s_addr = ifa->ifa_mask;
H A Dcmservice.c514 __be32 netmask[32]; member in struct:__anon16474::__anon16475
550 reply.ia.netmask[loop] = ifs[loop].netmask.s_addr;
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/um/drivers/
H A Dslip_user.c225 static void slip_add_addr(unsigned char *addr, unsigned char *netmask, argument
232 open_addr(addr, netmask, pri->name);
235 static void slip_del_addr(unsigned char *addr, unsigned char *netmask, argument
242 close_addr(addr, netmask, pri->name);
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/um/os-Linux/drivers/
H A Dtuntap_user.c30 static void tuntap_add_addr(unsigned char *addr, unsigned char *netmask, argument
38 open_addr(addr, netmask, pri->dev_name);
41 static void tuntap_del_addr(unsigned char *addr, unsigned char *netmask, argument
48 close_addr(addr, netmask, pri->dev_name);
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/openvpn-2.3.1/src/openvpn/
H A Dhelper.c46 const in_addr_t netmask = netbits_to_netmask (netbits); local
48 buf_printf (&out, "%s (/%d)", print_in_addr_t (netmask, 0, gc), netbits);
71 print_opt_route (const in_addr_t network, const in_addr_t netmask, struct gc_arena *gc) argument
76 if (netmask)
79 print_in_addr_t (netmask, 0, gc));
114 helper_add_route (const in_addr_t network, const in_addr_t netmask, struct options *o) argument
119 print_in_addr_t (netmask, 0, &o->gc),
259 msg (M_USAGE, "--server directive network/netmask combination is invalid");
262 msg (M_USAGE, "--server directive netmask is invalid");
265 msg (M_USAGE, "--server directive netmask allow
[all...]
H A Dpf.c90 in_addr_t netmask = 0; local
117 netmask = netbits_to_netmask (netbits);
118 if ((network.s_addr & htonl (netmask)) != network.s_addr)
120 network.s_addr &= htonl (netmask);
128 netmask = IPV4_NETMASK_HOST;
136 e->rule.netmask = netmask;
390 print_in_addr_t (rule->netmask, 0, &gc),
468 if ((addr & se->rule.netmask) == se->rule.network)
632 print_in_addr_t (e->rule.netmask,
[all...]
H A Dtun.c63 const in_addr_t netmask,
147 * like a netmask.
160 msg (M_WARN, "WARNING: Since you are using --dev tun with a point-to-point topology, the second argument to --ifconfig must be an IP address. You are using something (%s) that looks more like a netmask. %s",
167 msg (M_WARN, "WARNING: Since you are using --dev tap, the second argument to --ifconfig must be a netmask, for example something like 255.255.255.0. %s",
178 in_addr_t netmask)
180 return local | ~netmask;
248 * Issue a warning if ip/netmask (on the virtual IP network) conflicts with
256 const in_addr_t netmask,
267 const in_addr_t network = ip & netmask;
269 /* do the two subnets defined by network/netmask an
177 generate_ifconfig_broadcast_addr(in_addr_t local, in_addr_t netmask) argument
255 check_subnet_conflict(const in_addr_t ip, const in_addr_t netmask, const char *prefix) argument
3383 get_adapter_ip_netmask(const IP_ADAPTER_INFO *ai, const int n, in_addr_t *ip, in_addr_t *netmask) argument
3423 test_adapter_ip_netmask(const IP_ADAPTER_INFO *ai, const in_addr_t ip, const in_addr_t netmask) argument
3460 in_addr_t ip, netmask; local
3514 adapter_index_of_ip(const IP_ADAPTER_INFO *list, const in_addr_t ip, int *count, in_addr_t *netmask) argument
4203 netsh_ifconfig(const struct tuntap_options *to, const char *flex_name, const in_addr_t ip, const in_addr_t netmask, const unsigned int flags) argument
4500 dhcp_masq_addr(const in_addr_t local, const in_addr_t netmask, const int offset) argument
[all...]
H A Dtun.h255 const in_addr_t netmask,
336 in_addr_t *netmask);
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/dnsmasq-2.15/src/
H A Ddhcp.c204 /* Fill in missing netmask and broadcast address values for any approriate
206 if (!context->netmask.s_addr)
215 context->netmask = iface_netmask;
221 syslog(LOG_WARNING, "DHCP range %s -- %s is not consistent with netmask %s",
229 if (context->netmask.s_addr)
231 if (is_same_net(iface_addr, context->start, context->netmask))
240 is_same_net(iface_broadcast, context->start, context->netmask))
243 context->broadcast.s_addr = context->start.s_addr | ~context->netmask.s_addr;
246 else if (mess->giaddr.s_addr && is_same_net(mess->giaddr, context->start, context->netmask))
252 context->broadcast.s_addr = context->start.s_addr | ~context->netmask
[all...]
H A Drfc2131.c156 if (context_tmp->netmask.s_addr &&
157 is_same_net(addr, context_tmp->start, context_tmp->netmask) &&
158 is_same_net(addr, context_tmp->end, context_tmp->netmask))
514 if (!is_same_net(mess->yiaddr, context->start, context->netmask))
800 p = option_put(p, end, OPTION_NETMASK, INADDRSZ, ntohl(context->netmask.s_addr));
/netgear-R7000-V1.0.7.12_1.2.5/src/router/busybox-1.x/networking/
H A Droute.c104 "\012\021netmask\0"
158 const char *netmask = NULL; local
188 /* Default netmask. */
189 netmask = bb_str_default;
233 netmask = args_m1;
234 isnet = INET_resolve(netmask, (struct sockaddr_in *) &mask, 0);
236 bb_error_msg_and_die("resolving %s", netmask);
305 bb_error_msg_and_die("netmask %.8x and host route conflict",
309 bb_error_msg_and_die("bogus netmask %s", netmask);
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/mips/include/asm/lasat/
H A Dlasat.h74 unsigned int netmask; member in struct:lasat_eeprom_struct
99 unsigned int netmask; member in struct:lasat_eeprom_struct_pre7
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/include/linux/
H A Dip_vs.h110 __be32 netmask; /* persistent netmask */ member in struct:ip_vs_service_user
172 __be32 netmask; /* persistent netmask */ member in struct:ip_vs_service_entry
324 IPVS_SVC_ATTR_NETMASK, /* persistent netmask */
/netgear-R7000-V1.0.7.12_1.2.5/src/router/rc/
H A Drc.h118 extern int ifconfig(char *ifname, int flags, char *addr, char *netmask);
119 extern int ifconfig_get(char *name, int *flags, unsigned long *addr, unsigned long *netmask);
H A Dnetwork.c66 char *ipaddr, *netmask, *gateway, *metric; local
72 netmask = word;
73 ipaddr = strsep(&netmask, ":");
74 if (!ipaddr || !netmask)
76 gateway = netmask;
77 netmask = strsep(&gateway, ":");
78 if (!netmask || !gateway)
87 route_add(ifname, atoi(metric) + 1, ipaddr, gateway, netmask);
97 char *ipaddr, *netmask, *gateway, *metric; local
103 netmask
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/libpcap-1.4.0/
H A Dpcap-dos.c478 * Gets localnet & netmask from Watt-32.
481 bpf_u_int32 *netmask, char *errbuf)
490 *netmask = _w32_sin_mask;
491 *localnet = my_ip_addr & *netmask;
494 if (IN_CLASSA(*netmask))
496 else if (IN_CLASSB(*netmask))
498 else if (IN_CLASSC(*netmask))
502 sprintf (errbuf, "inet class for 0x%lx unknown", *netmask);
520 struct sockaddr *addr, *netmask, *broadaddr, *dstaddr; local
542 netmask
480 pcap_lookupnet(const char *device, bpf_u_int32 *localnet, bpf_u_int32 *netmask, char *errbuf) argument
[all...]
H A Dpcap-sita.c109 printf("%15s ", (addr->netmask) ? inet_ntoa(((struct sockaddr_in *)addr->netmask)->sin_addr) : "");
139 printf(" %p %p %p %p, next: %p\n", addr->addr, addr->netmask, addr->broadaddr, addr->dstaddr, addr->next);
397 if (addr->netmask) free(addr->netmask);
631 if (*ptr) { /* process any netmask */
639 addr->netmask = (struct sockaddr *)s;
/netgear-R7000-V1.0.7.12_1.2.5/src/router/iputils/
H A Drdisc.c74 struct in_addr netmask; member in struct:interface
621 if ((sin->sin_addr.s_addr & ifp->netmask.s_addr) ==
622 (ifp->address.s_addr & ifp->netmask.s_addr)) {
1157 interfaces[i].netmask.s_addr = (__u32)0xffffffff;
1180 logperror("initifs: ioctl (get netmask)");
1184 interfaces[i].netmask = sin->sin_addr;
1262 if ((in.s_addr & interfaces[i].netmask.s_addr ) ==
1263 (interfaces[i].remoteaddr.s_addr & interfaces[i].netmask.s_addr))
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/zebra/zebra/
H A Dzebra_snmp.c434 static struct in_addr netmask;
452 masklen2ip(np->p.prefixlen, &netmask);
454 return (u_char *)&netmask;
431 static struct in_addr netmask; local
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iproute2/examples/
H A Ddhcp-client-script158 mask_arg="netmask $3"
246 route $op -net $1 netmask `ABCMask "$1"` gw $2
348 ifconfig $interface:dhcp 10.10.10.10 netmask 255.255.255.255
/netgear-R7000-V1.0.7.12_1.2.5/src/router/shared/
H A Dnetconf.h68 struct in_addr netmask; member in struct:_netconf_match_t::__anon20305
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/net/netfilter/ipvs/
H A Dip_vs_ctl.c1174 if (u->af == AF_INET6 && (u->netmask < 1 || u->netmask > 128)) {
1198 svc->netmask = u->netmask;
1271 if (u->af == AF_INET6 && (u->netmask < 1 || u->netmask > 128)) {
1289 svc->netmask = u->netmask;
1796 ntohl(svc->netmask));
1969 usvc->netmask
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/tcpdump-4.4.0/
H A Dtcpdump.c677 bpf_u_int32 localnet, netmask; local
1202 netmask = 0;
1354 if (pcap_lookupnet(device, &localnet, &netmask, ebuf) < 0) {
1356 netmask = 0;
1365 if (pcap_compile(pd, &fcode, cmdbuf, Oflag, netmask) < 0)
1373 init_addrtoname(localnet, netmask);
1584 if (pcap_compile(pd, &fcode, cmdbuf, Oflag, netmask) < 0)
/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/dhcp6/
H A Difaddrs.c62 void *netmask; member in struct:rtmaddr_ifamap
746 if (ifamap.netmask)
756 ifamap.netmask,

Completed in 423 milliseconds

12345