|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<Tcp.TcpOption.OptionCode>
org.jnetpcap.protocol.tcpip.Tcp.TcpOption.OptionCode
public static enum Tcp.TcpOption.OptionCode
Options (Variable 0-320 bits, divisible by 32) - The length of this field is determined by the data offset field. Options 0 and 1 are a single byte (8 bits) in length. The remaining options indicate the total length of the option (expressed in bytes) in the second byte. Some options may only be sent when SYN is set;
| Enum Constant Summary | |
|---|---|
ALTERNATE_CHECKSUM
15,N,... |
|
ALTERNATE_CHECKSUM_REQUEST
14,3,S (24 bits) - TCP Alternate Checksum Request. |
|
END_OF_OPTION_LIST
0 (8 bits) - End of options list. |
|
MAXIMUM_SEGMENT_SIZE
2,4,SS (32 bits) - Maximum segment size (see maximum segment size) [SYN]. |
|
NO_OP
1 (8 bits) - No operation (NOP, Padding) This may be used to align option fields on 32-bit boundaries for better performance. |
|
SACK
5,N,BBBB,EEEE,... |
|
SACK_PERMITTED
4,2 (16 bits) - Selective Acknowledgement permitted. |
|
TIMESTAP
8,10,TTTT,EEEE (80 bits)- Timestamp and echo of previous timestamp. |
|
WINDOW_SCALE
3,3,S (24 bits) - Window scale (see window scaling for details) [SYN]. |
|
| Field Summary | |
|---|---|
int |
id
OP CODE for this option. |
| Method Summary | |
|---|---|
static Tcp.TcpOption.OptionCode |
valueOf(int id)
Converts a numerical op code to a enum constant. |
static Tcp.TcpOption.OptionCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Tcp.TcpOption.OptionCode[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final Tcp.TcpOption.OptionCode ALTERNATE_CHECKSUM
public static final Tcp.TcpOption.OptionCode ALTERNATE_CHECKSUM_REQUEST
public static final Tcp.TcpOption.OptionCode END_OF_OPTION_LIST
public static final Tcp.TcpOption.OptionCode MAXIMUM_SEGMENT_SIZE
public static final Tcp.TcpOption.OptionCode NO_OP
public static final Tcp.TcpOption.OptionCode SACK
public static final Tcp.TcpOption.OptionCode SACK_PERMITTED
public static final Tcp.TcpOption.OptionCode TIMESTAP
public static final Tcp.TcpOption.OptionCode WINDOW_SCALE
| Field Detail |
|---|
public final int id
| Method Detail |
|---|
public static Tcp.TcpOption.OptionCode[] values()
for (Tcp.TcpOption.OptionCode c : Tcp.TcpOption.OptionCode.values()) System.out.println(c);
public static Tcp.TcpOption.OptionCode valueOf(java.lang.String name)
name - the name of the enum constant to be returned.
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
java.lang.NullPointerException - if the argument is nullpublic static Tcp.TcpOption.OptionCode valueOf(int id)
id - numerical constant to convert
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||