|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.clackrouter.component.tcp.TCPChecksum
public class TCPChecksum
Helper class to perform the TCP checksum algorithm.
Field Summary | |
---|---|
static int |
CHECKSUM_OFFSET
|
Constructor Summary | |
---|---|
TCPChecksum()
|
Method Summary | |
---|---|
static int |
calcTCPChecksum(IPPacket ippacket)
Calculates the TCP checksum for the supplied IP packet |
static void |
setTCPChecksum(IPPacket ippacket)
Sets the Checksum field in the TCP header. |
static boolean |
verifyTCPChecksum(IPPacket ippacket)
Verifies the Checksum field in the TCP header. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int CHECKSUM_OFFSET
Constructor Detail |
---|
public TCPChecksum()
Method Detail |
---|
public static int calcTCPChecksum(IPPacket ippacket)
ippacket
-
public static void setTCPChecksum(IPPacket ippacket)
ippacket
- public static boolean verifyTCPChecksum(IPPacket ippacket)
ippacket
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |