Home
last modified time | relevance | path

Searched refs:netmask (Results 1 – 15 of 15) sorted by relevance

/system/connectivity/shill/shims/
Dnetfilter_queue_processor.h110 netmask(0), in ListenerEntry()
122 netmask(netmask_in), in ListenerEntry()
128 uint32_t netmask; member
Dnetfilter_queue_processor.cc391 uint32_t netmask = (*entry_ptr)->netmask; in IsIncomingPacketAllowed() local
392 if ((packet.source_ip() & netmask) != ((*entry_ptr)->address & netmask)) { in IsIncomingPacketAllowed()
437 uint32_t netmask = GetNetmaskForDevice(device_index); in LogOutgoingPacket() local
440 address, netmask, destination)); in LogOutgoingPacket()
Dnetfilter_queue_processor_unittest.cc205 GetListener(0).netmask = kNetmask; in TEST_F()
278 GetListener(0).netmask = kNetmask; in TEST_F()
/system/connectivity/shill/test-scripts/
Drouting.py50 self.netmask = int(mask, 16)
64 intToDottedQuad(self.netmask),
83 return (ip & self.netmask) == self.destination
/system/connectivity/shill/dhcp/
Ddhcpv4_config.cc320 IPAddress netmask(IPAddress::GetAddressMaskFromPrefix( in ParseClasslessStaticRoutes() local
322 CHECK(netmask.IntoString(&route.netmask)); in ParseClasslessStaticRoutes()
Ddhcpv4_config_unittest.cc282 EXPECT_EQ("0.0.0.0", route0.netmask); in TEST_F()
287 EXPECT_EQ("255.255.255.0", route1.netmask); in TEST_F()
/system/connectivity/shill/vpn/
Dopenvpn_driver_unittest.cc529 EXPECT_EQ(kNetmask1, routes[1].netmask); in TEST_F()
532 EXPECT_EQ(kNetmask2, routes[2].netmask); in TEST_F()
541 routes[2].netmask = "255.0.0.0"; in TEST_F()
542 routes[3].netmask = "255.0.0.0"; in TEST_F()
545 routes[5].netmask = kNetmask2; in TEST_F()
548 routes[4].netmask = kNetmask1; in TEST_F()
554 EXPECT_EQ(kNetmask1, props.routes[0].netmask); in TEST_F()
557 EXPECT_EQ(kNetmask2, props.routes[1].netmask); in TEST_F()
686 EXPECT_EQ(kNetmask1, props.routes[0].netmask); in TEST_F()
689 EXPECT_EQ(kNetmask2, props.routes[1].netmask); in TEST_F()
Dthird_party_vpn_driver_unittest.cc296 EXPECT_EQ(driver_->ip_properties_.routes[0].netmask, "254.0.0.0"); in TEST_F()
297 EXPECT_EQ(driver_->ip_properties_.routes[1].netmask, "255.255.128.0"); in TEST_F()
Dopenvpn_driver.cc554 route->netmask = value; in ParseRouteOption()
571 if (route.host.empty() || route.netmask.empty() || route.gateway.empty()) { in SetRoutes()
Dthird_party_vpn_driver.cc380 ip_address.family(), ip_address.prefix()).IntoString(&route.netmask); in SetParameters()
/system/core/libnetutils/
Difc_utils.c540 in_addr_t netmask; in ifc_act_on_ipv4_route() local
547 netmask = prefixLengthToIpv4Netmask(prefix_length); in ifc_act_on_ipv4_route()
548 init_sockaddr_in(&rt.rt_genmask, netmask); in ifc_act_on_ipv4_route()
/system/connectivity/shill/
Dipconfig.h47 std::string netmask; member
Drouting_table.cc205 << " Netmask: " << route.netmask in ConfigureRoutes()
223 IPAddress::GetPrefixLengthFromMask(address_family, route.netmask)); in ConfigureRoutes()
Drouting_table_unittest.cc518 route.netmask = kTestRemoteNetmask4; in TEST_F()
/system/connectivity/shill/doc/
Dipconfig-api.txt92 a netmask of 255.255.255.0 has a prefixlen of 24