Packet.HeaderField
Constructor and Description |
---|
IEEE8021Q() |
Modifier and Type | Method and Description |
---|---|
IEEE8021Q |
clone()
Return a deep copy of this packet.
|
byte |
getCfi()
Gets the canonical format indicator(CFI) stored.
|
short |
getEtherType()
Gets the Ethernet type 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 |
setEtherType(short type)
Sets the etherType for the current IEEE 802.1Q object instance.
|
protected void |
setHeaderField(String name,
byte[] value)
Stores the value of fields read from data stream.
|
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.
|
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 short getEtherType()
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 IEEE8021Q setEtherType(short type)
type
- The Ethernet type.public int getHeaderSize()
getHeaderSize
in class Packet
protected Map<String,Packet.HeaderField> getHeaderFormat()
getHeaderFormat
in class Packet
protected void setHeaderField(String name, byte[] value)
setHeaderField
in class Packet
name
- The name of the header field.value
- The value to be associated with the specified header
field. null
cannot be specified.Copyright © 2017 OpenDaylight. All rights reserved.