Home
last modified time | relevance | path

Searched refs:InterfaceParams (Results 1 – 25 of 27) sorted by relevance

12

/packages/modules/NetworkStack/common/moduleutils/src/android/net/util/
DInterfaceParams.java36 public class InterfaceParams { class
48 public static InterfaceParams getByName(String name) { in getByName()
56 return new InterfaceParams(name, netif.getIndex(), macAddr, netif.getMTU()); in getByName()
62 public InterfaceParams(String name, int index, MacAddress macAddr) { in InterfaceParams() method in InterfaceParams
66 public InterfaceParams(String name, int index, MacAddress macAddr, int defaultMtu) { in InterfaceParams() method in InterfaceParams
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DBpfUtils.java21 import android.net.util.InterfaceParams;
76 final InterfaceParams params = InterfaceParams.getByName(iface); in attachProgram()
115 final InterfaceParams params = InterfaceParams.getByName(iface); in detachProgram()
DBpfCoordinator.java49 import android.net.util.InterfaceParams;
283 @NonNull public InterfaceParams getInterfaceParams(String ifName) { in getInterfaceParams()
284 return InterfaceParams.getByName(ifName); in getInterfaceParams()
840 final InterfaceParams params = mDeps.getInterfaceParams(ifaceName); in updateUpstreamNetworkState()
/packages/modules/NetworkStack/tests/unit/src/android/net/util/
DInterfaceParamsTest.java38 assertNull(InterfaceParams.getByName(null)); in testNullInterfaceReturnsNull()
43 assertNull(InterfaceParams.getByName("doesnotexist0")); in testNonExistentInterfaceReturnsNull()
48 final InterfaceParams ifParams = InterfaceParams.getByName("lo"); in testLoopback()
/packages/modules/Connectivity/Tethering/src/android/net/ip/
DNeighborPacketForwarder.java27 import android.net.util.InterfaceParams;
65 private InterfaceParams mListenIfaceParams, mSendIfaceParams;
71 public NeighborPacketForwarder(Handler h, InterfaceParams tetheredInterface, int type) { in NeighborPacketForwarder()
85 public void setUpstreamIface(InterfaceParams upstreamParams) { in setUpstreamIface()
86 final InterfaceParams oldUpstreamParams; in setUpstreamIface()
DDadProxy.java19 import android.net.util.InterfaceParams;
36 public DadProxy(Handler h, InterfaceParams tetheredIface) { in DadProxy()
50 public void setUpstreamIface(InterfaceParams upstreamIface) { in setUpstreamIface()
DIpServer.java51 import android.net.util.InterfaceParams;
169 public DadProxy getDadProxy(Handler handler, InterfaceParams ifParams) { in getDadProxy()
180 public RouterAdvertisementDaemon getRouterAdvertisementDaemon(InterfaceParams ifParams) { in getRouterAdvertisementDaemon()
185 public InterfaceParams getInterfaceParams(String ifName) { in getInterfaceParams()
186 return InterfaceParams.getByName(ifName); in getInterfaceParams()
250 private InterfaceParams mInterfaceParams;
720 InterfaceParams upstreamIfaceParams = null; in updateUpstreamIPv6LinkProperties()
1377 final InterfaceParams upstreamIfaceParams = in processMessage()
DRouterAdvertisementDaemon.java40 import android.net.util.InterfaceParams;
106 private final InterfaceParams mInterface;
250 public RouterAdvertisementDaemon(InterfaceParams ifParams) { in RouterAdvertisementDaemon()
/packages/modules/NetworkStack/src/android/net/ip/
DConnectivityPacketTracker.java27 import android.net.util.InterfaceParams;
80 public ConnectivityPacketTracker(Handler h, InterfaceParams ifParams, LocalLog log) { in ConnectivityPacketTracker()
101 private final InterfaceParams mInterface;
103 PacketListener(Handler h, InterfaceParams ifParams) { in PacketListener()
DIpReachabilityMonitor.java34 import android.net.util.InterfaceParams;
183 private final InterfaceParams mInterfaceParams;
201 Context context, InterfaceParams ifParams, Handler h, SharedLog log, Callback callback,
208 IpReachabilityMonitor(Context context, InterfaceParams ifParams, Handler h, SharedLog log,
DIpClient.java67 import android.net.util.InterfaceParams;
515 private InterfaceParams mInterfaceParams;
547 public InterfaceParams getInterfaceParams(String ifname) { in getInterfaceParams()
548 return InterfaceParams.getByName(ifname); in getInterfaceParams()
570 InterfaceParams ifParams, DhcpClient.Dependencies deps) { in makeDhcpClient()
617 InterfaceParams ifParams, IpClientCallbacksWrapper cb) { in maybeCreateApfFilter()
1814 InterfaceParams params = mDependencies.getInterfaceParams(mInterfaceName); in maybeRestoreInterfaceMtu()
DIpClientLinkObserver.java34 import android.net.util.InterfaceParams;
292 public void setInterfaceParams(InterfaceParams params) { in setInterfaceParams()
/packages/modules/Connectivity/Tethering/tests/privileged/src/android/net/ip/
DDadProxyTest.java32 import android.net.util.InterfaceParams;
71 private InterfaceParams mUpstreamParams, mTetheredParams;
126 mUpstreamParams = InterfaceParams.getByName(upstreamIface); in setupTapInterfaces()
133 mTetheredParams = InterfaceParams.getByName(tetheredIface); in setupTapInterfaces()
239 private void updateSrcMac(ByteBuffer buf, InterfaceParams ifaceParams) { in updateSrcMac()
DRouterAdvertisementDaemonTest.java48 import android.net.util.InterfaceParams;
96 private InterfaceParams mTetheredParams;
145 mTetheredParams = InterfaceParams.getByName(mTetheredReader.iface.getInterfaceName()); in setupTapInterfaces()
/packages/modules/NetworkStack/common/moduleutils/
DAndroid.bp31 "src/android/net/util/InterfaceParams.java",
59 "src/android/net/util/InterfaceParams.java",
/packages/modules/Connectivity/Tethering/tests/unit/src/android/net/ip/
DIpServerTest.java87 import android.net.util.InterfaceParams;
158 private static final InterfaceParams TEST_IFACE_PARAMS = new InterfaceParams(
160 private static final InterfaceParams UPSTREAM_IFACE_PARAMS = new InterfaceParams(
162 private static final InterfaceParams UPSTREAM_IFACE_PARAMS2 = new InterfaceParams(
165 private static final InterfaceParams IPSEC_IFACE_PARAMS = new InterfaceParams(
/packages/modules/NetworkStack/tests/unit/src/android/net/ip/
DIpReachabilityMonitorTest.kt29 import android.net.util.InterfaceParams in <lambda>()
76 private val TEST_IFACE = InterfaceParams("fake0", 21, null) in <lambda>()
DIpClientTest.java59 import android.net.util.InterfaceParams;
136 @Mock private InterfaceParams mInterfaceParams;
140 private InterfaceParams mIfParams;
164 ? new InterfaceParams(ifname, TEST_IFINDEX, TEST_MAC) in setTestInterfaceParams()
/packages/modules/NetworkStack/tests/integration/src/android/net/ip/
DIpClientIntegrationTestCommon.java120 import android.net.util.InterfaceParams;
378 public InterfaceParams getInterfaceParams(String ifname) { in getInterfaceParams()
380 ? new InterfaceParams(ifname, 1 /* index */, in getInterfaceParams()
398 InterfaceParams ifParams, DhcpClient.Dependencies deps) { in makeDhcpClient()
1205 InterfaceParams params = InterfaceParams.getByName(mIfaceName);
1213 params = InterfaceParams.getByName("lo");
1451 assertNull(InterfaceParams.getByName(mIfaceName));
/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpClient.java76 import android.net.util.InterfaceParams;
343 private InterfaceParams mIface;
531 Context context, StateMachine controller, InterfaceParams ifParams, in makeDhcpClient()
595 if (mIface == null) mIface = InterfaceParams.getByName(mIfaceName); in initInterface()
/packages/modules/NetworkStack/src/android/net/apf/
DApfFilter.java52 import android.net.util.InterfaceParams;
347 private final InterfaceParams mInterfaceParams;
389 ApfFilter(Context context, ApfConfiguration config, InterfaceParams ifParams, in ApfFilter()
1790 InterfaceParams ifParams, IpClientCallbacksWrapper ipClientCallback) { in maybeCreate()
/packages/modules/NetworkStack/tests/integration/src/android/net/util/
DNetworkStackUtilsIntegrationTest.kt148 val ifParams = InterfaceParams.getByName(iface.interfaceName) in testAttachRaFilter()
/packages/modules/Connectivity/service/
Djarjar-rules.txt81 rule android.net.util.InterfaceParams* com.android.connectivity.@0
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DBpfCoordinatorTest.java88 import android.net.util.InterfaceParams;
152 private static final InterfaceParams UPSTREAM_IFACE_PARAMS = new InterfaceParams(
DTetheringTest.java152 import android.net.util.InterfaceParams;
343 Handler handler, InterfaceParams ifParams) { in getDadProxy()
349 InterfaceParams ifParams) { in getRouterAdvertisementDaemon()
354 public InterfaceParams getInterfaceParams(String ifName) { in getInterfaceParams()
368 return new InterfaceParams(ifName, ArrayUtils.indexOf(ifaces, ifName) + IFINDEX_OFFSET, in getInterfaceParams()

12