/external/chromium_org/chromeos/network/ |
network_ip_config.cc | 32 const std::string& address, const std::string& netmask, 37 netmask(netmask), 48 + " netmask: " + netmask
|
network_util.cc | 37 std::string netmask; local 40 return netmask; 50 netmask += "."; 53 netmask += base::StringPrintf("%d", value); 55 return netmask; 58 int32 NetmaskToPrefixLength(const std::string& netmask) { 61 base::StringTokenizer t(netmask, "."); 69 // "0" then the netmask is invalid. For example, 255.224.255.0
|
network_ip_config.h | 32 const std::string& address, const std::string& netmask, 41 std::string netmask; member in struct:chromeos::NetworkIPConfig
|
network_util.h | 79 // Converts a |prefix_length| to a netmask. (for IPv4 only) 80 // e.g. a |prefix_length| of 24 is converted to a netmask of "255.255.255.0". 84 // Converts a |netmask| to a prefixlen. (for IPv4 only) 85 // e.g. a |netmask| of 255.255.255.0 is converted to a prefixlen of 24 86 CHROMEOS_EXPORT int32 NetmaskToPrefixLength(const std::string& netmask);
|
/external/iptables/extensions/ |
libipt_NETMAP.c | 33 netmask2bits(uint32_t netmask) 38 netmask = ntohl(netmask); 39 for (bits = 0, bm = 0x80000000; netmask & bm; netmask <<= 1) 41 if (netmask) 42 return -1; /* holes in netmask */
|
/frameworks/base/core/java/android/net/ |
DhcpInfo.java | 29 public int netmask; field in class:DhcpInfo 45 netmask = source.netmask; 58 str.append(" netmask "); putAddress(str, netmask); 80 dest.writeInt(netmask); 94 info.netmask = in.readInt();
|
NetworkUtils.java | 141 * Convert a network prefix length to an IPv4 netmask integer 143 * @return the IPv4 netmask as an integer in network byte order 155 * Convert a IPv4 netmask integer to a prefix length 156 * @param netmask as an integer in network byte order 159 public static int netmaskIntToPrefixLength(int netmask) { 160 return Integer.bitCount(netmask);
|
/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),
|
/device/generic/goldfish/ |
init.goldfish.sh | 4 ifconfig eth0 10.0.2.15 netmask 255.255.255.0 up 66 *) ifconfig eth1 "$my_ip" netmask 255.255.255.0 up
|
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.4.3/sysroot/usr/include/linux/ |
atmbr2684.h | 90 __be32 netmask; /* 0 = disable filter */ member in struct:br2684_filter
|
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/sysroot/usr/include/linux/ |
atmbr2684.h | 90 __be32 netmask; /* 0 = disable filter */ member in struct:br2684_filter
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.7-4.6/sysroot/usr/include/linux/ |
atmbr2684.h | 90 __be32 netmask; /* 0 = disable filter */ member in struct:br2684_filter
|
/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/libppp/src/ |
arp.c | 288 struct sockaddr_in *ifa, *netmask; local 291 netmask = (struct sockaddr_in *)sa[RTAX_NETMASK]; 296 strncpy(a, inet_ntoa(netmask->sin_addr), sizeof a - 1); 302 if ((ifa->sin_addr.s_addr & netmask->sin_addr.s_addr) == 303 (ipaddr.s_addr & netmask->sin_addr.s_addr)) {
|
/cts/tests/tests/net/src/android/net/cts/ |
DhcpInfoTest.java | 29 String expectedDefault = "ipaddr 0.0.0.0 gateway 0.0.0.0 netmask 0.0.0.0 dns1 0.0.0.0 " 36 String expected = "ipaddr " + STR_ADDR1 + " gateway " + STR_ADDR2 + " netmask " 47 dhcpInfo.netmask = ipToInteger(STR_ADDR3);
|
/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...] |
/bionic/libc/kernel/arch-mips/asm/lasat/ |
lasat.h | 62 unsigned int netmask; member in struct:lasat_eeprom_struct 92 unsigned int netmask; member in struct:lasat_eeprom_struct_pre7
|
/development/ndk/platforms/android-9/arch-mips/include/asm/lasat/ |
lasat.h | 62 unsigned int netmask; member in struct:lasat_eeprom_struct 92 unsigned int netmask; member in struct:lasat_eeprom_struct_pre7
|
/external/ipsec-tools/src/racoon/samples/roadwarrior/client/ |
phase1-up.sh | 36 ifconfig ${if} alias ${INTERNAL_ADDR4} netmask ${INTERNAL_NETMASK4}
|
/external/kernel-headers/original/asm-mips/lasat/ |
lasat.h | 74 unsigned int netmask; member in struct:lasat_eeprom_struct 99 unsigned int netmask; member in struct:lasat_eeprom_struct_pre7
|
/prebuilts/ndk/8/platforms/android-14/arch-mips/usr/include/asm/lasat/ |
lasat.h | 62 unsigned int netmask; member in struct:lasat_eeprom_struct 92 unsigned int netmask; member in struct:lasat_eeprom_struct_pre7
|