Class IpV6RoutingSourceRouteData
java.lang.Object
org.pcap4j.packet.IpV6RoutingSourceRouteData
- All Implemented Interfaces:
Serializable, IpV6ExtRoutingPacket.IpV6RoutingData
public final class IpV6RoutingSourceRouteData
extends Object
implements IpV6ExtRoutingPacket.IpV6RoutingData
- Since:
- pcap4j 0.9.11
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<Inet6Address> private final intprivate static final long -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateIpV6RoutingSourceRouteData(byte[] rawData, int offset, int length) IpV6RoutingSourceRouteData(int reserved, List<Inet6Address> addresses) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbyte[]inthashCode()intlength()static IpV6RoutingSourceRouteDatanewInstance(byte[] rawData, int offset, int length) A static factory method.toString()
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
reserved
private final int reserved -
addresses
-
-
Constructor Details
-
IpV6RoutingSourceRouteData
private IpV6RoutingSourceRouteData(byte[] rawData, int offset, int length) throws IllegalRawDataException - Throws:
IllegalRawDataException
-
IpV6RoutingSourceRouteData
- Parameters:
reserved- reservedaddresses- addresses
-
-
Method Details
-
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
-
equals
-
hashCode
-