mirror of
https://github.com/apache/nuttx.git
synced 2026-06-08 01:42:58 +08:00
net/neighbor: Support neighbor_out() for multiple link layer at the same time
This commit is contained in:
@@ -554,24 +554,23 @@ int devif_timer(FAR struct net_driver_s *dev, devif_poll_callback_t callback);
|
||||
* Description:
|
||||
* This function should be called before sending out an IPv6 packet. The
|
||||
* function checks the destination IPv6 address of the IPv6 packet to see
|
||||
* what Ethernet MAC address that should be used as a destination MAC
|
||||
* address on the Ethernet.
|
||||
* what L2 address that should be used as a destination L2 address.
|
||||
*
|
||||
* If the destination IPv6 address is in the local network (determined
|
||||
* by logical ANDing of netmask and our IPv6 address), the function
|
||||
* checks the Neighbor Table to see if an entry for the destination IPv6
|
||||
* address is found. If so, an Ethernet header is pre-pended at the
|
||||
* beginning of the packet and the function returns.
|
||||
* address is found. If so, an L2 header is pre-pended at the beginning
|
||||
* of the packet and the function returns.
|
||||
*
|
||||
* If no Neighbor Table entry is found for the destination IPv6 address,
|
||||
* the packet in the d_buf[] is replaced by an ICMPv6 Neighbor Solict
|
||||
* the packet in the d_buf is replaced by an ICMPv6 Neighbor Solicit
|
||||
* request packet for the IPv6 address. The IPv6 packet is dropped and
|
||||
* it is assumed that the higher level protocols (e.g., TCP) eventually
|
||||
* will retransmit the dropped packet.
|
||||
*
|
||||
* Upon return in either the case, a packet to be sent is present in the
|
||||
* d_buf[] buffer and the d_len field holds the length of the Ethernet
|
||||
* frame that should be transmitted.
|
||||
* d_buf buffer and the d_len field holds the length of the L2 frame that
|
||||
* should be transmitted.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user