Class AttributeUtil
- java.lang.Object
-
- org.opendaylight.protocol.bgp.parser.spi.AttributeUtil
-
public final class AttributeUtil extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static int
OPTIONAL
static int
PARTIAL
static int
TRANSITIVE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
formatAttribute(int flags, int type, io.netty.buffer.ByteBuf value, io.netty.buffer.ByteBuf buffer)
Adds header to attribute value.
-
-
-
Field Detail
-
OPTIONAL
public static final int OPTIONAL
- See Also:
- Constant Field Values
-
TRANSITIVE
public static final int TRANSITIVE
- See Also:
- Constant Field Values
-
PARTIAL
public static final int PARTIAL
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
-
-