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
|
|
@ -13,7 +13,13 @@ defmodule Openflow.Echo.Reply do
|
|||
|
||||
def ofp_type, do: 3
|
||||
|
||||
def new(data \\ "") do
|
||||
def new(options) when is_list(options) do
|
||||
%Reply{
|
||||
xid: options[:xid] || 0,
|
||||
data: options[:data] || ""
|
||||
}
|
||||
end
|
||||
def new(data) when is_binary(data) do
|
||||
%Reply{data: data}
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue