Home
last modified time | relevance | path

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

12

/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/
DInterfaceParams.java36 public class InterfaceParams { class
52 public static InterfaceParams getByName(String name) { in getByName()
60 return new InterfaceParams(name, netif.getIndex(), macAddr, netif.getMTU()); in getByName()
66 public InterfaceParams(String name, int index, MacAddress macAddr) { in InterfaceParams() method in InterfaceParams
70 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.java25 import com.android.net.module.util.InterfaceParams;
79 final InterfaceParams params = InterfaceParams.getByName(iface); in attachProgram()
120 final InterfaceParams params = InterfaceParams.getByName(iface); in detachProgram()
DBpfCoordinator.java73 import com.android.net.module.util.InterfaceParams;
368 @NonNull public InterfaceParams getInterfaceParams(String ifName) { in getInterfaceParams()
369 return InterfaceParams.getByName(ifName); in getInterfaceParams()
792 final InterfaceParams interfaceParams, int newUpstreamIfindex, in updateAllIpv6Rules()
967 final InterfaceParams interfaceParams = ipServer.getInterfaceParams(); in updateIpv6UpstreamInterface()
999 final InterfaceParams interfaceParams = ipServer.getInterfaceParams(); in addOrRemoveIpv6Downstream()
1021 InterfaceParams interfaceParams = ipServer.getInterfaceParams(); in updateClientInfoIpv4()
1038 InterfaceParams interfaceParams = ipServer.getInterfaceParams(); in handleNeighborEvent()
1168 final InterfaceParams params = mDeps.getInterfaceParams(ifaceName); in updateUpstreamNetworkState()
/packages/modules/Connectivity/staticlibs/tests/unit/src/com/android/net/module/util/
DInterfaceParamsTest.java36 assertNull(InterfaceParams.getByName(null)); in testNullInterfaceReturnsNull()
41 assertNull(InterfaceParams.getByName("doesnotexist0")); in testNonExistentInterfaceReturnsNull()
46 final InterfaceParams ifParams = InterfaceParams.getByName("lo"); in testLoopback()
/packages/modules/Connectivity/Tethering/src/android/net/ip/
DNeighborPacketForwarder.java36 import com.android.net.module.util.InterfaceParams;
67 private InterfaceParams mListenIfaceParams, mSendIfaceParams;
73 public NeighborPacketForwarder(Handler h, InterfaceParams tetheredInterface, int type) { in NeighborPacketForwarder()
87 public void setUpstreamIface(InterfaceParams upstreamParams) { in setUpstreamIface()
88 final InterfaceParams oldUpstreamParams; in setUpstreamIface()
DDadProxy.java23 import com.android.net.module.util.InterfaceParams;
37 public DadProxy(Handler h, InterfaceParams tetheredIface) { in DadProxy()
51 public void setUpstreamIface(InterfaceParams upstreamIface) { in setUpstreamIface()
DIpServer.java90 import com.android.net.module.util.InterfaceParams;
201 public DadProxy getDadProxy(Handler handler, InterfaceParams ifParams) { in getDadProxy()
206 public RouterAdvertisementDaemon getRouterAdvertisementDaemon(InterfaceParams ifParams) { in getRouterAdvertisementDaemon()
211 public InterfaceParams getInterfaceParams(String ifName) { in getInterfaceParams()
212 return InterfaceParams.getByName(ifName); in getInterfaceParams()
302 private InterfaceParams mInterfaceParams;
453 public InterfaceParams getInterfaceParams() { in getInterfaceParams()
845 InterfaceParams upstreamIfaceParams = null; in updateUpstreamIPv6LinkProperties()
1495 final InterfaceParams upstreamIfaceParams = in processMessage()
DRouterAdvertisementDaemon.java48 import com.android.net.module.util.InterfaceParams;
107 private final InterfaceParams mInterface;
248 public RouterAdvertisementDaemon(InterfaceParams ifParams) { in RouterAdvertisementDaemon()
/packages/modules/NetworkStack/src/android/net/ip/
DMulticastReportMonitor.java24 import com.android.net.module.util.InterfaceParams;
61 @NonNull InterfaceParams ifParams, in MulticastReportMonitor()
85 PacketListener(Handler h, InterfaceParams ifParams, Callback callback, FileDescriptor fd) { in PacketListener()
DConnectivityPacketTracker.java44 import com.android.net.module.util.InterfaceParams;
156 InterfaceParams ifParams, in ConnectivityPacketTracker()
213 @NonNull InterfaceParams ifParams, in ConnectivityPacketTracker()
227 private final InterfaceParams mInterface;
229 PacketListener(Handler h, InterfaceParams ifParams) { in PacketListener()
DIpReachabilityMonitor.java57 import com.android.net.module.util.InterfaceParams;
221 private final InterfaceParams mInterfaceParams;
249 Context context, InterfaceParams ifParams, Handler h, SharedLog log, Callback callback,
256 public IpReachabilityMonitor(Context context, InterfaceParams ifParams, Handler h,
DIpClient.java182 import com.android.net.module.util.InterfaceParams;
841 private InterfaceParams mInterfaceParams;
898 public InterfaceParams getInterfaceParams(String ifname) { in getInterfaceParams()
899 return InterfaceParams.getByName(ifname); in getInterfaceParams()
921 InterfaceParams ifParams, DhcpClient.Dependencies deps) { in makeDhcpClient()
929 InterfaceParams ifParams, Dhcp6Client.Dependencies deps) { in makeDhcp6Client()
974 InterfaceParams ifParams, Handler h, SharedLog log, in getIpReachabilityMonitor()
1011 ApfFilter.ApfConfiguration config, InterfaceParams ifParams, in maybeCreateApfFilter()
2695 InterfaceParams params = mDependencies.getInterfaceParams(mInterfaceName); in maybeRestoreInterfaceMtu()
DIpClientLinkObserver.java51 import com.android.net.module.util.InterfaceParams;
370 public void setInterfaceParams(InterfaceParams params) { in setInterfaceParams()
/packages/modules/NetworkStack/src/android/net/util/
DRawPacketTracker.java33 import com.android.net.module.util.InterfaceParams;
54 Handler handler, InterfaceParams ifParams, int maxPktRecords) { in createPacketTracker()
152 final InterfaceParams ifParams = InterfaceParams.getByName(ifaceName); in startCapture()
/packages/modules/NetworkStack/tests/unit/src/android/net/ip/
DMulticastReportMonitorTest.kt28 import com.android.net.module.util.InterfaceParams
55 private val loInterfaceParams = InterfaceParams.getByName("lo")
57 InterfaceParams(
DConnectivityPacketTrackerTest.kt30 import com.android.net.module.util.InterfaceParams
62 private val loInterfaceParams = InterfaceParams.getByName("lo")
64 InterfaceParams(
/packages/modules/Connectivity/Tethering/tests/privileged/src/android/net/ip/
DDadProxyTest.java42 import com.android.net.module.util.InterfaceParams;
75 private InterfaceParams mUpstreamParams, mTetheredParams;
130 mUpstreamParams = InterfaceParams.getByName(upstreamIface); in setupTapInterfaces()
137 mTetheredParams = InterfaceParams.getByName(tetheredIface); in setupTapInterfaces()
243 private void updateSrcMac(ByteBuffer buf, InterfaceParams ifaceParams) { in updateSrcMac()
DRouterAdvertisementDaemonTest.java56 import com.android.net.module.util.InterfaceParams;
93 private InterfaceParams mTetheredParams;
142 mTetheredParams = InterfaceParams.getByName(mTetheredReader.iface.getInterfaceName()); in setupTapInterfaces()
/packages/modules/NetworkStack/tests/integration/signature/android/net/util/
DNetworkStackUtilsIntegrationTest.kt50 import com.android.net.module.util.InterfaceParams
189 val ifParams = InterfaceParams.getByName(iface.interfaceName) in doTestAttachRaFilter()
248 val ifParams = InterfaceParams.getByName(iface.interfaceName) in testAttachEgressIgmpReportFilter()
274 val ifParams = InterfaceParams.getByName(iface.interfaceName) in testAttachEgressIgmpReportFilterForMulticastGroupChange()
325 val ifParams = InterfaceParams.getByName(iface.interfaceName) in testAttachEgressMulticastReportFilter()
693 val ifParams = InterfaceParams.getByName(iface.interfaceName) in isTestInterfaceEgressPacket()
698 val ifindex = InterfaceParams.getByName(iface.interfaceName).index in doTestDhcpResponseWithMfBitDropped()
/packages/modules/Connectivity/Tethering/tests/unit/src/android/net/ip/
DIpServerTest.java100 import com.android.net.module.util.InterfaceParams;
160 private static final InterfaceParams TEST_IFACE_PARAMS = new InterfaceParams(
162 private static final InterfaceParams UPSTREAM_IFACE_PARAMS = new InterfaceParams(
164 private static final InterfaceParams UPSTREAM_IFACE_PARAMS2 = new InterfaceParams(
167 private static final InterfaceParams IPSEC_IFACE_PARAMS = new InterfaceParams(
280 InterfaceParams interfaceParams = mDependencies.getInterfaceParams(upstreamIface); in initTetheredStateMachine()
/packages/modules/NetworkStack/src/android/net/dhcp6/
DDhcp6Client.java51 import com.android.net.module.util.InterfaceParams;
127 @NonNull private final InterfaceParams mIface;
161 @NonNull final InterfaceParams iface, @NonNull final Dependencies deps) { in Dhcp6Client()
198 @NonNull final StateMachine controller, @NonNull final InterfaceParams ifParams, in makeDhcp6Client()
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/
DBpfCoordinatorTest.java121 import com.android.net.module.util.InterfaceParams;
254 private static final InterfaceParams UPSTREAM_IFACE_PARAMS = new InterfaceParams(
257 private static final InterfaceParams UPSTREAM_XLAT_IFACE_PARAMS = new InterfaceParams(
261 private static final InterfaceParams UPSTREAM_IFACE_PARAMS2 = new InterfaceParams(
264 private static final InterfaceParams DOWNSTREAM_IFACE_PARAMS = new InterfaceParams(
266 private static final InterfaceParams DOWNSTREAM_IFACE_PARAMS2 = new InterfaceParams(
269 private static final InterfaceParams IPSEC_IFACE_PARAMS = new InterfaceParams(
285 public final InterfaceParams interfaceParams;
290 UpstreamInformation(final InterfaceParams interfaceParams, in UpstreamInformation()
/packages/modules/Connectivity/service-t/src/com/android/server/ethernet/
DEthernetNetworkFactory.java51 import com.android.net.module.util.InterfaceParams;
92 public InterfaceParams getNetworkInterfaceByName(String name) { in getNetworkInterfaceByName()
93 return InterfaceParams.getByName(name); in getNetworkInterfaceByName()
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DClatCoordinator.java47 import com.android.net.module.util.InterfaceParams;
165 final InterfaceParams params = InterfaceParams.getByName(ifName); in getInterfaceIndex()
/packages/modules/Connectivity/tests/unit/java/com/android/server/ethernet/
DEthernetNetworkFactoryTest.java59 import com.android.net.module.util.InterfaceParams;
93 @Mock private InterfaceParams mInterfaceParams;

12