You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ar...@apache.org on 2023/01/29 06:29:57 UTC

[nuttx] branch master updated: net/route.h: add RTF_XX flags and rt_dev member

This is an automated email from the ASF dual-hosted git repository.

archer pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new cd3d3c272a net/route.h: add RTF_XX flags and rt_dev member
cd3d3c272a is described below

commit cd3d3c272a67d4f8bb80ac484b7378bf9dd68cdf
Author: dongjiuzhu1 <do...@xiaomi.com>
AuthorDate: Fri Nov 18 11:40:10 2022 +0800

    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 <do...@xiaomi.com>
---
 include/net/route.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/include/net/route.h b/include/net/route.h
index c0f64b0799..74167da96d 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. */
 };
 
 /****************************************************************************