forked from snabbco/snabb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add missing drop policy code section, fix one test and add two new on…
…es. (snabbco#48) Add missing drop policy code section, fix one test and add two new ones.
- Loading branch information
Showing
8 changed files
with
93 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
10 changes: 10 additions & 0 deletions
10
src/program/lwaftr/tests/data/counters/from-inet-ipv4-in-binding-big-packet-df-set-drop.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
return { | ||
["in-ipv4-bytes"] = 1494, | ||
["in-ipv4-packets"] = 1, | ||
|
||
["drop-over-mtu-but-dont-fragment-ipv4-bytes"] = 1494, | ||
["drop-over-mtu-but-dont-fragment-ipv4-packets"] = 1, | ||
["drop-out-by-policy-icmpv4-packets"] = 1, | ||
["drop-all-ipv4-iface-bytes"] = 1494, | ||
["drop-all-ipv4-iface-packets"] = 1, | ||
} |
13 changes: 13 additions & 0 deletions
13
src/program/lwaftr/tests/data/counters/in-ipv4-ipv6-out-icmpv4-ipv6-hairpin-1-drop.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
return { | ||
["in-ipv6-bytes"] = 106, | ||
["in-ipv6-packets"] = 1, | ||
|
||
["hairpin-ipv4-bytes"] = 66, | ||
["hairpin-ipv4-packets"] = 1, | ||
|
||
["drop-ttl-zero-ipv4-bytes"] = 66, | ||
["drop-ttl-zero-ipv4-packets"] = 1, | ||
["drop-out-by-policy-icmpv4-packets"] = 1, | ||
["drop-all-ipv6-iface-bytes"] = 106, | ||
["drop-all-ipv6-iface-packets"] = 1, | ||
} |
17 changes: 17 additions & 0 deletions
17
src/program/lwaftr/tests/data/small_ipv6_mtu_no_icmp_allow.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
aftr_ipv4_ip = 10.10.10.10, | ||
aftr_ipv6_ip = 8:9:a:b:c:d:e:f, | ||
aftr_mac_b4_side = 22:22:22:22:22:22, | ||
aftr_mac_inet_side = 12:12:12:12:12:12, | ||
binding_table = binding-table.txt, | ||
hairpinning = true, | ||
icmpv6_rate_limiter_n_packets=6e5, | ||
icmpv6_rate_limiter_n_seconds=2, | ||
inet_mac = 68:68:68:68:68:68, | ||
ipv4_mtu = 1500, | ||
ipv6_mtu = 1280, | ||
next_hop6_mac = 44:44:44:44:44:44, | ||
policy_icmpv4_incoming = ALLOW, | ||
policy_icmpv6_incoming = ALLOW, | ||
policy_icmpv4_outgoing = ALLOW, | ||
policy_icmpv6_outgoing = ALLOW, | ||
vlan_tagging = false |
19 changes: 19 additions & 0 deletions
19
src/program/lwaftr/tests/data/small_ipv6_mtu_no_icmp_vlan_allow.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
aftr_ipv4_ip = 10.10.10.10, | ||
aftr_ipv6_ip = 8:9:a:b:c:d:e:f, | ||
aftr_mac_b4_side = 22:22:22:22:22:22, | ||
aftr_mac_inet_side = 12:12:12:12:12:12, | ||
binding_table = binding-table.txt, | ||
hairpinning = true, | ||
icmpv6_rate_limiter_n_packets=6e5, | ||
icmpv6_rate_limiter_n_seconds=2, | ||
inet_mac = 68:68:68:68:68:68, | ||
ipv4_mtu = 1500, | ||
ipv6_mtu = 1280, | ||
next_hop6_mac = 44:44:44:44:44:44, | ||
policy_icmpv4_incoming = ALLOW, | ||
policy_icmpv6_incoming = ALLOW, | ||
policy_icmpv4_outgoing = ALLOW, | ||
policy_icmpv6_outgoing = ALLOW, | ||
v4_vlan_tag = 1092, # 0x444 | ||
v6_vlan_tag = 1638, # 0x666 | ||
vlan_tagging = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters