mirror of
https://github.com/impact-eintr/netstack.git
synced 2025-10-06 13:26:49 +08:00
处理sleep的链接问题
This commit is contained in:
21
tcpip/stack/stack_test.go
Normal file
21
tcpip/stack/stack_test.go
Normal 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)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user