From 2b4cf41e14dd2cfa8876e8c46f37a39582a509fa Mon Sep 17 00:00:00 2001 From: zhanghongyu Date: Mon, 10 Apr 2023 21:04:44 +0800 Subject: [PATCH] tun: move tun related macro definitions out of CONFIG_NET_TUN to support cross-core tun device operations via rpmsgdev Signed-off-by: zhanghongyu --- include/nuttx/net/tun.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/nuttx/net/tun.h b/include/nuttx/net/tun.h index d7e29e056d..c67ea6e65b 100644 --- a/include/nuttx/net/tun.h +++ b/include/nuttx/net/tun.h @@ -46,8 +46,6 @@ #include #include -#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 ****************************************************************************/