HomeSort by relevance Sort by last modified time
    Searched refs:netmask (Results 1 - 25 of 216) sorted by null

1 2 3 4 5 6 7 8 9

  /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 42 local netmask=64
45 local netmask=24
61 ifconfig $iface add $new_ip/$netmask
63 ifconfig $iface:1 $new_ip netmask 255.255.255.0
66 ip_cmd) ip addr add $new_ip/$netmask dev $iface ;;
91 ifconfig $iface del $new_ip/$netmask
96 ip_cmd) ip addr del $new_ip/$netmask dev $iface ;;
if-addr-addlarge 39 [ "$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 ;;
104 ifconfig $iface del $new_ip/$netmask
109 ip_cmd) ip addr del $new_ip/$netmask dev $iface ;;
  /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::__anon32055::__anon32056
78 ip_addr_t *netmask,
86 ip_addr_t *netmask,
  /external/chromium-trace/catapult/telemetry/third_party/websocket-client/websocket/
_url.py 90 addr, netmask = hostname.split("/")
91 return _is_ip_address(addr) and 0 <= int(netmask) < 32
99 netmask = struct.unpack('I', socket.inet_aton(netaddr))[0] & ((2 << int(bits) - 1) - 1)
100 return ipaddr & netmask == netmask
  /external/libpcap/
fad-getad.c 151 struct sockaddr *addr, *netmask, *broadaddr, *dstaddr; local
179 * the address and netmask only if "ifa_addr" is
181 * no netmask).
186 netmask = ifa->ifa_netmask;
190 netmask = NULL;
258 ifa->ifa_flags, addr, addr_size, netmask, addr_size,
  /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 84 __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/
capturetest.c 66 bpf_u_int32 localnet, netmask; local
157 if (pcap_lookupnet(device, &localnet, &netmask, ebuf) < 0) {
159 netmask = 0;
164 if (pcap_compile(pd, &fcode, cmdbuf, 1, netmask) < 0)
findalldevstest.c 81 if (a->netmask)
83 inet_ntoa(((struct sockaddr_in *)(a->netmask))->sin_addr));
99 if (a->netmask)
102 ((struct sockaddr_in6 *)(a->netmask))->sin6_addr.s6_addr,

Completed in 790 milliseconds

1 2 3 4 5 6 7 8 9