Openflow parser
This commit is contained in:
parent
70b0d8919e
commit
fc02a678de
338 changed files with 9081 additions and 0 deletions
20
lib/openflow/get_async/request.ex
Normal file
20
lib/openflow/get_async/request.ex
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
defmodule Openflow.GetAsync.Request do
|
||||
defstruct(
|
||||
version: 4,
|
||||
xid: 0,
|
||||
datapath_id: nil, # virtual field
|
||||
aux_id: 0 # virtual field
|
||||
)
|
||||
|
||||
alias __MODULE__
|
||||
|
||||
def ofp_type, do: 26
|
||||
|
||||
def read(_) do
|
||||
%Request{}
|
||||
end
|
||||
|
||||
def to_binary(%Request{}) do
|
||||
<<>>
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue