public abstract class PathAttribute extends BGP4Object
0 1 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Attr. Flags |Attr. Type Code| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+If the Extended Length bit of the Attribute Flags octet is set to 0, the third octet of the Path Attribute contains the length of the attribute data in octets. If the Extended Length bit of the Attribute Flags octet is set to 1, the third and fourth octets of the path attribute contain the length of the attribute data in octets.
Modifier and Type | Field and Description |
---|---|
protected boolean |
extendedLengthBit
ExtendedLengthBit.
|
protected static org.slf4j.Logger |
log |
protected int |
mandatoryLength |
protected boolean |
optionalBit
Optional bit.
|
protected boolean |
partialBit
Partial Bit.
|
protected int |
pathAttributeLength |
protected boolean |
transitiveBit
Transitive bit.
|
protected int |
typeCode |
bytes, length
Constructor and Description |
---|
PathAttribute() |
PathAttribute(byte[] bytes,
int offset) |
Modifier and Type | Method and Description |
---|---|
void |
encodeHeader() |
boolean |
equals(Object obj) |
static int |
getAttibuteTypeCode(byte[] bytes,
int offset) |
static int |
getAttributeLength(byte[] bytes,
int offset) |
int |
getMandatoryLength() |
static int |
getMandatoryLength(byte[] bytes,
int offset) |
int |
getPathAttributeLength() |
int |
getTypeCode() |
int |
hashCode() |
protected void |
setPathAttributeLength(int pal) |
protected void |
setTypeCode(int typeCode) |
getBytes, getLength, setBytes, setLength
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
encode
protected static final org.slf4j.Logger log
protected int typeCode
protected boolean optionalBit
protected boolean transitiveBit
protected boolean partialBit
protected boolean extendedLengthBit
protected int mandatoryLength
protected int pathAttributeLength
public PathAttribute()
public PathAttribute(byte[] bytes, int offset)
public void encodeHeader()
protected void setPathAttributeLength(int pal)
public int getPathAttributeLength()
public int getMandatoryLength()
public static int getAttibuteTypeCode(byte[] bytes, int offset)
public static int getMandatoryLength(byte[] bytes, int offset)
public static int getAttributeLength(byte[] bytes, int offset)
public int getTypeCode()
protected void setTypeCode(int typeCode)
public int hashCode()
hashCode
in class BGP4Object
public boolean equals(Object obj)
equals
in class BGP4Object
Copyright © 2016. All rights reserved.