处理sleep的链接问题

This commit is contained in:
impact-eintr
2022-11-24 19:35:26 +08:00
parent 91ec6f0433
commit e51d8ea721
15 changed files with 744 additions and 38 deletions

21
tcpip/stack/stack_test.go Normal file
View File

@@ -0,0 +1,21 @@
package stack_test
import (
"netstack/tcpip/link/channel"
"netstack/tcpip/stack"
"testing"
)
const (
defaultMTU = 65536
)
func TestStackBase(t *testing.T) {
myStack := &stack.Stack{}
id, _ := channel.New(10, defaultMTU, "")
if err := myStack.CreateNIC(1, id); err != nil {
panic(err)
}
}