tuntap test

This commit is contained in:
impact-eintr
2022-11-22 15:04:29 +08:00
parent af8c2fbd42
commit ff4cde9809
12 changed files with 754 additions and 0 deletions

11
tcpip/stack/route.go Normal file
View File

@@ -0,0 +1,11 @@
package stack
import (
)
// 贯穿整个协议栈的路由,也就是在链路层和网络层都可以路由
// 如果目标地址是链路层地址,那么在链路层路由,
// 如果目标地址是网络层地址,那么在网络层路由。
type Route struct {
// TODO
}