java.lang.Object
org.pcap4j.packet.IllegalIpV4Option
- All Implemented Interfaces:
Serializable,IpV4Packet.IpV4Option
- Since:
- pcap4j 0.9.11
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final byte[]private static final longprivate final IpV4OptionType -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateIllegalIpV4Option(byte[] rawData, int offset, int length) private -
Method Summary
Modifier and TypeMethodDescriptionbooleanbyte[]getType()inthashCode()intlength()static IllegalIpV4OptionnewInstance(byte[] rawData, int offset, int length) A static factory method.toString()
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
type
-
rawData
private final byte[] rawData
-
-
Constructor Details
-
IllegalIpV4Option
private IllegalIpV4Option(byte[] rawData, int offset, int length) -
IllegalIpV4Option
-
-
Method Details
-
newInstance
A static factory method. This method validates the arguments byByteArrays.validateBounds(byte[], int, int), which may throw exceptions undocumented here.- Parameters:
rawData- rawDataoffset- offsetlength- length- Returns:
- a new IllegalIpV4Option object.
-
getType
- Specified by:
getTypein interfaceIpV4Packet.IpV4Option- Returns:
- type
-
length
public int length()- Specified by:
lengthin interfaceIpV4Packet.IpV4Option- Returns:
- length
-
getRawData
public byte[] getRawData()- Specified by:
getRawDatain interfaceIpV4Packet.IpV4Option- Returns:
- raw data
-
getBuilder
- Returns:
- a new Builder object populated with this object's fields.
-
toString
-
equals
-
hashCode
public int hashCode()
-