From cd3d3c272a67d4f8bb80ac484b7378bf9dd68cdf Mon Sep 17 00:00:00 2001 From: dongjiuzhu1 Date: Fri, 18 Nov 2022 11:40:10 +0800 Subject: [PATCH] net/route.h: add RTF_XX flags and rt_dev member refs: https://students.mimuw.edu.pl/SO/Linux/Kod/include/linux/route.h.html https://nxmnpg.lemoda.net/9/rtentry Signed-off-by: dongjiuzhu1 --- include/net/route.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/net/route.h b/include/net/route.h index c0f64b0799d..74167da96dc 100644 --- a/include/net/route.h +++ b/include/net/route.h @@ -35,6 +35,10 @@ * Pre-processor Definitions ****************************************************************************/ +#define RTF_UP 0x0001 /* Route usable. */ +#define RTF_GATEWAY 0x0002 /* Destination is a gateway. */ +#define RTF_HOST 0x0004 /* Host entry (net otherwise). */ + /**************************************************************************** * Public Types ****************************************************************************/ @@ -50,6 +54,7 @@ struct rtentry * the hop */ struct sockaddr_storage rt_genmask; /* Network mask defining the sub-net */ uint16_t rt_flags; + FAR char *rt_dev; /* Forcing the device at add. */ }; /****************************************************************************