tun: move tun related macro definitions out of CONFIG_NET_TUN

to support cross-core tun device operations via rpmsgdev

Signed-off-by: zhanghongyu <zhanghongyu@xiaomi.com>
This commit is contained in:
zhanghongyu 2023-04-10 21:04:44 +08:00 committed by Xiang Xiao
parent 305c213d15
commit 2b4cf41e14

View File

@ -46,8 +46,6 @@
#include <nuttx/config.h>
#include <nuttx/net/ioctl.h>
#ifdef CONFIG_NET_TUN
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
@ -59,6 +57,8 @@
#define IFF_MASK 0x7f
#define IFF_NO_PI 0x80
#ifdef CONFIG_NET_TUN
/****************************************************************************
* Public Type Definitions
****************************************************************************/