public abstract class OSPFv2Packet extends Object
Modifier and Type | Field and Description |
---|---|
protected byte[] |
bytes |
protected static org.slf4j.Logger |
log |
Constructor and Description |
---|
OSPFv2Packet() |
OSPFv2Packet(byte[] bytes,
int offset)
Decodes the header of a LSA
|
Modifier and Type | Method and Description |
---|---|
void |
encodeOSPFV2PacketHeader() |
Inet4Address |
getAreaID() |
byte[] |
getBytes() |
int |
getLength() |
static int |
getLSlength(byte[] bytes,
int offset) |
static int |
getLStype(byte[] bytes,
int offset)
Metodo statico: lenght y type.
|
Inet4Address |
getRouterID() |
int |
getType() |
int |
getVersion() |
void |
setAreaID(Inet4Address areaID) |
void |
setBytes(byte[] bytes) |
void |
setLength(int length) |
void |
setRouterID(Inet4Address routerID) |
void |
setType(int type) |
void |
setVersion(int version) |
public OSPFv2Packet()
public OSPFv2Packet(byte[] bytes, int offset)
bytes
- offset
- public void encodeOSPFV2PacketHeader()
public static int getLStype(byte[] bytes, int offset)
public static int getLSlength(byte[] bytes, int offset)
public int getVersion()
public void setVersion(int version)
public int getType()
public void setType(int type)
public int getLength()
public void setLength(int length)
public Inet4Address getRouterID()
public void setRouterID(Inet4Address routerID)
public Inet4Address getAreaID()
public void setAreaID(Inet4Address areaID)
public byte[] getBytes()
public void setBytes(byte[] bytes)
Copyright © 2016. All rights reserved.