diff options
author | gVisor bot <gvisor-bot@google.com> | 2021-10-01 22:04:07 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-10-01 22:04:07 +0000 |
commit | bb65276565a64cac87870c020b08ca024bcb94a6 (patch) | |
tree | 3707714c115c5fab545594b8e6ae849138261fe7 /pkg/tcpip/stack/conntrack.go | |
parent | 6a77542c8abce6038a6c023d07ba68442f31e9a0 (diff) | |
parent | 51c4fbb840b98380b4016bac030f0adbd5725d70 (diff) |
Merge release-20210921.0-57-g51c4fbb84 (automated)
Diffstat (limited to 'pkg/tcpip/stack/conntrack.go')
-rw-r--r-- | pkg/tcpip/stack/conntrack.go | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/pkg/tcpip/stack/conntrack.go b/pkg/tcpip/stack/conntrack.go index bd47f734f..79bc001c7 100644 --- a/pkg/tcpip/stack/conntrack.go +++ b/pkg/tcpip/stack/conntrack.go @@ -403,29 +403,6 @@ func insertConn(tupleBkt *bucket, replyBkt *bucket, conn *conn) { } } -// handlePacket will manipulate the port and address of the packet if the -// connection exists. Returns whether, after the packet traverses the tables, -// it should create a new entry in the table. -func (ct *ConnTrack) handlePacket(pkt *PacketBuffer, hook Hook, r *Route) bool { - switch hook { - case Prerouting, Input, Output, Postrouting: - default: - return false - } - - if conn, dir := ct.connFor(pkt); conn != nil { - conn.handlePacket(pkt, hook, dir, r) - return false - } - - // Connection not found for the packet. - // - // If this is the last hook in the data path for this packet (Input if - // incoming, Postrouting if outgoing), indicate that a connection should be - // inserted by the end of this hook. - return hook == Input || hook == Postrouting -} - func (cn *conn) handlePacket(pkt *PacketBuffer, hook Hook, dir direction, r *Route) { if pkt.NatDone { return |