Package org.pcap4j.packet
Interface IpV4Packet.IpV4Option
-
- All Superinterfaces:
java.io.Serializable
- All Known Implementing Classes:
IllegalIpV4Option
,IpV4EndOfOptionList
,IpV4InternetTimestampOption
,IpV4LooseSourceRouteOption
,IpV4NoOperationOption
,IpV4RecordRouteOption
,IpV4Rfc791SecurityOption
,IpV4StreamIdOption
,IpV4StrictSourceRouteOption
,UnknownIpV4Option
- Enclosing class:
- IpV4Packet
public static interface IpV4Packet.IpV4Option extends java.io.Serializable
The interface representing an IPv4 option. If you usePropertiesBasedPacketFactory
, classes which implement this interface must implement the following method:public static IpV4Option newInstance(byte[] rawData, int offset, int length) throws IllegalRawDataException
- Since:
- pcap4j 0.9.11
- Author:
- Kaito Yamada
-
-
Method Summary
Modifier and Type Method Description byte[]
getRawData()
IpV4OptionType
getType()
int
length()
-
-
-
Method Detail
-
getType
IpV4OptionType getType()
- Returns:
- type
-
length
int length()
- Returns:
- length
-
getRawData
byte[] getRawData()
- Returns:
- raw data
-
-