网络层的一些头文件 除去ipv4相关的 都是一些我不准备看的代码 直接复制了

This commit is contained in:
impact-eintr
2022-11-27 17:24:14 +08:00
parent 386afff633
commit 5947778dfa
15 changed files with 1903 additions and 5 deletions

View File

@@ -379,6 +379,19 @@ func (n *NIC) DeliverNetworkPacket(linkEP LinkEndpoint, remoteLinkAddr, localLin
n.stack.stats.IP.InvalidAddressesReceived.Increment()
}
// DeliverTransportPacket delivers packets to the appropriate
// transport protocol endpoint.
func (n *NIC) DeliverTransportPacket(r *Route, protocol tcpip.TransportProtocolNumber, vv buffer.VectorisedView) {
}
// DeliverTransportControlPacket delivers control packets to the
// appropriate transport protocol endpoint.
func (n *NIC) DeliverTransportControlPacket(local, remote tcpip.Address, net tcpip.NetworkProtocolNumber,
trans tcpip.TransportProtocolNumber, typ ControlType, extra uint32, vv buffer.VectorisedView) {
}
func (n *NIC) ID() tcpip.NICID {
return n.id
}