public final class IEEE8021Q extends EtherTypePacket<IEEE8021Q>
IEEE8021Q
describes an IEEE 802.1Q VLAN tag.
This class is provided only for VTN internal use. This class may be changed without any notice.
Packet.HeaderField
Constructor and Description |
---|
IEEE8021Q() |
Modifier and Type | Method and Description |
---|---|
byte |
getCfi()
Gets the canonical format indicator(CFI) stored.
|
protected Map<String,Packet.HeaderField> |
getHeaderFormat()
Return a map that determines the format of the packet.
|
int |
getHeaderSize()
Gets the header size in bits.
|
byte |
getPcp()
Gets the priority code point(PCP) stored.
|
short |
getVid()
Gets the VLAN identifier(VID) stored.
|
IEEE8021Q |
setCfi(byte cfi)
Sets the canonical format indicator(CFI) for the current IEEE 802.1Q
object instance.
|
IEEE8021Q |
setPcp(byte pcp)
Sets the priority code point(PCP) for the current IEEE 802.1Q object
instance.
|
IEEE8021Q |
setVid(short vid)
Sets the VLAN identifier(VID) for the current IEEE 802.1Q instance.
|
clone, getEtherType, setEtherType, setHeaderField
deserialize, equals, equalsField, getByte, getBytes, getFieldNumBits, getFieldNumBits, getFieldOffset, getFieldOffset, getHeaderFieldMap, getInt, getIp4Network, getPayload, getRawPayload, getRawPayloadSize, getShort, hashCode, isCorrupted, isZeroShort, postDeserializeCustomOperation, postSerializeCustomOperation, serialize, setCorrupted, setPayload, setPayloadClass, setRawPayload, toString
public byte getPcp()
public byte getCfi()
public short getVid()
public IEEE8021Q setPcp(byte pcp)
pcp
- The priority code point value.public IEEE8021Q setCfi(byte cfi)
cfi
- The canonical format indicator value.public IEEE8021Q setVid(short vid)
vid
- The VLAN ID.public int getHeaderSize()
getHeaderSize
in class Packet
protected Map<String,Packet.HeaderField> getHeaderFormat()
getHeaderFormat
in class Packet
Copyright © 2018 OpenDaylight. All rights reserved.