Home
last modified time | relevance | path

Searched refs:RTN_UNICAST (Results 1 – 25 of 31) sorted by relevance

12

/packages/modules/Connectivity/staticlibs/client-libs/netd/com/android/net/module/util/
DNetdUtils.java22 import static android.net.RouteInfo.RTN_UNICAST;
165 new RouteInfo(dest, null, iface, RTN_UNICAST)); in tetherInterface()
167 new RouteInfo(new IpPrefix("fe80::/64"), null, iface, RTN_UNICAST)); in tetherInterface()
218 new RouteInfo(new IpPrefix("fe80::/64"), null, iface, RTN_UNICAST)); in addRoutesToLocalNetwork()
240 case RTN_UNICAST: in findNextHop()
290 case RouteInfo.RTN_UNICAST: in toRouteInfoParcel()
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DOffloadControllerTest.java26 import static android.net.RouteInfo.RTN_UNICAST;
303 lp.addRoute(new RouteInfo(new IpPrefix("192.0.2.0/24"), null, null, RTN_UNICAST)); in testSetUpstreamLinkPropertiesWorking()
319 lp.addRoute(new RouteInfo(null, InetAddress.getByName(ipv4Gateway), null, RTN_UNICAST)); in testSetUpstreamLinkPropertiesWorking()
330 lp.addRoute(new RouteInfo(null, InetAddress.getByName(ipv6Gw1), null, RTN_UNICAST)); in testSetUpstreamLinkPropertiesWorking()
344 lp.addRoute(new RouteInfo(null, InetAddress.getByName(ipv6Gw2), null, RTN_UNICAST)); in testSetUpstreamLinkPropertiesWorking()
362 RTN_UNICAST)); in testSetUpstreamLinkPropertiesWorking()
364 RTN_UNICAST)); in testSetUpstreamLinkPropertiesWorking()
384 lp.addRoute(new RouteInfo(new IpPrefix("2001:db8::/64"), null, null, RTN_UNICAST)); in testSetUpstreamLinkPropertiesWorking()
710 new RouteInfo(new IpPrefix(USB_PREFIX), null, null, RTN_UNICAST)); in testAddRemoveDownstreams()
717 new RouteInfo(new IpPrefix(IPV6_LINKLOCAL), null, null, RTN_UNICAST)); in testAddRemoveDownstreams()
[all …]
DIPv6TetheringCoordinatorTest.java20 import static android.net.RouteInfo.RTN_UNICAST;
91 linkProp.addRoute(new RouteInfo(new IpPrefix("::/0"), null, TEST_INTERFACE, RTN_UNICAST)); in createDualStackUpstream()
93 RTN_UNICAST)); in createDualStackUpstream()
DTetheringTest.java36 import static android.net.RouteInfo.RTN_UNICAST;
563 interfaceName, RTN_UNICAST)); in buildUpstreamLinkProperties()
573 interfaceName, RTN_UNICAST)); in buildUpstreamLinkProperties()
582 clatInterface, RTN_UNICAST)); in buildUpstreamLinkProperties()
/packages/modules/Connectivity/framework/src/android/net/
DRouteInfo.java62 RTN_UNICAST,
94 public static final int RTN_UNICAST = 1; field in RouteInfo
174 case RTN_UNICAST: in RouteInfo()
250 this(destination, gateway, iface, RTN_UNICAST); in RouteInfo()
427 return mType == RTN_UNICAST && mDestination.getPrefixLength() == 0; in isDefaultRoute()
533 if (mType != RTN_UNICAST) { in toString()
/packages/modules/Connectivity/tests/common/java/android/net/
DRouteInfoTest.java20 import static android.net.RouteInfo.RTN_UNICAST;
301 r = new RouteInfo(new IpPrefix(Inet6Address.ANY, 0), RTN_UNICAST); in testRouteTypes()
302 assertEquals(RTN_UNICAST, r.getType()); in testRouteTypes()
354 RouteInfo.RTN_UNICAST, 1500); in testMtu()
374 RouteInfo.RTN_UNICAST, 1400).getRouteKey(); in testRouteKey()
DLinkPropertiesTest.java20 import static android.net.RouteInfo.RTN_UNICAST;
1262 lp.addRoute(new RouteInfo(new IpPrefix(ADDRV4, 24), RTN_UNICAST)); in testHasExcludeRoute()
1263 lp.addRoute(new RouteInfo(new IpPrefix(ADDRV6, 0), RTN_UNICAST)); in testHasExcludeRoute()
1276 lp.addRoute(new RouteInfo(v6, address("fe80::1"), "wlan0", RTN_UNICAST, 1280)); in testRouteAddWithSameKey()
1278 lp.addRoute(new RouteInfo(v6, address("fe80::1"), "wlan0", RTN_UNICAST, 1500)); in testRouteAddWithSameKey()
1281 lp.addRoute(new RouteInfo(v4, address("192.0.2.1"), "wlan0", RTN_UNICAST, 1460)); in testRouteAddWithSameKey()
1300 lp.addRoute(new RouteInfo(new IpPrefix(DNS6, 127), RTN_UNICAST)); in assertExcludeRoutesVisible()
1317 lp.addRoute(new RouteInfo(new IpPrefix(DNS6, 127), RTN_UNICAST)); in assertExcludeRoutesNotVisible()
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DNetdWrapper.java189 case RouteInfo.RTN_UNICAST: in modifyRoute()
231 new RouteInfo(new IpPrefix("fe80::/64"), null, iface, RouteInfo.RTN_UNICAST)); in addInterfaceToLocalNetwork()
453 null, null, RouteInfo.RTN_UNICAST); in tetherInterface()
DIpConfigStore.java149 gateway, null, RouteInfo.RTN_UNICAST); in readIpConfigurations()
/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/
DNetUtils.java73 if (bestRoute != null && bestRoute.getType() == RouteInfo.RTN_UNICAST) { in selectBestRoute()
/packages/modules/Connectivity/staticlibs/device/com/android/net/module/util/netlink/
DNetlinkConstants.java172 public static final short RTN_UNICAST = 1; field in NetlinkConstants
/packages/modules/NetworkStack/common/networkstackclient/src/android/net/shared/
DInitialConfiguration.java182 && route.getType() == RouteInfo.RTN_UNICAST in isDirectlyConnectedRoute()
/packages/modules/NetworkStack/src/android/net/ip/
DIpClientLinkObserver.java27 import static com.android.net.module.util.netlink.NetlinkConstants.RTN_UNICAST;
366 && msg.getRtMsgHeader().type == RTN_UNICAST; in isGlobalUnicastRoute()
DIpReachabilityMonitor.java376 && route.getType() == RouteInfo.RTN_UNICAST) {
DIpClient.java19 import static android.net.RouteInfo.RTN_UNICAST;
1963 newLp.addRoute(new RouteInfo(prefix, null, mInterfaceName, RTN_UNICAST)); in assembleLinkProperties()
2114 if (r.getType() == RTN_UNICAST && r.getDestination().getPrefixLength() == 0 in getIPv6DefaultGateway()
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DIPv6TetheringCoordinator.java279 lp.addRoute(new RouteInfo(local48, null, null, RouteInfo.RTN_UNICAST)); in getUniqueLocalConfig()
/packages/modules/Connectivity/Tethering/src/android/net/ip/
DIpServer.java19 import static android.net.RouteInfo.RTN_UNICAST;
580 return new RouteInfo(PrefixUtils.asIpPrefix(ipv4Address), null, mIfaceName, RTN_UNICAST); in getDirectConnectedRoute()
1554 localRoutes.add(new RouteInfo(ipp, null, ifname, RTN_UNICAST)); in getLocalRoutesFor()
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/netlink/
DRtNetlinkRouteMessageTest.java87 assertEquals(NetlinkConstants.RTN_UNICAST, rtmsg.type); in assertRtmRouteMessage()
/packages/modules/Connectivity/Tethering/tests/unit/src/android/net/ip/
DIpServerTest.java21 import static android.net.RouteInfo.RTN_UNICAST;
840 linkProp.addRoute(new RouteInfo(new IpPrefix("::/0"), null, iface, RTN_UNICAST)); in buildIpv6OnlyLinkProperties()
986 RouteInfo.RTN_UNICAST); in assertIPv4AddressAndDirectlyConnectedRoute()
/packages/modules/Connectivity/thread/service/java/com/android/server/thread/
DTunInterfaceController.java282 return new RouteInfo(ipPrefix, null, mIfName, RouteInfo.RTN_UNICAST, MTU); in getRouteForIpPrefix()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiBackupDataV1Parser.java668 RouteInfo route = new RouteInfo(null, gateway, null, RouteInfo.RTN_UNICAST); in parseIpConfigurationFromXml()
/packages/modules/NetworkStack/tests/unit/src/android/net/ip/
DIpClientTest.java29 import static com.android.net.module.util.netlink.NetlinkConstants.RTN_UNICAST;
280 (short) RT_SCOPE_UNIVERSE /* scope */, RTN_UNICAST /* type */, 0 /* flags */); in buildRtmRouteMessage()
/packages/modules/Wifi/service/java/com/android/server/wifi/aware/
DWifiAwareDataPathStateManager.java19 import static android.net.RouteInfo.RTN_UNICAST;
1699 RTN_UNICAST)); in configureAgentProperties()
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DNetworkDiagnostics.java221 if (route.getType() == RouteInfo.RTN_UNICAST && route.hasGateway()) { in NetworkDiagnostics()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/details2/
DWifiDetailPreferenceController2Test.java260 IPV4_SUBNET = new RouteInfo(subnet, any4, null /* iface */, RouteInfo.RTN_UNICAST);
262 RouteInfo.RTN_UNICAST);

12