public class RouterAddressTLV extends OSPFTLV
log, tlv_bytes, TLVType, TotalTLVLength
Constructor and Description |
---|
RouterAddressTLV()
Use the constructor to create a new Router Address TLV from scratch
Fill the fields, and later call encode
|
RouterAddressTLV(byte[] bytes,
int offset)
Use this constructor to create and decode
|
Modifier and Type | Method and Description |
---|---|
void |
encode() |
Inet4Address |
getRouterAddress() |
void |
setRouterAddress(Inet4Address routerAddress) |
String |
toString()
String representation of the RouterAddressTLV
|
encodeHeader, getTlv_bytes, getTLVLength, getTLVType, getTLVValueLength, getTotalTLVLength, getTotalTLVLength, getType, setTlv_bytes, setTLVType, setTLVValueLength
public RouterAddressTLV()
public RouterAddressTLV(byte[] bytes, int offset) throws MalformedOSPFTLVException
bytes
- offset
- MalformedOSPFTLVException
public Inet4Address getRouterAddress()
public void setRouterAddress(Inet4Address routerAddress)
Copyright © 2016. All rights reserved.