java.lang.Object
org.pcap4j.packet.IpV4RouteOption
- All Implemented Interfaces:
Serializable,IpV4Packet.IpV4Option
- Direct Known Subclasses:
IpV4LooseSourceRouteOption,IpV4RecordRouteOption,IpV4StrictSourceRouteOption
- Since:
- pcap4j 0.9.11
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final byteprivate final byteprivate final List<Inet4Address> private static final long -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedIpV4RouteOption(byte[] rawData, int offset, int length) protectedIpV4RouteOption(IpV4RouteOption.Builder<? extends IpV4RouteOption> builder) -
Method Summary
Modifier and TypeMethodDescriptionbooleanabstract IpV4RouteOption.Builder<? extends IpV4RouteOption> byteintbyteintbyte[]abstract IpV4OptionTypegetType()inthashCode()intlength()toString()
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
length
private final byte length -
pointer
private final byte pointer -
routeData
-
-
Constructor Details
-
IpV4RouteOption
- Throws:
IllegalRawDataException
-
IpV4RouteOption
-
-
Method Details
-
getType
- Specified by:
getTypein interfaceIpV4Packet.IpV4Option- Returns:
- type
-
getLength
public byte getLength()- Returns:
- length
-
getLengthAsInt
public int getLengthAsInt()- Returns:
- length
-
getPointer
public byte getPointer()- Returns:
- pointer
-
getPointerAsInt
public int getPointerAsInt()- Returns:
- pointer
-
getRouteData
- Returns:
- routeData
-
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()
-