mirror of
https://github.com/impact-eintr/netstack.git
synced 2025-10-15 09:21:24 +08:00
网络层的一些头文件 除去ipv4相关的 都是一些我不准备看的代码 直接复制了
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user