net/nerighbor: No need to update pktlen before l2 output
Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
parent
4b70e4ff77
commit
dc6f10f33b
@ -196,10 +196,6 @@ void neighbor_ethernet_out(FAR struct net_driver_s *dev)
|
|||||||
memcpy(eth->src, dev->d_mac.ether.ether_addr_octet, ETHER_ADDR_LEN);
|
memcpy(eth->src, dev->d_mac.ether.ether_addr_octet, ETHER_ADDR_LEN);
|
||||||
eth->type = HTONS(ETHTYPE_IP6);
|
eth->type = HTONS(ETHTYPE_IP6);
|
||||||
|
|
||||||
/* Update device buffer length */
|
|
||||||
|
|
||||||
iob_update_pktlen(dev->d_iob, dev->d_len);
|
|
||||||
|
|
||||||
/* Add the size of the layer layer header to the total size of the
|
/* Add the size of the layer layer header to the total size of the
|
||||||
* outgoing packet.
|
* outgoing packet.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user