diff options
author | Kevin Krakauer <krakauer@google.com> | 2020-01-14 17:54:02 -0800 |
---|---|---|
committer | Kevin Krakauer <krakauer@google.com> | 2020-01-14 17:54:02 -0800 |
commit | 95e9de31d20ee1c7262fe5870e10485a369e6497 (patch) | |
tree | 0fbe32866d059be37b1c8da88c98bfcc2d0f14be /pkg/tcpip/iptables/iptables.go | |
parent | 1c3d3c70b93d483894dd49fb444171347f0ca250 (diff) |
Address Nic's comments.
Diffstat (limited to 'pkg/tcpip/iptables/iptables.go')
-rw-r--r-- | pkg/tcpip/iptables/iptables.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/tcpip/iptables/iptables.go b/pkg/tcpip/iptables/iptables.go index 83d807a4d..605a71679 100644 --- a/pkg/tcpip/iptables/iptables.go +++ b/pkg/tcpip/iptables/iptables.go @@ -153,6 +153,8 @@ func (it *IPTables) Check(hook Hook, pkt tcpip.PacketBuffer) bool { return false case Stolen, Queue, Repeat, None, Jump, Return, Continue: panic(fmt.Sprintf("Unimplemented verdict %v.", verdict)) + default: + panic(fmt.Sprintf("Unknown verdict %v.", verdict)) } } @@ -174,6 +176,8 @@ func (it *IPTables) checkTable(hook Hook, pkt tcpip.PacketBuffer, tablename stri continue case Stolen, Queue, Repeat, None, Jump, Return: panic(fmt.Sprintf("Unimplemented verdict %v.", verdict)) + default: + panic(fmt.Sprintf("Unknown verdict %v.", verdict)) } } |