/external/ppp/android/ |
ip-up-vpn.c | 52 uint32_t *netmask = &in_addr(&route.rt_genmask)->s_addr; local 57 device, address, netmask) == 3) { 59 uint32_t bit = ntohl(*netmask); 62 *netmask |= bit;
|
/frameworks/base/core/java/android/net/ |
InterfaceConfiguration.java | 29 public int netmask; field in class:InterfaceConfiguration 40 str.append(" netmask "); putAddress(str, netmask); 63 dest.writeInt(netmask); 74 info.netmask = in.readInt();
|
DhcpInfo.java | 28 public int netmask; field in class:DhcpInfo 45 str.append(" netmask "); putAddress(str, netmask); 70 dest.writeInt(netmask); 84 info.netmask = in.readInt();
|
/external/libpcap/ |
fad-getad.c | 143 struct sockaddr *addr, *netmask, *broadaddr, *dstaddr; local 191 * Therefore, we supply the address and netmask only 193 * there's obviously no netmask), and supply the 201 netmask = ifa->ifa_netmask; 205 netmask = NULL; 257 ifa->ifa_flags, addr, addr_size, netmask, addr_size,
|
fad-glifc.c | 96 struct sockaddr *netmask, *broadaddr, *dstaddr; local 231 * Get the netmask for this address on this interface. 242 netmask = NULL; 253 netmask = (struct sockaddr *)&ifrnetmask.lifr_addr; 354 netmask, sizeof (struct sockaddr_storage),
|
fad-gifc.c | 283 struct sockaddr *netmask, *broadaddr, *dstaddr; local 338 * we still get the netmask, etc. with ioctls on 395 * Get the netmask for this address on this interface. 406 netmask = NULL; 418 netmask = &ifrnetmask.ifr_addr; 419 netmask_size = SA_LEN(netmask); 533 SA_LEN(&ifrp->ifr_addr), netmask, netmask_size,
|
pcap.h | 211 struct sockaddr *netmask; /* netmask for that address */ member in struct:pcap_addr
|
pcap1.h | 207 struct sockaddr *netmask; /* netmask for that address */ member in struct:pcap_addr
|
pcap-dos.c | 473 * Gets localnet & netmask from Watt-32. 476 bpf_u_int32 *netmask, char *errbuf) 485 *netmask = _w32_sin_mask; 486 *localnet = my_ip_addr & *netmask; 489 if (IN_CLASSA(*netmask)) 491 else if (IN_CLASSB(*netmask)) 493 else if (IN_CLASSC(*netmask)) 497 sprintf (errbuf, "inet class for 0x%lx unknown", *netmask); 515 struct sockaddr *addr, *netmask, *broadaddr, *dstaddr; local 537 netmask = (struct sockaddr*) &sa_ll_1 [all...] |
gencode.c | 356 static bpf_u_int32 netmask; variable 378 netmask = mask; [all...] |
/system/core/nexus/ |
DhcpListener.cpp | 65 struct in_addr ipaddr, netmask, gateway, broadcast, dns1, dns2; local 70 if (!inet_aton(strsep(&next, ":"), &netmask)) { 71 LOGW("Malformatted netmask specified"); 85 mHandlers->onDhcpLeaseUpdated(mController, &ipaddr, &netmask,
|
/external/dnsmasq/src/ |
bpf.c | 88 struct in_addr addr, netmask, broadcast; local 93 netmask = ((struct sockaddr_in *) &ifr->ifr_addr)->sin_addr; 98 netmask, broadcast,
|
netlink.c | 194 struct in_addr netmask, addr, broadcast; local 196 netmask.s_addr = htonl(0xffffffff << (32 - ifa->ifa_prefixlen)); 211 if (!((*ipv4_callback)(addr, ifa->ifa_index, netmask, broadcast, parm)))
|
network.c | 119 union mysockaddr *addr, struct in_addr netmask) 194 iface->netmask = netmask; 211 struct in_addr netmask; /* dummy */ local 213 netmask.s_addr = 0; 224 return iface_allowed((struct irec **)vparam, if_index, &addr, netmask); 229 struct in_addr netmask, struct in_addr broadcast, void *vparam) 242 return iface_allowed((struct irec **)vparam, if_index, &addr, netmask);
|
forward.c | 568 struct in_addr netmask, dst_addr_4; local 597 netmask = listen->iface->netmask; 602 netmask.s_addr = 0; 683 netmask = ((struct sockaddr_in *) &ifr.ifr_addr)->sin_addr; 703 dst_addr_4, netmask, now); 722 struct in_addr local_addr, struct in_addr netmask) 770 local_addr, netmask, now);
|
/external/iptables/extensions/ |
libipt_NETMAP.c | 35 u_int32_t netmask, bm; local 39 for (netmask = 0, bm = 0x80000000; bits; bits--, bm >>= 1) 40 netmask |= bm; 41 return htonl(netmask); 45 netmask2bits(u_int32_t netmask) 50 netmask = ntohl(netmask); 51 for (bits = 0, bm = 0x80000000; netmask & bm; netmask <<= 1) 53 if (netmask) 75 u_int32_t netmask; local [all...] |
/frameworks/base/core/jni/ |
android_net_NetUtils.cpp | 34 int ifc_configure(const char *ifname, in_addr_t ipaddr, in_addr_t netmask, in_addr_t gateway, in_addr_t dns1, in_addr_t dns2); 63 jfieldID netmask; member in struct:android::fieldIds 163 env->SetIntField(info, dhcpInfoFieldIds.netmask, mask); 248 dhcpInfoFieldIds.netmask = env->GetFieldID(dhcpInfoFieldIds.dhcpInfoClass, "netmask", "I");
|
android_net_wifi_Wifi.cpp | 43 jfieldID netmask; member in struct:android::fieldIds 490 env->SetIntField(info, dhcpInfoFieldIds.netmask, mask); 574 dhcpInfoFieldIds.netmask = env->GetFieldID(dhcpInfoFieldIds.dhcpInfoClass, "netmask", "I");
|
/external/dhcpcd/ |
net.c | 196 struct sockaddr_in netmask; local 261 memcpy(&netmask, &ifr->ifr_addr, sizeof(netmask)); 264 net->s_addr = netmask.sin_addr.s_addr; 270 netmask.sin_addr.s_addr == net->s_addr))
|
/external/dnsmasq/contrib/wrt/ |
dhcp_release.c | 230 struct in_addr netmask, addr; local 232 netmask.s_addr = htonl(0xffffffff << (32 - ifa->ifa_prefixlen)); 239 if (addr.s_addr && is_same_net(addr, client, netmask))
|
/external/grub/netboot/ |
main.c | 56 static unsigned long netmask; variable 123 etherboot_printf ("Netmask: %@\n", netmask); 131 DEFAULT_NETMASK - Return default netmask for IP address 156 netmask = tmp.s_addr; 164 if (! netmask && ! sm) 165 netmask = default_netmask (); 182 if (IP_BROADCAST == (netmask | arptable[ARP_CLIENT].ipaddr.s_addr) 183 || netmask == (netmask | arptable[ARP_CLIENT].ipaddr.s_addr [all...] |
/system/core/libnetutils/ |
dhcpclient.c | 107 uint32_t netmask; member in struct:dhcp_info 124 *mask = last_good_info.netmask; 139 if (ifc_set_mask(ifname, info->netmask)) { 140 printerr("failed to set netmask %s: %s\n", ipaddr(info->netmask), strerror(errno)); 180 strcpy(mask, ipaddr(info->netmask)); 223 if (optlen >= 4) memcpy(&info->netmask, x, 4);
|
/external/tcpdump/ |
tcpdump.c | 452 bpf_u_int32 localnet, netmask; local 866 netmask = 0; 932 if (pcap_lookupnet(device, &localnet, &netmask, ebuf) < 0) { 934 netmask = 0; 943 if (pcap_compile(pd, &fcode, cmdbuf, Oflag, netmask) < 0) 950 init_addrtoname(localnet, netmask); [all...] |
/external/ppp/pppd/ |
ipcp.c | 72 u_int32_t netmask = 0; /* IP netmask to set on interface */ variable 97 static char netmask_str[20]; /* string form of netmask value */ 212 { "netmask", o_special, (void *)setnetmask, 213 "set netmask", OPT_PRIO | OPT_A2STRVAL | OPT_STATIC, netmask_str }, 490 * setnetmask - set the netmask to be used on the interface. 509 if (n == 0 || p[n] != 0 || (netmask & ~mask) != 0) { 510 option_error("invalid netmask value '%s'", *argv); 514 netmask = mask; [all...] |
/external/quake/quake/src/WinQuake/ |
net_bw.cpp | 230 static int netmask;
variable 332 netmask = 0xffffffff >> (32 - ethdevinfo.subnetMask);
333 bcastaddr.s_addr = (ethdevinfo.inetAddr & netmask) | (~netmask);
|