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 <dongjiuzhu1@xiaomi.com>
This commit is contained in:
dongjiuzhu1 2022-11-18 11:40:10 +08:00 committed by archer
parent 3e4e416786
commit cd3d3c272a

View File

@ -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. */
};
/****************************************************************************