Fix to accept transaction_id to all message structs
This commit is contained in:
parent
bb74f3d8c4
commit
4803c61061
29 changed files with 118 additions and 34 deletions
|
|
@ -14,8 +14,11 @@ defmodule Openflow.Multipart.TableFeatures.Request do
|
|||
|
||||
def ofp_type, do: 18
|
||||
|
||||
def new(tables \\ []) do
|
||||
%Request{tables: tables}
|
||||
def new(options \\ []) do
|
||||
%Request{
|
||||
xid: options[:xid] || 0,
|
||||
tables: options[:tables] || []
|
||||
}
|
||||
end
|
||||
|
||||
def read(<<tables_bin::bytes>>) do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue