public final class IpV6Pad1Option extends Object implements IpV6ExtOptionsPacket.IpV6Option
Modifier and Type | Method and Description |
---|---|
static IpV6Pad1Option |
getInstance() |
byte[] |
getRawData() |
IpV6OptionType |
getType() |
int |
length() |
static IpV6Pad1Option |
newInstance(byte[] rawData,
int offset,
int length)
A static factory method.
|
String |
toString() |
public static IpV6Pad1Option getInstance()
public static IpV6Pad1Option newInstance(byte[] rawData, int offset, int length) throws IllegalRawDataException
ByteArrays.validateBounds(byte[], int, int)
,
which may throw exceptions undocumented here.rawData
- rawDataoffset
- offsetlength
- lengthIllegalRawDataException
- if parsing the raw data fails.public IpV6OptionType getType()
getType
in interface IpV6ExtOptionsPacket.IpV6Option
public int length()
length
in interface IpV6ExtOptionsPacket.IpV6Option
public byte[] getRawData()
getRawData
in interface IpV6ExtOptionsPacket.IpV6Option
Copyright © 2011–2016 Pcap4J.org. All rights reserved.