/external/ltp/testcases/network/stress/ns-tools/ |
set_ipv4addr | 76 # Define IPv4 address, netmask and broadcast 78 netmask=`echo $network_part | sed "s/[[:digit:]]*/255/g"`.`echo $host_part | sed "s/[[:digit:]]*/0/g"` 86 ifconfig $ifname $addr netmask $netmask broadcast $broadcast 89 ret=`$LTP_RSH $RHOST '( PATH=/sbin:/usr/sbin:$PATH ; ifconfig '$ifname' up && ifconfig '$ifname $addr' netmask '$netmask' broadcast '$broadcast' ) >/dev/null 2>&1; echo $?'`
|
add_ipv6addr | 76 # Define IPv6 address and netmask 78 netmask=64 84 ifconfig ${ifname} up ; ifconfig ${ifname} add ${addr}/${netmask} 87 ret=`$LTP_RSH $RHOST '( PATH=/sbin:/usr/sbin:$PATH ; ifconfig '${ifname}' up && ifconfig '${ifname}' add '${addr}/${netmask}' ) >/dev/null 2>&1; echo $?'`
|
/external/ltp/testcases/network/stress/interface/ |
if-addr-adddel | 43 local netmask=64 46 local netmask=24 63 ifconfig $iface add $new_ip/$netmask 65 ifconfig $iface:1 $new_ip netmask 255.255.255.0 68 ip_cmd) ip addr add $new_ip/$netmask dev $iface ;; 90 ifconfig $iface del $new_ip/$netmask 95 ip_cmd) ip addr del $new_ip/$netmask dev $iface ;;
|
if-addr-addlarge | 40 [ "$TST_IPV6" ] && local netmask=64 || local netmask=16 75 ifconfig $iface add $new_ip/$netmask 77 ifconfig $iface:$x:$y $new_ip netmask 255.255.0.0 80 ip_cmd) ip addr add $new_ip/$netmask dev $iface ;; 100 ifconfig $iface del $new_ip/$netmask 105 ip_cmd) ip addr del $new_ip/$netmask dev $iface ;;
|
/device/generic/goldfish/ |
init.ranchu-net.sh | 20 *) ifconfig eth1 "$my_ip" netmask 255.255.255.0 up
|
init.goldfish.sh | 4 ifconfig eth0 10.0.2.15 netmask 255.255.255.0 up 72 *) ifconfig eth1 "$my_ip" netmask 255.255.255.0 up
|
/libcore/ojluni/src/main/java/java/net/ |
InterfaceAddress.java | 50 InterfaceAddress(InetAddress address, Inet4Address broadcast, InetAddress netmask) { 53 this.maskLength = countPrefixLength(netmask); 57 * Counts the prefix length for the netmask address. 59 * A valid netmask address must start with a continuous sequence of 1, followed by a continuous 62 private short countPrefixLength(InetAddress netmask) { 64 for (byte b : netmask.getAddress()) {
|
/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 | 28 public int netmask; field in class:DhcpInfo 44 netmask = source.netmask; 57 str.append(" netmask "); putAddress(str, netmask); 79 dest.writeInt(netmask); 93 info.netmask = in.readInt();
|
/external/syslinux/core/lwip/src/api/ |
netifapi.c | 49 msg->msg.add.netmask, 69 msg->msg.add.netmask, 100 ip_addr_t *netmask, 110 msg.msg.msg.add.netmask = netmask; 128 ip_addr_t *netmask, 135 msg.msg.msg.add.netmask = netmask;
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/site-packages/setools/diff/ |
nodecon.py | 78 self.netmask = ocon.netmask 90 self.netmask == other.netmask
|
/external/syslinux/core/lwip/src/include/lwip/ |
netifapi.h | 56 ip_addr_t *netmask; member in struct:netifapi_msg_msg::__anon37150::__anon37151 78 ip_addr_t *netmask, 86 ip_addr_t *netmask,
|
/device/generic/goldfish/dhcp/server/ |
main.cpp | 32 in_addr_t netmask = 0; local 81 } else if (strcmp("--netmask", argv[i]) == 0) { 83 ALOGE("ERROR: Missing argument to --netmask parameter"); 89 netmask = address.s_addr; 91 ALOGE("ERROR: Invalid netmask '%s'", argv[i + 1]); 123 if (netmask == 0) { 124 ALOGE("ERROR: Missing or invalid --netmask argument"); 131 netmask,
|
/external/libpcap/ |
fad-getad.c | 152 struct sockaddr *addr, *netmask, *broadaddr, *dstaddr; local 219 * the address and netmask only if "ifa_addr" is 221 * no netmask). 226 netmask = ifa->ifa_netmask; 230 netmask = NULL; 270 addr, addr_size, netmask, addr_size,
|
fad-helpers.c | 662 struct sockaddr *netmask, size_t netmask_size, 698 return (add_addr_to_dev(curdev, addr, addr_size, netmask, 712 struct sockaddr *netmask, size_t netmask_size, 738 if (netmask != NULL) { 739 curaddr->netmask = dup_sockaddr(netmask, netmask_size); 740 if (curaddr->netmask == NULL) { 749 curaddr->netmask = NULL; 756 if (curaddr->netmask != NULL) 757 free(curaddr->netmask); [all...] |
/external/syslinux/gpxe/src/usr/ |
route.c | 38 printf ( "%s", inet_ntoa ( miniroute->netmask ) );
|
/external/scapy/scapy/arch/ |
unix.py | 86 netmask = 0 89 netmask = scapy.utils.atol(mask) 91 dest,netmask = dest.split("/") 92 netmask = scapy.utils.itom(int(netmask)) 94 netmask = scapy.utils.itom((dest.count(".") + 1) * 8) 104 routes.append((dest,netmask, gw, netif, ifaddr, metric)) 113 routes.append((dest, netmask, gw, guessed_netif, ifaddr, metric)) 119 pending_if.append((dest,netmask,gw)) 125 for dest,netmask,gw in pending_if [all...] |
/external/scapy/scapy/ |
base_classes.py | 57 def _parse_digit(a,netmask): 58 netmask = min(8,max(netmask,0)) 65 a = (x & (0xff<<netmask) , max(y, (x | (0xff>>(8-netmask))))+1) 67 a = (int(a) & (0xff<<netmask),(int(a) | (0xff>>(8-netmask)))+1) 75 netmask = int(tmp[1]) 76 ret_list = [cls._parse_digit(x, y-netmask) for (x, y) in zip(tmp[0].split('.'), [8, 16, 24, 32])] 77 return ret_list, netmask [all...] |
/external/toybox/toys/pending/ |
route.c | 9 * route add -net target 10.0.0.0 netmask 255.0.0.0 dev eth0 11 * delete net route, must match netmask, informative error message 13 * mod dyn reinstate metric netmask gw mss window irtt dev 29 interface's address and netmask, so the most common use of this command 44 netmask - old way of saying things like ADDR/24 189 * used to get the params like: metric, netmask, gw, mss, window, irtt, dev and their values. 192 static void get_next_params(char **argv, struct rtentry *rt, char **netmask) 205 else if (!strcmp(*argv, "netmask")) { 206 //when adding a network route, the netmask to be used. 210 if (addr_mask) help_exit("dup netmask"); 260 char *netmask, *targetip; local [all...] |
/external/syslinux/core/lwip/src/core/ipv4/ |
ip_addr.c | 73 } else if (ip_addr_netcmp(&ipaddr, &(netif->ip_addr), &(netif->netmask)) 75 && ((addr & ~ip4_addr_get_u32(&netif->netmask)) == 76 (IPADDR_BROADCAST & ~ip4_addr_get_u32(&netif->netmask)))) { 84 /** Checks if a netmask is valid (starting with ones, then only zeros) 86 * @param netmask the IPv4 netmask to check (in network byte order!) 87 * @return 1 if the netmask is valid, 0 if it is not 90 ip4_addr_netmask_valid(u32_t netmask) 93 u32_t nm_hostorder = lwip_htonl(netmask);
|
/external/syslinux/core/lwip/src/core/ |
netif.c | 127 * @param netmask network mask for the new netif 137 netif_add(struct netif *netif, ip_addr_t *ipaddr, ip_addr_t *netmask, 146 ip_addr_set_zero(&netif->netmask); 182 netif_set_addr(netif, ipaddr, netmask, gw); 204 LWIP_DEBUGF(NETIF_DEBUG, (" netmask ")); 205 ip_addr_debug_print(NETIF_DEBUG, netmask); 213 * Change IP address configuration for a network interface (including netmask 218 * @param netmask the new netmask 222 netif_set_addr(struct netif *netif, ip_addr_t *ipaddr, ip_addr_t *netmask, [all...] |
/external/syslinux/gpxe/src/net/ |
ipv4.c | 42 * @v netmask Subnet mask 48 struct in_addr netmask, struct in_addr gateway ) { 52 DBG ( "/%s ", inet_ntoa ( netmask ) ); 67 miniroute->netmask = netmask; 90 DBG ( "/%s ", inet_ntoa ( miniroute->netmask ) ); 124 & miniroute->netmask.s_addr ) == 0 ); 565 .name = "netmask", 590 struct in_addr netmask = { 0 }; local 606 fetch_ipv4_setting ( settings, &netmask_setting, &netmask ); [all...] |
/external/python/cpython3/Lib/ |
ipaddress.py | 24 """A Value Error related to the netmask.""" 159 """Helper to split the netmask and raise AddressValueError if needed""" 435 """Turn the prefix length into a bitwise netmask 448 """Return prefix length from the bitwise netmask. 451 ip_int: An integer, the netmask in expanded bitwise format 467 msg = 'Netmask pattern %r mixes zeroes & ones' 473 msg = '%r is not a valid netmask' % netmask_str 487 NetmaskValueError: If the input is not a valid netmask 503 """Turn a netmask/hostmask string into a prefix length 506 ip_str: The netmask/hostmask to be converte [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/site-packages/setools/ |
nodeconquery.py | 41 with netmask, e.g. 192.168.1.0/255.255.255.0 or 116 netmask = ipaddress.ip_address(nodecon.netmask) 123 # expanded netmasks, only CIDR numbers. Convert netmask 126 # If the netmask happens to be invalid, this will 129 int_netmask = int(netmask)
|
/bionic/libc/kernel/uapi/linux/ |
atmbr2684.h | 71 __be32 netmask; member in struct:br2684_filter
|