/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 | 34 local netmask=64 37 local netmask=24 54 ifconfig $iface add $new_ip/$netmask 56 ifconfig $iface:1 $new_ip netmask 255.255.255.0 59 ip) ip addr add $new_ip/$netmask dev $iface ;; 81 ifconfig $iface del $new_ip/$netmask 86 ip) ip addr del $new_ip/$netmask dev $iface ;;
|
if-addr-addlarge | 32 [ "$TST_IPV6" ] && local netmask=64 || local netmask=16 67 ifconfig $iface add $new_ip/$netmask 69 ifconfig $iface:$x:$y $new_ip netmask 255.255.0.0 72 ip) ip addr add $new_ip/$netmask dev $iface ;; 92 ifconfig $iface del $new_ip/$netmask 97 ip) ip addr del $new_ip/$netmask dev $iface ;;
|
if-mtu-change | 57 [ "$TST_IPV6" ] && local netmask=64 || local netmask=16
|
if4-addr-change | 63 ROD ifconfig $(tst_iface) ${IPV4_LNETWORK}${add_to_net}.${num} netmask \
|
/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
|
/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 */
|
/device/generic/goldfish/dhcp/server/ |
dhcpserver.cpp | 141 in_addr_t netmask; local 146 &netmask, 163 netmask, 176 in_addr_t netmask; local 182 &netmask, 197 netmask, 225 in_addr_t netmask; local 230 &netmask, 302 const in_addr_t netmask) { 303 // If the bits outside of the netmask are all zero it's a network address [all...] |
dhcpserver.h | 58 in_addr_t* netmask); 62 in_addr_t* netmask,
|
/device/google/cuttlefish_common/tools/ |
vlan_prototype_up.sh | 12 netmask="255.255.255.252" 18 /sbin/ifconfig "${bridge}" "${gateway}" netmask "${netmask}" up
|
/external/libpcap/ |
fad-getad.c | 151 struct sockaddr *addr, *netmask, *broadaddr, *dstaddr; local 218 * the address and netmask only if "ifa_addr" is 220 * no netmask). 225 netmask = ifa->ifa_netmask; 229 netmask = NULL; 269 addr, addr_size, netmask, addr_size,
|
fad-gifc.c | 154 struct sockaddr *netmask, *broadaddr, *dstaddr; local 219 * we still get the netmask, etc. with ioctls on 282 * Get the netmask for this address on this interface. 293 netmask = NULL; 305 netmask = &ifrnetmask.ifr_addr; 306 netmask_size = SA_LEN(netmask); 421 netmask, netmask_size, broadaddr, broadaddr_size,
|
/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"); 261 char *netmask, *targetip; local [all...] |
/device/generic/goldfish/network/netmgr/ |
address_assigner.cpp | 100 // The netmask is the inverted maximum value of the lower bits. That is if 102 // bits is 7 (2^3 - 1) (111 binary). Inverting this value gives the netmask 104 in_addr_t netmask = htonl(~((1 << (32 - mMaskLength)) - 1)); local 106 if (!setAddress(sock, SIOCSIFNETMASK, interfaceName, netmask)) { 107 LOGE("AddressAssigner unable to set interface netmask: %s", 114 // of the netmask set to one. 115 in_addr_t broadcast = address | ~netmask;
|
/bionic/libc/kernel/uapi/linux/ |
atmbr2684.h | 71 __be32 netmask; member in struct:br2684_filter
|
/external/kernel-headers/original/uapi/linux/ |
atmbr2684.h | 102 __be32 netmask; /* 0 = disable filter */ member in struct:br2684_filter
|
/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...] |
/external/dnsmasq/src/ |
dhcp.c | 27 static int complete_context(struct in_addr local, int if_index, struct in_addr netmask, 262 /* This is a complex routine: it gets called with each (address,netmask,broadcast) triple 266 2) Fills in any netmask and broadcast addresses which have not been explicitly configured. 274 static int complete_context(struct in_addr local, int if_index, struct in_addr netmask, 280 if (!(context->flags & CONTEXT_NETMASK) && (is_same_net(local, context->start, netmask) || 281 is_same_net(local, context->end, netmask))) { 282 if (context->netmask.s_addr != netmask.s_addr && 283 !(is_same_net(local, context->start, netmask) && 284 is_same_net(local, context->end, netmask))) { [all...] |
/external/u-boot/drivers/net/ |
netconsole.c | 55 static struct in_addr netmask; local 62 netmask = env_get_ip("netmask"); 69 ((netmask.s_addr & our_ip.s_addr) == 70 (netmask.s_addr & ip.s_addr) && /* on the same net and */ 71 (netmask.s_addr | ip.s_addr) == ~0)); /* bcast to our net */
|
/external/ltp/testcases/network/stress/route/ |
route4-change-gw | 73 # Netmask of for the tested network 219 route add -net $dst_network netmask 255.255.255.0 gw ${IPV4_NETWORK}.${rhost_part} dev $lhost_ifname 244 route add -net $dst_network netmask 255.255.255.0 gw ${IPV4_NETWORK}.${rhost_part} dev $lhost_ifname 245 route del -net $dst_network netmask 255.255.255.0 gw ${IPV4_NETWORK}.${pre_rhost_part} dev $lhost_ifname
|
route4-change-if | 70 # Netmask of for the gateway 245 route add -net $dst_network netmask 255.255.255.0 gw $gateway dev $lhost_ifname 276 route add -net $dst_network netmask 255.255.255.0 gw $gateway dev $lhost_ifname 277 route del -net $dst_network netmask 255.255.255.0 gw $pre_gateway dev $pre_lhost_ifname
|