()
| 159 | } |
| 160 | |
| 161 | func (t *tcpGROTable) reset() { |
| 162 | for k, items := range t.itemsByFlow { |
| 163 | items = items[:0] |
| 164 | t.itemsPool = append(t.itemsPool, items) |
| 165 | delete(t.itemsByFlow, k) |
| 166 | } |
| 167 | } |
| 168 | |
| 169 | // udpFlowKey represents the key for a UDP flow. |
| 170 | type udpFlowKey struct { |