public abstract class OSPFTLV extends Object
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
log
Logger
|
protected byte[] |
tlv_bytes
Bytes of the TLV
|
protected int |
TLVType
Type of the OSPF TLV
|
protected int |
TotalTLVLength
Total length of the TLV (including type, length and padding)
|
Constructor and Description |
---|
OSPFTLV() |
OSPFTLV(byte[] bytes,
int offset) |
Modifier and Type | Method and Description |
---|---|
abstract void |
encode() |
protected void |
encodeHeader() |
byte[] |
getTlv_bytes() |
static int |
getTLVLength(byte[] bytes,
int offset) |
int |
getTLVType() |
int |
getTLVValueLength() |
int |
getTotalTLVLength() |
static int |
getTotalTLVLength(byte[] bytes,
int offset) |
static int |
getType(byte[] bytes,
int offset) |
protected void |
setTlv_bytes(byte[] tlv_bytes) |
protected void |
setTLVType(int tLVType) |
protected void |
setTLVValueLength(int TLVValueLength)
Sets the lenght of the VALUE of the TLV.
|
protected int TLVType
protected int TotalTLVLength
protected byte[] tlv_bytes
protected static final org.slf4j.Logger log
public OSPFTLV()
public OSPFTLV(byte[] bytes, int offset)
bytes
- offset
- protected void encodeHeader()
public int getTLVValueLength()
public int getTotalTLVLength()
public static int getTotalTLVLength(byte[] bytes, int offset)
public static int getTLVLength(byte[] bytes, int offset)
public static int getType(byte[] bytes, int offset)
public int getTLVType()
protected void setTLVType(int tLVType)
public byte[] getTlv_bytes()
protected void setTlv_bytes(byte[] tlv_bytes)
protected void setTLVValueLength(int TLVValueLength)
TLVValueLength
- public abstract void encode()
Copyright © 2016. All rights reserved.