public final class MplsLabelUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static io.netty.buffer.ByteBuf |
byteBufForMplsLabel(MplsLabel label)
Serializes incoming MplsLabel without bottom bit.
|
static io.netty.buffer.ByteBuf |
byteBufForMplsLabelWithBottomBit(MplsLabel label)
Serializes incoming MplsLabel with bottom bit.
|
static boolean |
getBottomBit(io.netty.buffer.ByteBuf slice)
Gets Bottom Bit.
|
static int |
intForMplsLabel(MplsLabel label)
Makes a value of incoming label 20 leftmost bits in 24bit number.
|
static MplsLabel |
mplsLabelForByteBuf(io.netty.buffer.ByteBuf buffer)
Creates and returns MplsLabel object from 20 leftmost bits in the incoming buffer.
|
public static MplsLabel mplsLabelForByteBuf(io.netty.buffer.ByteBuf buffer)
buffer - expecting 3 bytes with 20 leftmost bits as labelpublic static io.netty.buffer.ByteBuf byteBufForMplsLabel(MplsLabel label)
label - MplsLabel objectpublic static io.netty.buffer.ByteBuf byteBufForMplsLabelWithBottomBit(MplsLabel label)
label - MplsLabel objectpublic static int intForMplsLabel(MplsLabel label)
label - objectpublic static boolean getBottomBit(io.netty.buffer.ByteBuf slice)
slice - with 20 leftmost bits as labelCopyright © 2019 OpenDaylight. All rights reserved.