org.jnetpcap.protocol.network
Class Ip4.RouterAlert

java.lang.Object
  extended by org.jnetpcap.nio.JMemory
      extended by org.jnetpcap.nio.JBuffer
          extended by org.jnetpcap.packet.JHeader
              extended by org.jnetpcap.packet.JSubHeader<Ip4>
                  extended by org.jnetpcap.protocol.network.Ip4.IpOption
                      extended by org.jnetpcap.protocol.network.Ip4.RouterAlert
All Implemented Interfaces:
JPayloadAccessor
Enclosing class:
Ip4

@Header(id=20)
public static class Ip4.RouterAlert
extends Ip4.IpOption

The Class RouterAlert.


Nested Class Summary
static class Ip4.RouterAlert.Action
          The Enum Action.
 
Nested classes/interfaces inherited from class org.jnetpcap.protocol.network.Ip4.IpOption
Ip4.IpOption.CodeClass, Ip4.IpOption.OptionCode
 
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.RouterAlert()
           
 
Method Summary
 int action()
          Action.
 java.lang.String actionDescription()
          Action description.
 Ip4.RouterAlert.Action actionEnum()
          Action enum.
 int length()
          Length.
 void length(int value)
          Length.
 
Methods inherited from class org.jnetpcap.protocol.network.Ip4.IpOption
code_Class, code_ClassDescription, code_ClassEnum, code_Copy, code_CopyDescription, code_Type, code_TypeDescription, code, code, codeEnum, headerLength, optionCode
 
Methods inherited from class org.jnetpcap.packet.JSubHeader
getLength, getOffset, getParent, setLength, setOffset, setParent
 
Methods inherited from class org.jnetpcap.packet.JHeader
decode, decodeHeader, getAnnotatedHeader, getDescription, getFields, getGap, getGapLength, getGapOffset, getHeader, getHeaderLength, getHeaderOffset, getId, getIndex, getName, getNextHeaderId, getNextHeaderOffset, getNicname, getPacket, getPayload, getPayloadLength, getPayloadOffset, getPostfix, getPostfixLength, getPostfixOffset, getPrefix, getPrefixLength, getPrefixOffset, getPreviousHeaderId, getPreviousHeaderOffset, getState, getSubHeaders, hasDescription, hasGap, hasNextHeader, hasPayload, hasPostfix, hasPrefix, hasPreviousHeader, hasSubHeaders, isFragmented, isGapTruncated, isHeaderTruncated, isPayloadTruncated, isPostfixTruncated, isPrefixTruncated, peer, peer, peerPayloadTo, setPacket, setSubHeaders, sizeof, toString, transferPayloadTo, transferPayloadTo, transferPayloadTo, validateHeader
 
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 org.jnetpcap.nio.JMemory
availableDirectMemory, check, cleanup, createReference, isInitialized, isJMemoryBasedOwner, isOwner, maxDirectMemory, peer, reservedDirectMemory, setSize, size, softDirectMemory, toDebugString, toHexdump, toHexdump, totalActiveAllocated, totalAllocateCalls, totalAllocated, totalAllocatedSegments0To255Bytes, totalAllocatedSegments256OrAbove, totalDeAllocateCalls, totalDeAllocated, transferFrom, transferFrom, transferFromDirect, transferOwnership, transferTo, transferTo, transferTo, transferTo, transferTo, transferTo0
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Ip4.RouterAlert

public Ip4.RouterAlert()
Method Detail

length

@Field(offset=8,
       length=8)
public int length()
Length.

Returns:
the int

length

@FieldSetter
public void length(int value)
Length.

Parameters:
value - the value

actionDescription

@Dynamic(value=DESCRIPTION)
public java.lang.String actionDescription()
Action description.

Returns:
the string

action

@Field(offset=16,
       length=16)
public int action()
Action.

Returns:
the int

actionEnum

public Ip4.RouterAlert.Action actionEnum()
Action enum.

Returns:
the action