/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/ |
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();
|
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();
|
/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;
|
/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/dhcpcd/dhcpcd-hooks/ |
50-dhcpcd-compat | 5 NETMASK=${new_subnet_mask} 34 for x in IPADDR INTERFACE NETMASK BROADCAST NETWORK DHCPSID GATEWAYS \
|
/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);
|
/system/core/toolbox/ |
route.c | 49 /* route add -net 192.168.1.2 netmask 255.255.255.0 gw 192.168.1.1 */ 81 /* route add -net 192.168.1.2 netmask 255.255.255.0 gw 192.168.1.1 */ 83 !strcmp(argv[4], "netmask") && !strcmp(argv[6], "gw")) {
|
/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...] |
/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-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;
|
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-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),
|
/system/core/rootdir/etc/ |
init.goldfish.sh | 3 ifconfig eth0 10.0.2.15 netmask 255.255.255.0 up
|
/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)
|
if-bsd.c | 62 const struct in_addr *netmask, const struct in_addr *broadcast, 86 ADDADDR(ifa.ifra_mask, netmask); 179 /* Ensure that netmask is set correctly */
|
/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/bouncycastle/src/main/java/org/bouncycastle/util/ |
IPAddress.java | 19 * Validate the given IPv4 or IPv6 address and netmask. 23 * @return true if a valid address with netmask, false otherwise
|
/external/ppp/pppd/plugins/radius/etc/ |
dictionary.compat | 8 ATTRIBUTE Framed-Netmask 9 ipaddr
|
/external/iproute2/include/linux/ |
if_arp.h | 112 struct sockaddr arp_netmask; /* netmask (only for proxy arps) */ 120 struct sockaddr arp_netmask; /* netmask (only for proxy arps) */ 128 #define ATF_NETMASK 0x20 /* want to use a netmask (only
|
/external/ipsec-tools/src/racoon/ |
isakmp_cfg.h | 151 struct in_addr mask4; /* IPv4 netmask */ 173 #define ISAKMP_CFG_MASK4_EXTERN 0x10 /* Netmask from external config */ 175 #define ISAKMP_CFG_MASK4_LOCAL 0x40 /* Netmask from local pool */
|
/external/kernel-headers/original/linux/ |
if_arp.h | 112 struct sockaddr arp_netmask; /* netmask (only for proxy arps) */ 120 struct sockaddr arp_netmask; /* netmask (only for proxy arps) */ 128 #define ATF_NETMASK 0x20 /* want to use a netmask (only
|
/libcore/luni/src/main/native/ |
ifaddrs-android.h | 54 // Interface netmask. 113 // that into a BSD-compatible netmask represented by a sockaddr*. 115 // ...and work out the netmask from the prefix length.
|
/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);
|