Class AttributeUtil
java.lang.Object
org.opendaylight.protocol.bgp.parser.spi.AttributeUtil
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
formatAttribute
(int flags, int type, io.netty.buffer.ByteBuf value, io.netty.buffer.ByteBuf buffer) Adds header to attribute value.
-
Field Details
-
OPTIONAL
public static final int OPTIONAL- See Also:
-
TRANSITIVE
public static final int TRANSITIVE- See Also:
-
PARTIAL
public static final int PARTIAL- See Also:
-
-
Method Details
-
formatAttribute
public static void formatAttribute(int flags, int type, io.netty.buffer.ByteBuf value, io.netty.buffer.ByteBuf buffer) Adds header to attribute value. If the length of the attribute value exceeds one-byte length field, set EXTENDED bit and write length as 2B field.- Parameters:
flags
- attribute flagstype
- of the attributevalue
- attribute valuebuffer
- ByteBuf where the attribute will be copied with its header
-