mirror of
https://github.com/apache/nuttx.git
synced 2026-05-26 02:36:11 +08:00
Support fragmentation and reassembly
Signed-off-by: luojun1 <luojun1@xiaomi.com>
This commit is contained in:
@@ -35,6 +35,7 @@
|
||||
#include <net/ethernet.h>
|
||||
#include <nuttx/net/netdev.h>
|
||||
|
||||
#include "ipfrag/ipfrag.h"
|
||||
#include "netdev/netdev.h"
|
||||
#include "netlink/netlink.h"
|
||||
#include "arp/arp.h"
|
||||
@@ -92,6 +93,12 @@ int netdev_carrier_off(FAR struct net_driver_s *dev)
|
||||
dev->d_flags &= ~IFF_RUNNING;
|
||||
netlink_device_notify(dev);
|
||||
|
||||
#ifdef CONFIG_NET_IPFRAG
|
||||
/* Clean up fragment data for this NIC (if any) */
|
||||
|
||||
ip_frag_stop(dev);
|
||||
#endif
|
||||
|
||||
/* Notify clients that the network has been taken down */
|
||||
|
||||
devif_dev_event(dev, NETDEV_DOWN);
|
||||
|
||||
Reference in New Issue
Block a user