summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/iptables/iptables.go
diff options
context:
space:
mode:
authorNayana Bidari <nybidari@google.com>2020-02-26 13:18:35 -0800
committerNayana Bidari <nybidari@google.com>2020-02-26 13:18:35 -0800
commit9fccf98c0d990cb32666091855f3a396f762ce55 (patch)
tree6eb324700b87c906979538d0a273defc9b5d2df4 /pkg/tcpip/iptables/iptables.go
parent818abc2bd5096bf7dc6f621cfd2923bee4e0fc7b (diff)
Fix merge conflicts.
Diffstat (limited to 'pkg/tcpip/iptables/iptables.go')
-rw-r--r--pkg/tcpip/iptables/iptables.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/pkg/tcpip/iptables/iptables.go b/pkg/tcpip/iptables/iptables.go
index 80ddbd442..2ab9e0675 100644
--- a/pkg/tcpip/iptables/iptables.go
+++ b/pkg/tcpip/iptables/iptables.go
@@ -171,7 +171,6 @@ const (
chainReturn
)
-
// Check runs pkt through the rules for hook. It returns true when the packet
// should continue traversing the network stack and false when it should be
// dropped.
@@ -242,7 +241,7 @@ func (it *IPTables) checkChain(hook Hook, pkt tcpip.PacketBuffer, table Table, r
return chainDrop
case chainReturn:
ruleIdx++
- continue
+ continue
default:
panic(fmt.Sprintf("Unknown verdict: %d", verdict))
}
@@ -289,5 +288,5 @@ func (it *IPTables) checkRule(hook Hook, pkt tcpip.PacketBuffer, table Table, ru
}
// All the matchers matched, so run the target.
- return rule.Target.Action(pkt, rule.Filter)
+ return rule.Target.Action(pkt)
}