public class IpUtils extends Object
Constructor and Description |
---|
IpUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
addressAndPortToString(InetAddress address,
int port) |
static short |
ipChecksum(ByteBuffer buf,
int headerOffset) |
static boolean |
isValidUdpOrTcpPort(int port) |
static short |
tcpChecksum(ByteBuffer buf,
int ipOffset,
int transportOffset,
int transportLen) |
static short |
udpChecksum(ByteBuffer buf,
int ipOffset,
int transportOffset) |
public static short ipChecksum(ByteBuffer buf, int headerOffset)
public static short udpChecksum(ByteBuffer buf, int ipOffset, int transportOffset)
public static short tcpChecksum(ByteBuffer buf, int ipOffset, int transportOffset, int transportLen)
public static String addressAndPortToString(InetAddress address, int port)
public static boolean isValidUdpOrTcpPort(int port)