Current section
Files
Jump to
Current section
Files
lib/openflow/barrier/request.ex
defmodule Openflow.Barrier.Request do
defstruct(
version: 4,
xid: 0,
# virtual field
datapath_id: nil,
# virtual field
aux_id: 0
)
alias __MODULE__
@type t :: %Request{
version: 4,
xid: 0..0xFFFFFFFF,
datapath_id: String.t() | nil,
aux_id: non_neg_integer() | nil
}
@spec ofp_type() :: 20
def ofp_type, do: 20
@spec new(xid :: 0..0xFFFFFFFF) :: t()
def new(xid \\ 0), do: %Request{xid: xid}
@spec read(binary()) :: t()
def read(_), do: %Request{}
@spec to_binary(t()) :: binary()
def to_binary(%Request{}), do: <<>>
end