|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jnetpcap.nio.JMemory
org.jnetpcap.nio.JBuffer
org.jnetpcap.packet.JHeader
org.jnetpcap.packet.JSubHeader<Ip4>
org.jnetpcap.protocol.network.Ip4.IpOption
public abstract static class Ip4.IpOption
Baseclass for all Ip option headers.
| Nested Class Summary | |
|---|---|
static class |
Ip4.IpOption.CodeClass
The Enum CodeClass. |
static class |
Ip4.IpOption.OptionCode
A table of IpOption types and their names. |
| Nested classes/interfaces inherited from class org.jnetpcap.packet.JHeader |
|---|
JHeader.State |
| Nested classes/interfaces inherited from class org.jnetpcap.nio.JMemory |
|---|
JMemory.Type |
| Field Summary |
|---|
| Fields inherited from class org.jnetpcap.packet.JHeader |
|---|
annotatedHeader, BYTE, EMPTY_HEADER_ARRAY, isSubHeader, packet, state |
| Fields inherited from class org.jnetpcap.nio.JMemory |
|---|
JNETPCAP_LIBRARY_NAME, MAX_DIRECT_MEMORY_DEFAULT, POINTER |
| Constructor Summary | |
|---|---|
Ip4.IpOption()
|
|
| Method Summary | |
|---|---|
int |
code_Class()
Code_ class. |
java.lang.String |
code_ClassDescription()
Code_ class description. |
Ip4.IpOption.CodeClass |
code_ClassEnum()
Code_ class enum. |
int |
code_Copy()
Code_ copy. |
java.lang.String |
code_CopyDescription()
Code_ copy description. |
int |
code_Type()
Code_ type. |
java.lang.String |
code_TypeDescription()
Code_ type description. |
int |
code()
Gets the Ip4.code field. |
void |
code(int value)
Sets the Ip4.code field. |
Ip4.IpOption.OptionCode |
codeEnum()
Gets the Ip4.code field. |
static int |
headerLength(JBuffer buffer,
int offset)
Header length. |
void |
optionCode(Ip4.IpOption.OptionCode value)
Sets the Ip4.code field. |
| Methods inherited from class org.jnetpcap.packet.JSubHeader |
|---|
getLength, getOffset, getParent, setLength, setOffset, setParent |
| Methods inherited from class org.jnetpcap.nio.JBuffer |
|---|
findUTF8String, getByte, getByteArray, getByteArray, getByteArray, getDouble, getFloat, getInt, getLong, getShort, getUByte, getUInt, getUShort, getUTF8Char, getUTF8String, getUTF8String, getUTF8String, getUTF8String, isReadonly, order, order, peer, peer, peer, peer, setByte, setByteArray, setByteBuffer, setDouble, setFloat, setInt, setLong, setShort, setShort0, setUByte, setUInt, setUShort, transferFrom, transferFrom, transferFrom, transferTo, transferTo, transferTo |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Ip4.IpOption()
| Method Detail |
|---|
@HeaderLength
public static int headerLength(JBuffer buffer,
int offset)
buffer - the bufferoffset - the offset
@Field(offset=0,
length=8,
format="%d")
public int code()
| Protocol Header: | Ip4 |
| Protocol Family: | Networking |
| OSI Layer: | 3 |
| Field Property: | constant offset |
| Field Offset: | getUByte(0) & 0x1F |
+------+-----------------+ | CODE | optional header | +------+-----------------+
@FieldSetter public void code(int value)
| Protocol Header: | Ip4 |
| Protocol Family: | Networking |
| OSI Layer: | 3 |
| Field Property: | constant offset |
| Field Offset: | getUByte(0) & 0x1F |
+------+-----------------+ | CODE | optional header | +------+-----------------+
value - new code value
@Field(parent="code",
offset=7,
length=1,
display="copy",
format="%d")
public int code_Copy()
@Dynamic(value=DESCRIPTION) public java.lang.String code_CopyDescription()
@Field(parent="code",
offset=5,
length=2,
display="class",
format="%d")
public int code_Class()
public Ip4.IpOption.CodeClass code_ClassEnum()
@Dynamic(value=DESCRIPTION) public java.lang.String code_ClassDescription()
@Field(parent="code",
offset=0,
length=5,
display="type",
format="%d")
public int code_Type()
@Dynamic(value=DESCRIPTION) public java.lang.String code_TypeDescription()
public Ip4.IpOption.OptionCode codeEnum()
| Protocol Header: | Ip4 |
| Protocol Family: | Networking |
| OSI Layer: | 3 |
| Field Property: | constant offset |
| Field Offset: | getUByte(0) & 0x1F |
+------+-----------------+ | CODE | optional header | +------+-----------------+
public void optionCode(Ip4.IpOption.OptionCode value)
| Protocol Header: | Ip4 |
| Protocol Family: | Networking |
| OSI Layer: | 3 |
| Field Property: | constant offset |
| Field Offset: | getUByte(0) & 0x1F |
+------+-----------------+ | CODE | optional header | +------+-----------------+
value - new code value
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||