Fix to secure_channel send_message more safer
This commit is contained in:
parent
2974723807
commit
5762231816
3 changed files with 29 additions and 45 deletions
46
test/flay.ex
46
test/flay.ex
|
|
@ -132,48 +132,10 @@ defmodule Flay do
|
|||
tables = [
|
||||
TableFeatures.Body.new(
|
||||
table_id: 0,
|
||||
max_entries: 2000,
|
||||
instructions: [
|
||||
Openflow.Instruction.ApplyActions,
|
||||
Openflow.Instruction.GotoTable
|
||||
],
|
||||
next_tables: [1],
|
||||
apply_actions: [
|
||||
Openflow.Action.Output,
|
||||
Openflow.Action.PushVlan,
|
||||
Openflow.Action.PopVlan,
|
||||
Openflow.Action.SetField
|
||||
],
|
||||
match: [
|
||||
:in_port, :eth_src, :eth_dst, :eth_type, :vlan_vid,
|
||||
:ip_proto, :ipv4_src, :ipv4_dst, :tcp_dst,:udp_dst
|
||||
],
|
||||
apply_setfield: [
|
||||
:eth_src, :eth_dst, :vlan_vid
|
||||
]
|
||||
),
|
||||
TableFeatures.Body.new(
|
||||
table_id: 0,
|
||||
max_entries: 2000,
|
||||
instructions: [
|
||||
Openflow.Instruction.ApplyActions
|
||||
],
|
||||
next_tables: [],
|
||||
apply_actions: [
|
||||
Openflow.Action.Output,
|
||||
Openflow.Action.PushVlan,
|
||||
Openflow.Action.PopVlan,
|
||||
Openflow.Action.SetField
|
||||
],
|
||||
match: [
|
||||
:in_port, :eth_src, :eth_dst, :eth_type, :vlan_vid,
|
||||
:ip_proto, :ipv4_src, :ipv4_dst, :tcp_dst,:udp_dst
|
||||
],
|
||||
apply_setfield: [
|
||||
:eth_src, :eth_dst, :vlan_vid, :ipv4_src, :ipv4_dst,
|
||||
:arp_spa, :arp_tpa, :arp_tha
|
||||
]
|
||||
),
|
||||
name: "Custom L2 Src",
|
||||
max_entries: 8192,
|
||||
config: [:table_miss_mask]
|
||||
)
|
||||
]
|
||||
TableFeatures.Request.new(tables)
|
||||
|> send_message(datapath_id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue