Package pcap.codec.ethernet
Class Vlan.Builder
java.lang.Object
pcap.codec.AbstractPacket.Builder
pcap.codec.ethernet.Vlan.Builder
- Enclosing class:
- Vlan
public static final class Vlan.Builder extends AbstractPacket.Builder
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description Vlan
build()
Vlan
build(Memory buffer)
Vlan.Builder
canonicalFormatIndicator(int canonicalFormatIndicator)
Drop eligible indicator (DEI).Vlan.Builder
priorityCodePoint(Vlan.PriorityCodePoint priorityCodePoint)
Priority code point (PCP).Vlan.Builder
reset()
Vlan.Builder
reset(int offset, int length)
Vlan.Builder
type(NetworkLayer type)
Next protocol type.Vlan.Builder
vlanIdentifier(int vlanIdentifier)
VLAN identifier (VID).
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
priorityCodePoint
Priority code point (PCP).A 3-bit field which refers to the IEEE 802.1p class of service and maps to the frame priority level. Different PCP values can be used to prioritize different classes of traffic.
- Parameters:
priorityCodePoint
- PCP.- Returns:
- returns this
Vlan.Builder
.
-
canonicalFormatIndicator
Drop eligible indicator (DEI).A 1-bit field. (formerly CFI) May be used separately or in conjunction with PCP to indicate frames eligible to be dropped in the presence of congestion.
- Parameters:
canonicalFormatIndicator
- CFI.- Returns:
- returns this
Vlan.Builder
.
-
vlanIdentifier
VLAN identifier (VID).A 12-bit field specifying the VLAN to which the frame belongs.
- Parameters:
vlanIdentifier
- vlan identifier.- Returns:
- returns this
Vlan.Builder
.
-
type
Next protocol type.Example:
NetworkLayer.ARP
.- Parameters:
type
- payload type.- Returns:
- returns this
Vlan.Builder
.
-
build
-
build
-
reset
- Overrides:
reset
in classAbstractPacket.Builder
-
reset
- Overrides:
reset
in classAbstractPacket.Builder
-