mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00:00
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:
parent
590678ec96
commit
0fdd6b5bf6
2 changed files with 2 additions and 2 deletions
|
|
@ -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 */
|
||||
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue