- java.lang.Object
-
- org.pcap4j.packet.IpV6RoutingSourceRouteData
-
- All Implemented Interfaces:
java.io.Serializable,IpV6ExtRoutingPacket.IpV6RoutingData
public final class IpV6RoutingSourceRouteData extends java.lang.Object implements IpV6ExtRoutingPacket.IpV6RoutingData
- Since:
- pcap4j 0.9.11
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<java.net.Inet6Address>addressesprivate intreservedprivate static longserialVersionUID
-
Constructor Summary
Constructors Modifier Constructor Description privateIpV6RoutingSourceRouteData(byte[] rawData, int offset, int length)IpV6RoutingSourceRouteData(int reserved, java.util.List<java.net.Inet6Address> addresses)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)byte[]getRawData()inthashCode()intlength()static IpV6RoutingSourceRouteDatanewInstance(byte[] rawData, int offset, int length)A static factory method.java.lang.StringtoString()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
reserved
private final int reserved
-
addresses
private final java.util.List<java.net.Inet6Address> addresses
-
-
Constructor Detail
-
IpV6RoutingSourceRouteData
private IpV6RoutingSourceRouteData(byte[] rawData, int offset, int length) throws IllegalRawDataException- Throws:
IllegalRawDataException
-
IpV6RoutingSourceRouteData
public IpV6RoutingSourceRouteData(int reserved, java.util.List<java.net.Inet6Address> addresses)- Parameters:
reserved- reservedaddresses- addresses
-
-
Method Detail
-
newInstance
public static IpV6RoutingSourceRouteData newInstance(byte[] rawData, int offset, int length) throws IllegalRawDataException
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 IpV6RoutingSourceRouteData object.
- Throws:
IllegalRawDataException- if parsing the raw data fails.
-
length
public int length()
- Specified by:
lengthin interfaceIpV6ExtRoutingPacket.IpV6RoutingData- Returns:
- length
-
getRawData
public byte[] getRawData()
- Specified by:
getRawDatain interfaceIpV6ExtRoutingPacket.IpV6RoutingData- Returns:
- raw data
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-