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,9 +14,10 @@ defmodule Openflow.SetConfig do
def ofp_type, do: 9
def new(options \\ []) do
xid = Keyword.get(options, :xid, 0)
flags = Keyword.get(options, :flags, [])
miss_send_len = Keyword.get(options, :miss_send_len, :no_buffer)
%SetConfig{flags: flags, miss_send_len: miss_send_len}
%SetConfig{xid: xid, flags: flags, miss_send_len: miss_send_len}
end
def read(<<flags_int::16, miss_send_len0::16>>) do