Fix to accept transaction_id to all message structs

This commit is contained in:
Eishun Kondoh 2018-03-22 23:49:03 +09:00
parent bb74f3d8c4
commit 4803c61061
29 changed files with 118 additions and 34 deletions

View file

@ -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