Add flow dispatcher
This commit is contained in:
parent
47bdde06c3
commit
ed63adda33
27 changed files with 2469 additions and 963 deletions
|
|
@ -568,8 +568,10 @@ func (t *NativeTun) readNonblocking(buffer []byte) (int, error) {
|
|||
func (t *NativeTun) BatchWrite(buffers [][]byte, offset int) (int, error) {
|
||||
t.writeAccess.Lock()
|
||||
defer func() {
|
||||
t.tcpGROTable.reset()
|
||||
t.udpGROTable.reset()
|
||||
if t.vnetHdr {
|
||||
t.tcpGROTable.reset()
|
||||
t.udpGROTable.reset()
|
||||
}
|
||||
t.writeAccess.Unlock()
|
||||
}()
|
||||
var (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue