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

@ -18,6 +18,18 @@ defmodule Openflow.SetAsync do
def ofp_type, do: 28
def new(options \\ []) do
%SetAsync{
xid: options[:xid] || 0,
packet_in_mask_master: options[:packet_in_mask_master],
packet_in_mask_slave: options[:packet_in_mask_slave],
port_status_mask_master: options[:port_status_mask_master],
port_status_mask_slave: options[:port_status_mask_slave],
flow_removed_mask_master: options[:flow_removed_mask_master],
flow_removed_mask_slave: options[:flow_removed_mask_slave]
}
end
def read(
<<packet_in_mask_master::32, packet_in_mask_slave::32, port_status_mask_master::32,
port_status_mask_slave::32, flow_removed_mask_master::32, flow_removed_mask_slave::32>>