module Pdu:sig
..end
type
t = {
|
prio : |
(* |
Priority from 0 - best effot - to 7 - highest
| *) |
|
cfi : |
(* |
Should be zero if you live after 1990
| *) |
|
id : |
(* |
The vlan trag itself
| *) |
|
proto : |
(* |
What's the payload
| *) |
|
payload : |
val make : ?prio:int ->
?cfi:bool -> int -> Arp.HwProto.t -> Tools.Payload.outer_t -> t
Vlan.Pdu.t
for the given payload
.val random : unit -> t
Vlan.Pdu.t
.val pack : t -> Bitstring.bitstring
Vlan.Pdu.t
into its bitstring
raw representation, ready for
encapsulation into a Eth.Pdu.t
(or anywhere you like).val unpack : string * int * int -> t option
bitstring
into a Vlan.Pdu.t