mirror of
https://github.com/impact-eintr/netstack.git
synced 2025-10-09 06:40:06 +08:00
连接的建立 数据的收发 施工中。。。
This commit is contained in:
@@ -488,9 +488,11 @@ func (n *NIC) DeliverTransportPacket(r *Route, protocol tcpip.TransportProtocolN
|
||||
})
|
||||
id := TransportEndpointID{dstPort, r.LocalAddress, srcPort, r.RemoteAddress}
|
||||
// 调用分流器,根据传输层协议和传输层id分发数据报文
|
||||
// 现在本网卡中尝试分发
|
||||
if n.demux.deliverPacket(r, protocol, vv, id) {
|
||||
return
|
||||
}
|
||||
// 在整个协议栈尝试分发
|
||||
if n.stack.demux.deliverPacket(r, protocol, vv, id) {
|
||||
return
|
||||
}
|
||||
|
Reference in New Issue
Block a user