Share via


LinkProperties.Mtu Property

Definition

Gets any non-default MTU size set for this link. -or- Sets the Maximum Transmission Unit size to use on this link.

public int Mtu { [Android.Runtime.Register("getMtu", "()I", "", ApiSince=29)] get; [Android.Runtime.Register("setMtu", "(I)V", "", ApiSince=29)] set; }
[<get: Android.Runtime.Register("getMtu", "()I", "", ApiSince=29)>]
[<set: Android.Runtime.Register("setMtu", "(I)V", "", ApiSince=29)>]
member this.Mtu : int with get, set

Property Value

The mtu value set for this link.

Attributes

Remarks

Property getter documentation:

Gets any non-default MTU size set for this link. Note that if the default is being used this will return 0.

Java documentation for android.net.LinkProperties.getMtu().

Property setter documentation:

Sets the Maximum Transmission Unit size to use on this link. This should not be used unless the system default (1500) is incorrect. Values less than 68 or greater than 10000 will be ignored.

Java documentation for android.net.LinkProperties.setMtu(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to