Package org.pcap4j.packet.namednumber
Class IpV4InternetTimestampOptionFlag
- java.lang.Object
-
- org.pcap4j.packet.namednumber.NamedNumber<java.lang.Byte,IpV4InternetTimestampOptionFlag>
-
- org.pcap4j.packet.namednumber.IpV4InternetTimestampOptionFlag
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<IpV4InternetTimestampOptionFlag>
public final class IpV4InternetTimestampOptionFlag extends NamedNumber<java.lang.Byte,IpV4InternetTimestampOptionFlag>
Flag of IPv4 Internet Timestamp Option- Since:
- pcap4j 0.9.11
- Author:
- Kaito Yamada
- See Also:
- RFC 791, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static IpV4InternetTimestampOptionFlag
ADDRESS_PRESPECIFIED
the internet address fields are prespecified: 3static IpV4InternetTimestampOptionFlag
EACH_TIMESTAMP_PRECEDED_WITH_ADDRESS
each timestamp is preceded with internet address of the registering entity: 1static IpV4InternetTimestampOptionFlag
TIMESTAMPS_ONLY
timestamps only: 0
-
Constructor Summary
Constructors Constructor Description IpV4InternetTimestampOptionFlag(java.lang.Byte value, java.lang.String name)
-
Method Summary
Modifier and Type Method Description int
compareTo(IpV4InternetTimestampOptionFlag o)
static IpV4InternetTimestampOptionFlag
getInstance(java.lang.Byte value)
static IpV4InternetTimestampOptionFlag
register(IpV4InternetTimestampOptionFlag flag)
-
Methods inherited from class org.pcap4j.packet.namednumber.NamedNumber
equals, hashCode, name, toString, value, valueAsString
-
-
-
-
Field Detail
-
TIMESTAMPS_ONLY
public static final IpV4InternetTimestampOptionFlag TIMESTAMPS_ONLY
timestamps only: 0
-
EACH_TIMESTAMP_PRECEDED_WITH_ADDRESS
public static final IpV4InternetTimestampOptionFlag EACH_TIMESTAMP_PRECEDED_WITH_ADDRESS
each timestamp is preceded with internet address of the registering entity: 1
-
ADDRESS_PRESPECIFIED
public static final IpV4InternetTimestampOptionFlag ADDRESS_PRESPECIFIED
the internet address fields are prespecified: 3
-
-
Method Detail
-
getInstance
public static IpV4InternetTimestampOptionFlag getInstance(java.lang.Byte value)
- Parameters:
value
- value- Returns:
- a IpV4InternetTimestampOptionFlag object.
-
register
public static IpV4InternetTimestampOptionFlag register(IpV4InternetTimestampOptionFlag flag)
- Parameters:
flag
- flag- Returns:
- a IpV4InternetTimestampOptionFlag object.
-
compareTo
public int compareTo(IpV4InternetTimestampOptionFlag o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<IpV4InternetTimestampOptionFlag>
- Specified by:
compareTo
in classNamedNumber<java.lang.Byte,IpV4InternetTimestampOptionFlag>
-
-