Home
last modified time | relevance | path

Searched refs:mtu (Results 1 – 25 of 54) sorted by relevance

123

/packages/modules/NetworkStack/common/networkstackclient/src/android/net/ipmemorystore/
DNetworkAttributes.java84 public final Integer mtu; field in NetworkAttributes
112 @Nullable final Integer mtu, in NetworkAttributes() argument
114 if (mtu != null && mtu < 0) throw new IllegalArgumentException("MTU can't be negative"); in NetworkAttributes()
123 this.mtu = mtu; in NetworkAttributes()
136 parcelable.mtu >= 0 ? parcelable.mtu : null, in NetworkAttributes()
186 parcelable.mtu = (null == mtu) ? -1 : mtu; in toParcelable()
209 + samenessContribution(WEIGHT_MTU, mtu, o.mtu) in getNetworkGroupSamenessConfidence()
253 mMtu = attributes.mtu; in Builder()
315 public Builder setMtu(@Nullable final Integer mtu) { in setMtu() argument
316 if (null != mtu && mtu < 0) throw new IllegalArgumentException("MTU can't be negative"); in setMtu()
[all …]
/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpResultsParcelableUtil.java41 p.mtu = results.mtu; in toStableParcelable()
56 results.mtu = p.mtu; in fromStableParcelable()
DDhcpPacket.java1012 Short mtu = null; in decodeFullPacket() local
1205 mtu = packet.getShort(); in decodeFullPacket()
1366 newPacket.mMtu = mtu; in decodeFullPacket()
1450 results.mtu = (mMtu != null && MIN_MTU <= mMtu && mMtu <= MAX_MTU) ? mMtu : 0; in toDhcpResults()
1514 short mtu, String captivePortalUrl, Integer ipv6OnlyWaitTime) { in buildOfferPacket() argument
1526 pkt.mMtu = mtu; in buildOfferPacket()
1545 short mtu, String captivePortalUrl) { in buildOfferPacket() argument
1548 domainName, hostname, metered, mtu, captivePortalUrl, null /* V6ONLY_WAIT */); in buildOfferPacket()
1559 short mtu, boolean rapidCommit, String captivePortalUrl, Integer ipv6OnlyWaitTime) { in buildAckPacket() argument
1571 pkt.mMtu = mtu; in buildAckPacket()
[all …]
/packages/modules/Connectivity/Tethering/src/android/net/ip/
DRouterAdvertisementDaemon.java139 public int mtu; field in RouterAdvertisementDaemon.RaParams
146 mtu = IPV6_MIN_MTU; in RaParams()
154 mtu = other.mtu; in RaParams()
324 putMtu(ra, mRaParams.mtu); in assembleRaLocked()
425 private static void putMtu(ByteBuffer ra, int mtu) { in putMtu() argument
426 final ByteBuffer mtuOption = MtuOption.build((mtu < IPV6_MIN_MTU) ? IPV6_MIN_MTU : mtu); in putMtu()
/packages/modules/NetworkStack/tests/integration/src/android/net/ip/
DIpClientIntegrationTestCommon.java716 final Inet4Address clientAddress, final Integer leaseTimeSec, final short mtu,
725 false /* metered */, mtu, captivePortalUrl, ipv6OnlyWaitTime);
729 final Inet4Address clientAddress, final Integer leaseTimeSec, final short mtu,
731 return buildDhcpOfferPacket(packet, clientAddress, leaseTimeSec, mtu, captivePortalUrl,
736 final Inet4Address clientAddress, final Integer leaseTimeSec, final short mtu,
746 false /* metered */, mtu, rapidCommit, captivePortalApiUrl, ipv6OnlyWaitTime);
750 final Inet4Address clientAddress, final Integer leaseTimeSec, final short mtu,
752 return buildDhcpAckPacket(packet, clientAddress, leaseTimeSec, mtu, rapidCommit,
818 final long startTime, final int mtu) {
833 assertEquals(new Integer(mtu), na.mtu);
[all …]
/packages/modules/NetworkStack/tests/unit/src/android/net/testutils/
DTestableNetworkCallbackTest.kt183 val mtu = 1984 in <lambda>() constant
185 this.mtu = mtu in <lambda>()
204 lp.mtu == mtu in <lambda>()
/packages/modules/Connectivity/framework/src/android/net/
DRouteInfo.java162 @Nullable String iface, @RouteType int type, int mtu) { in RouteInfo() argument
218 mMtu = mtu; in RouteInfo()
650 int mtu = in.readInt();
652 return new RouteInfo(dest, gateway, iface, type, mtu);
DLinkProperties.java631 public void setMtu(int mtu) { in setMtu() argument
632 mMtu = mtu; in setMtu()
1816 public static boolean isValidMtu(int mtu, boolean ipv6) { in isValidMtu() argument
1818 return mtu >= MIN_MTU_V6 && mtu <= MAX_MTU; in isValidMtu()
1820 return mtu >= MIN_MTU && mtu <= MAX_MTU; in isValidMtu()
/packages/modules/Connectivity/Tethering/tests/integration/src/android/net/
DEthernetTetheringTest.java173 int mtu = getMTU(mTestIface); in testVirtualEthernetAlreadyExists() local
182 checkVirtualEthernet(mTestIface, mtu); in testVirtualEthernetAlreadyExists()
507 private TapPacketReader makePacketReader(FileDescriptor fd, int mtu) { in makePacketReader() argument
508 final TapPacketReader reader = new TapPacketReader(mHandler, fd, mtu); in makePacketReader()
514 private void checkVirtualEthernet(TestNetworkInterface iface, int mtu) throws Exception { in checkVirtualEthernet() argument
516 mTapPacketReader = makePacketReader(fd, mtu); in checkVirtualEthernet()
/packages/modules/NetworkStack/tests/unit/src/android/net/dhcp/
DDhcpPacketTest.java319 int leaseDuration, boolean hasMeteredHint, int mtu, DhcpResults dhcpResults) in assertDhcpResults() argument
337 assertEquals(mtu, dhcpResults.mtu); in assertDhcpResults()
723 private byte[] mtuBytes(int mtu) { in mtuBytes() argument
725 if (mtu > Short.MAX_VALUE - Short.MIN_VALUE) { in mtuBytes()
727 String.format("Invalid MTU %d, must be 16-bit unsigned", mtu)); in mtuBytes()
729 String hexString = String.format("1a02%04xff", mtu); in mtuBytes()
/packages/modules/Connectivity/Tethering/tests/privileged/src/android/net/ip/
DRouterAdvertisementDaemonTest.java229 final MtuOption mtu = Struct.parse(MtuOption.class, mtuBuf); in isPacketMatched() local
230 assertEquals(mNewParams.mtu, mtu.mtu); in isPacketMatched()
/packages/modules/NetworkStack/src/com/android/server/connectivity/ipmemorystore/
DIpMemoryStoreDatabase.java272 if (null != attributes.mtu) { in toContentValues()
273 values.put(NetworkAttributesContract.COLNAME_MTU, attributes.mtu); in toContentValues()
317 final int mtu = getInt(cursor, NetworkAttributesContract.COLNAME_MTU, -1); in readNetworkAttributesLine() local
328 if (mtu >= 0) { in readNetworkAttributesLine()
329 builder.setMtu(mtu); in readNetworkAttributesLine()
/packages/modules/Connectivity/tests/cts/hostside/app/src/com/android/cts/net/hostside/
DPacketReflector.java61 public PacketReflector(FileDescriptor fd, int mtu) { in PacketReflector() argument
64 mBuf = new byte[mtu]; in PacketReflector()
/packages/modules/NetworkStack/tests/unit/src/com/android/server/connectivity/ipmemorystore/
DIpMemoryStoreServiceTest.java162 final List<InetAddress> dnsServers, final int mtu) { in buildTestNetworkAttributes() argument
176 if (MTU_NULL != mtu) { in buildTestNetworkAttributes()
177 na.setMtu(mtu); in buildTestNetworkAttributes()
489 assertEquals(attributes.mtu, attr.mtu);
/packages/apps/Test/connectivity/PMC/src/com/android/pmc/
DGattServer.java189 public void onMtuChanged(BluetoothDevice device, int mtu) { in onMtuChanged() argument
190 Log.d(TAG, "onMtuChanged: " + mtu); in onMtuChanged()
DGattClientListener.java263 public void onMtuChanged(BluetoothGatt gatt, int mtu, int status) { in onMtuChanged() argument
265 Log.d(TAG, "onMtuChanged " + mtu + " status: " + status); in onMtuChanged()
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/networkstack-aidl-interfaces/1/android/net/
DDhcpResultsParcelable.aidl5 int mtu;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/ipmemorystore-aidl-interfaces/5/android/net/ipmemorystore/
DNetworkAttributesParcelable.aidl25 int mtu;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/ipmemorystore-aidl-interfaces/8/android/net/ipmemorystore/
DNetworkAttributesParcelable.aidl25 int mtu;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/ipmemorystore-aidl-interfaces/4/android/net/ipmemorystore/
DNetworkAttributesParcelable.aidl7 int mtu;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/ipmemorystore-aidl-interfaces/3/android/net/ipmemorystore/
DNetworkAttributesParcelable.aidl24 int mtu;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/ipmemorystore-aidl-interfaces/1/android/net/ipmemorystore/
DNetworkAttributesParcelable.aidl7 int mtu;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/ipmemorystore-aidl-interfaces/2/android/net/ipmemorystore/
DNetworkAttributesParcelable.aidl7 int mtu;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/ipmemorystore-aidl-interfaces/7/android/net/ipmemorystore/
DNetworkAttributesParcelable.aidl25 int mtu;
/packages/modules/NetworkStack/common/networkstackclient/aidl_api/ipmemorystore-aidl-interfaces/6/android/net/ipmemorystore/
DNetworkAttributesParcelable.aidl25 int mtu;

123