diff --git a/net/ipfrag/ipv4_frag.c b/net/ipfrag/ipv4_frag.c index d62d09ee913..2c15267f45a 100644 --- a/net/ipfrag/ipv4_frag.c +++ b/net/ipfrag/ipv4_frag.c @@ -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 */ diff --git a/net/ipfrag/ipv6_frag.c b/net/ipfrag/ipv6_frag.c index ffae571ef48..0a86c26ce2c 100644 --- a/net/ipfrag/ipv6_frag.c +++ b/net/ipfrag/ipv6_frag.c @@ -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 */