org.jnetpcap.protocol.network
Class Ip4.Security

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.Security
All Implemented Interfaces:
JPayloadAccessor
Enclosing class:
Ip4

@Header(id=2)
public static class Ip4.Security
extends Ip4.IpOption

Ip4 optional Security header.

Author:
Mark Bednarczyk, Sly Technologies, Inc.

Nested Class Summary
static class Ip4.Security.SecurityType
          A table of security algorithm types.
 
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.Security()
           
 
Method Summary
 int compartments()
          Compartments.
 void compartments(int value)
          Compartments.
 int control()
          Control.
 void control(int value)
          Control.
 int handling()
          Handling.
 int length()
          Length.
 void length(int value)
          Length.
 int security()
          Security.
 void security(int value)
          Security.
 void security(Ip4.Security.SecurityType value)
          Security.
 Ip4.Security.SecurityType securityEnum()
          Security enum.
 
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.Security

public Ip4.Security()
Method Detail

compartments

@Field(offset=32,
       length=16)
public int compartments()
Compartments.

Returns:
the int

compartments

@FieldSetter
public void compartments(int value)
Compartments.

Parameters:
value - the value

control

@Field(offset=64,
       length=24)
public int control()
Control.

Returns:
the int

control

@FieldSetter
public void control(int value)
Control.

Parameters:
value - the value

handling

@Field(offset=48,
       length=16)
public int handling()
Handling.

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

security

@Field(offset=16,
       length=16)
public int security()
Security.

Returns:
the int

security

@FieldSetter
public void security(int value)
Security.

Parameters:
value - the value

security

public void security(Ip4.Security.SecurityType value)
Security.

Parameters:
value - the value

securityEnum

public Ip4.Security.SecurityType securityEnum()
Security enum.

Returns:
the security type