/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/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();
|
NetworkUtils.java | 99 ipInfo.netmask, 106 String interfaceName, int ipAddress, int netmask, int gateway, int dns1, int dns2);
|
/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;
|
/external/libpcap/ |
fad-win32.c | 55 struct sockaddr *netmask, struct sockaddr *broadaddr, 82 if (netmask != NULL) { 83 curaddr->netmask = (struct sockaddr*)dup_sockaddr(netmask, sizeof(struct sockaddr_storage)); 84 if (curaddr->netmask == NULL) { 91 curaddr->netmask = NULL;
|
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,
|
inet.c | 362 struct sockaddr *netmask, size_t netmask_size, 409 if (netmask != NULL) { 410 curaddr->netmask = dup_sockaddr(netmask, netmask_size); 411 if (curaddr->netmask == NULL) { 420 curaddr->netmask = NULL; 427 if (curaddr->netmask != NULL) 428 free(curaddr->netmask); 444 if (curaddr->netmask != NULL) 445 free(curaddr->netmask); [all...] |
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,
|
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),
|
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...] |
/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,
|
DhcpClient.cpp | 44 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);
|
/external/dnsmasq/src/ |
dhcp.c | 28 struct in_addr netmask, struct in_addr broadcast, void *vparam); 357 /* This is a complex routine: it gets called with each (address,netmask,broadcast) triple 361 2) Fills in any netmask and broadcast addresses which have not been explicitly configured. 368 struct in_addr netmask, struct in_addr broadcast, void *vparam) 376 (is_same_net(local, context->start, netmask) || 377 is_same_net(local, context->end, netmask))) 379 if (context->netmask.s_addr != netmask.s_addr && 380 !(is_same_net(local, context->start, netmask) && 381 is_same_net(local, context->end, netmask))) [all...] |
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)))
|
/system/core/rootdir/etc/ |
init.goldfish.sh | 3 ifconfig eth0 10.0.2.15 netmask 255.255.255.0 up
|
/cts/tests/tests/net/src/android/net/cts/ |
DhcpInfoTest.java | 45 String expectedDefault = "ipaddr 0.0.0.0 gateway 0.0.0.0 netmask 0.0.0.0 dns1 0.0.0.0 " 52 String expected = "ipaddr " + STR_ADDR1 + " gateway " + STR_ADDR2 + " netmask " 63 dhcpInfo.netmask = ipToInteger(STR_ADDR3);
|
/external/dhcpcd/ |
if-linux.c | 283 const struct in_addr *address, const struct in_addr *netmask, 303 nlm->ifa.ifa_prefixlen = inet_ntocidr(*netmask); 321 const struct in_addr *destination, const struct in_addr *netmask, 360 netmask->s_addr == iface->net.s_addr) 366 netmask->s_addr == INADDR_BROADCAST)) 373 nlm->rt.rtm_dst_len = inet_ntocidr(*netmask); 382 netmask->s_addr != INADDR_BROADCAST)
|
/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);
|
ifc_utils.c | 400 in_addr_t netmask, 419 if (ifc_set_mask(ifname, netmask)) { 420 printerr("failed to set netmask %s: %s\n", ipaddr_to_string(netmask), strerror(errno));
|
/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...] |
/external/ipsec-tools/src/racoon/samples/roadwarrior/client/ |
phase1-up.sh | 36 ifconfig ${if} alias ${INTERNAL_ADDR4} netmask ${INTERNAL_NETMASK4}
|
/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");
|
/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))
|