public class RIPngEntry extends BasePacket
| Modifier and Type | Field and Description |
|---|---|
static int |
ENTRY_LEN |
static byte |
INFINITY_METRIC |
protected byte |
metric |
static byte |
NEXTHOP_METRIC |
static int |
OPT_CODE_LEN |
protected byte[] |
prefix |
protected byte |
prefixLen |
protected short |
routeTag |
parent, payload| Constructor and Description |
|---|
RIPngEntry() |
| Modifier and Type | Method and Description |
|---|---|
static Deserializer<RIPngEntry> |
deserializer()
Deserializer function for RIPng entry.
|
boolean |
equals(java.lang.Object obj) |
byte |
getMetric() |
byte[] |
getPrefix() |
byte |
getPrefixLen() |
short |
getRouteTag() |
int |
hashCode() |
byte[] |
serialize()
Sets all payloads parent packet if applicable, then serializes this
packet and all payloads.
|
RIPngEntry |
setMetric(byte metric) |
RIPngEntry |
setPrefix(byte[] prefix) |
RIPngEntry |
setPrefixLen(byte prefixlen) |
RIPngEntry |
setRouteTag(short routetag) |
java.lang.String |
toString() |
clone, getParent, getPayload, resetChecksum, setParent, setPayloadpublic static final int OPT_CODE_LEN
public static final int ENTRY_LEN
public static final byte INFINITY_METRIC
public static final byte NEXTHOP_METRIC
protected byte[] prefix
protected short routeTag
protected byte prefixLen
protected byte metric
public byte[] serialize()
IPacketpublic static Deserializer<RIPngEntry> deserializer()
public int hashCode()
hashCode in class BasePacketpublic boolean equals(java.lang.Object obj)
equals in class BasePacketpublic byte[] getPrefix()
public RIPngEntry setPrefix(byte[] prefix)
prefix - the IPv6 prefix to setpublic short getRouteTag()
public RIPngEntry setRouteTag(short routetag)
routetag - the route tag to setpublic byte getPrefixLen()
public RIPngEntry setPrefixLen(byte prefixlen)
prefixlen - the prefix length to setpublic byte getMetric()
public RIPngEntry setMetric(byte metric)
metric - the route metric to setpublic java.lang.String toString()
toString in class java.lang.Object