public class MTU extends Object
| Modifier and Type | Method and Description |
|---|---|
static int | getMTU(InetAddress ia,
boolean isSSU2)The MTU for the socket interface, if available. |
static void | main(String[] args)CLI test |
static int | rectify(boolean isIPv6,
int mtu)Rectify the MTU value to valid range and alignment. |
public static int getMTU(InetAddress ia, boolean isSSU2)
ia - null okisSSU2 - if true, calculate SSU2 MTUpublic static void main(String[] args)
public static int rectify(boolean isIPv6,
int mtu)isIPv6 - true if IPv6mtu - the MTU value to rectify