public class LispLcafAddress extends LispAfiAddress
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | AFI = 16387 | Rsvd1 | Flags | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Type | Rsvd2 | Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Modifier and Type | Class and Description |
|---|---|
protected static class |
LispLcafAddress.LcafAddressBuilder<T> |
static class |
LispLcafAddress.LcafAddressReader
LISP LCAF reader class.
|
static class |
LispLcafAddress.LcafAddressWriter
LISP LCAF address writer class.
|
LispAfiAddress.AfiAddressReader, LispAfiAddress.AfiAddressWriter| Modifier and Type | Field and Description |
|---|---|
static int |
COMMON_HEADER_SIZE |
| Modifier | Constructor and Description |
|---|---|
protected |
LispLcafAddress(LispCanonicalAddressFormatEnum lcafType)
Initializes LCAF address.
|
protected |
LispLcafAddress(LispCanonicalAddressFormatEnum lcafType,
byte reserved2)
Initializes LCAF address.
|
protected |
LispLcafAddress(LispCanonicalAddressFormatEnum lcafType,
byte reserved1,
byte reserved2,
byte flag,
short length)
Initializes LCAF address.
|
protected |
LispLcafAddress(LispCanonicalAddressFormatEnum lcafType,
byte reserved2,
byte flag,
short length)
Initializes LCAF address.
|
protected |
LispLcafAddress(LispCanonicalAddressFormatEnum lcafType,
byte reserved2,
short length)
Initializes LCAF address.
|
protected |
LispLcafAddress(LispCanonicalAddressFormatEnum lcafType,
short length)
Initializes LCAF address.
|
| Modifier and Type | Method and Description |
|---|---|
static LispLcafAddress |
deserializeCommon(io.netty.buffer.ByteBuf byteBuf)
Deserializes common fields from byte buffer.
|
boolean |
equals(Object obj) |
byte |
getFlag()
Obtains LCAF flag value.
|
short |
getLength()
Obtains LCAF length value.
|
byte |
getReserved1()
Obtains LCAF reserved1 value.
|
byte |
getReserved2()
Obtains LCAF reserved2 value.
|
LispCanonicalAddressFormatEnum |
getType()
Obtains LCAF type.
|
int |
hashCode() |
static void |
serializeCommon(io.netty.buffer.ByteBuf byteBuf,
LispLcafAddress address)
Serializes common fields to byte buffer.
|
String |
toString() |
static void |
updateLength(int lcafIndex,
io.netty.buffer.ByteBuf byteBuf)
Updates the header length field value based on the size of LISP header.
|
getAfipublic static final int COMMON_HEADER_SIZE
protected LispLcafAddress(LispCanonicalAddressFormatEnum lcafType, byte reserved1, byte reserved2, byte flag, short length)
lcafType - LCAF typereserved1 - reserved1 fieldreserved2 - reserved2 fieldflag - flag fieldlength - length fieldprotected LispLcafAddress(LispCanonicalAddressFormatEnum lcafType, byte reserved2, byte flag, short length)
lcafType - LCAF typereserved2 - reserved2 fieldflag - flag fieldlength - length fieldprotected LispLcafAddress(LispCanonicalAddressFormatEnum lcafType, byte reserved2, short length)
lcafType - LCAF typereserved2 - reserved2 fieldlength - length fieldprotected LispLcafAddress(LispCanonicalAddressFormatEnum lcafType, byte reserved2)
lcafType - LCAF typereserved2 - reserved2 fieldprotected LispLcafAddress(LispCanonicalAddressFormatEnum lcafType, short length)
lcafType - LCAF typelength - length fieldprotected LispLcafAddress(LispCanonicalAddressFormatEnum lcafType)
lcafType - LCAF typepublic LispCanonicalAddressFormatEnum getType()
public byte getReserved1()
public byte getReserved2()
public byte getFlag()
public short getLength()
public static LispLcafAddress deserializeCommon(io.netty.buffer.ByteBuf byteBuf)
byteBuf - byte bufferpublic static void updateLength(int lcafIndex,
io.netty.buffer.ByteBuf byteBuf)
lcafIndex - the index of LCAF address, because LCAF address is
contained inside LISP control message, so to correctly
find the right LCAF length index, we need to know the
absolute lcaf index inside LISP control message byte bufbyteBuf - netty byte bufferpublic static void serializeCommon(io.netty.buffer.ByteBuf byteBuf,
LispLcafAddress address)
byteBuf - byte bufferaddress - LISP LCAF address instancepublic int hashCode()
hashCode in class LispAfiAddresspublic boolean equals(Object obj)
equals in class LispAfiAddress