Openflow parser

This commit is contained in:
Eishun Kondoh 2017-11-13 22:52:53 +09:00
parent 70b0d8919e
commit fc02a678de
338 changed files with 9081 additions and 0 deletions

View file

@ -0,0 +1,24 @@
defmodule Openflow.Barrier.Reply do
defstruct(
version: 4,
xid: 0,
datapath_id: nil, # virtual field
aux_id: 0 # virtual field
)
alias __MODULE__
def ofp_type, do: 21
def new do
%Reply{}
end
def read(_) do
%Reply{}
end
def to_binary(%Reply{}) do
<<>>
end
end

View file

@ -0,0 +1,24 @@
defmodule Openflow.Barrier.Request do
defstruct(
version: 4,
xid: 0,
datapath_id: nil, # virtual field
aux_id: 0 # virtual field
)
alias __MODULE__
def ofp_type, do: 20
def new do
%Request{}
end
def read(_) do
%Request{}
end
def to_binary(%Request{}) do
<<>>
end
end