org.jnetpcap.protocol.network
Class Ip4.Routing

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.Routing
All Implemented Interfaces:
JPayloadAccessor
Direct Known Subclasses:
Ip4.LooseSourceRoute, Ip4.RecordRoute, Ip4.StrictSourceRoute
Enclosing class:
Ip4

public abstract static class Ip4.Routing
extends Ip4.IpOption

Ip4 optional Routing header.

Author:
Mark Bednarczyk, Sly Technologies, Inc.

Nested Class Summary
 
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.Routing()
           
 
Method Summary
 void address(byte[][] values)
          Address.
 byte[] address(int index)
          Address.
 void address(int index, byte[] value)
          Address.
 byte[][] addressArray()
          Address array.
 int addressCount()
          Address count.
 int length()
          Length.
 void length(int value)
          Length.
 java.lang.String lengthDescription()
          Length description.
 int offset()
          Offset.
 void offset(int value)
          Offset.
 java.lang.String offsetDescription()
          Offset description.
 
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.Routing

public Ip4.Routing()
Method Detail

address

@FieldSetter
public void address(byte[][] values)
Address.

Parameters:
values - the values

address

public byte[] address(int index)
Address.

Parameters:
index - the index
Returns:
the byte[]

address

public void address(int index,
                    byte[] value)
Address.

Parameters:
index - the index
value - the value

addressArray

@Field(offset=24,
       length=0,
       format="#ip4[]#")
public byte[][] addressArray()
Address array.

Returns:
the byte[][]

addressCount

public int addressCount()
Address count.

Returns:
the int

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

lengthDescription

@Dynamic(value=DESCRIPTION)
public java.lang.String lengthDescription()
Length description.

Returns:
the string

offset

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

Returns:
the int

offset

@FieldSetter
public void offset(int value)
Offset.

Parameters:
value - the value

offsetDescription

@Dynamic(value=DESCRIPTION)
public java.lang.String offsetDescription()
Offset description.

Returns:
the string