/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 | 50 local netmask=64 53 local netmask=24 71 ifconfig $iface add $new_ip/$netmask 73 ifconfig $iface:1 $new_ip netmask 255.255.255.0 76 ip_cmd) ip addr add $new_ip/$netmask dev $iface ;; 101 ifconfig $iface del $new_ip/$netmask 106 ip_cmd) ip addr del $new_ip/$netmask dev $iface ;;
|
if-addr-addlarge | 47 [ "$TST_IPV6" ] && local netmask=64 || local netmask=16 83 ifconfig $iface add $new_ip/$netmask 85 ifconfig $iface:$x:$y $new_ip netmask 255.255.0.0 88 ip_cmd) ip addr add $new_ip/$netmask dev $iface ;; 112 ifconfig $iface del $new_ip/$netmask 117 ip_cmd) ip addr del $new_ip/$netmask dev $iface ;;
|
if4-addr-change | 54 ifconfig $(tst_iface) $lhost_ipv4addr netmask 255.255.255.0 \
|
/device/generic/goldfish/ |
init.ranchu-net.sh | 4 ifconfig eth0 10.0.2.15 netmask 255.255.255.0 up 29 *) 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 66 *) ifconfig eth1 "$my_ip" netmask 255.255.255.0 up
|
/libcore/ojluni/src/main/java/java/net/ |
InterfaceAddress.java | 49 InterfaceAddress(InetAddress address, Inet4Address broadcast, InetAddress netmask) { 52 this.maskLength = countPrefixLength(netmask); 56 * Counts the prefix length for the netmask address. 58 * A valid netmask address must start with a continuous sequence of 1, followed by a continuous 61 private short countPrefixLength(InetAddress netmask) { 63 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::__anon33724::__anon33725 78 ip_addr_t *netmask, 86 ip_addr_t *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/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...] |
/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
|
/development/ndk/platforms/android-21/include/linux/ |
atmbr2684.h | 84 __be32 netmask; member in struct:br2684_filter
|
/external/kernel-headers/original/uapi/linux/ |
atmbr2684.h | 101 __be32 netmask; /* 0 = disable filter */ member in struct:br2684_filter
|
/external/libpcap/tests/ |
findalldevstest.c | 100 if (a->netmask) 102 inet_ntoa(((struct sockaddr_in *)(a->netmask))->sin_addr)); 118 if (a->netmask) 121 ((struct sockaddr_in6 *)(a->netmask))->sin6_addr.s6_addr,
|