向网络层写入数据后 需要使用arp协议(网络层协议)来找到目标主机地址 下一步实现arp

This commit is contained in:
impact-eintr
2022-11-26 10:46:37 +08:00
parent 2312813aac
commit 331b8bd3dd
5 changed files with 220 additions and 7 deletions

View File

@@ -172,7 +172,7 @@ type Route struct {
Destination Address // 目标地址
Mask AddressMask // 掩码
Gateway Address // 网关
MIC NICID // 使用的网卡设备
NIC NICID // 使用的网卡设备
}
// Stats 包含了网络栈的统计信息