ipfrag: use netdev_iob_replace_l2 to replace d_iob

d_len needs to include NET_LL_HDRLEN(dev) to avoid errors in
the verification of message length in ipv4_in/ipv6_in.

Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
This commit is contained in:
zhanghongyu 2025-09-17 10:26:49 +08:00 committed by Xiang Xiao
parent 590678ec96
commit 0fdd6b5bf6
2 changed files with 2 additions and 2 deletions

View file

@ -309,7 +309,7 @@ int32_t ipv4_fragin(FAR struct net_driver_s *dev)
*/
ipv4_fragin_reassemble(node);
netdev_iob_replace(dev, node->outgoframe);
netdev_iob_replace_l2(dev, node->outgoframe);
/* Free the memory of node */

View file

@ -515,7 +515,7 @@ int32_t ipv6_fragin(FAR struct net_driver_s *dev)
*/
ipv6_fragin_reassemble(node);
netdev_iob_replace(dev, node->outgoframe);
netdev_iob_replace_l2(dev, node->outgoframe);
/* Free the memory of node */