You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2023/05/04 11:34:13 UTC

[nuttx] branch master updated: route: add struct in6_rtmsg definition

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

xiaoxiang 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 89eb41797d route: add struct in6_rtmsg definition
89eb41797d is described below

commit 89eb41797dca9d667b380ef5117bf185303633e9
Author: zhanghongyu <zh...@xiaomi.com>
AuthorDate: Thu Apr 13 23:33:56 2023 +0800

    route: add struct in6_rtmsg definition
    
    adapts to third-party code compilation. in the process of porting ConnMan,
    we encounter some situations where the structure is not defined, or the
    returned data types do not match the expectations. Refer to the common
    implementation of other systems and add relevant definitions.
    
    Signed-off-by: zhanghongyu <zh...@xiaomi.com>
---
 include/net/route.h | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/include/net/route.h b/include/net/route.h
index 74167da96d..0564dde8f2 100644
--- a/include/net/route.h
+++ b/include/net/route.h
@@ -28,6 +28,7 @@
 #include <nuttx/config.h>
 
 #include <sys/socket.h>
+#include <netinet/in.h>
 
 #include <nuttx/net/ioctl.h>
 
@@ -57,6 +58,20 @@ struct rtentry
   FAR char *rt_dev;                   /* Forcing the device at add. */
 };
 
+struct in6_rtmsg
+{
+  struct in6_addr rtmsg_dst;
+  struct in6_addr rtmsg_src;
+  struct in6_addr rtmsg_gateway;
+  uint32_t rtmsg_type;
+  uint16_t rtmsg_dst_len;
+  uint16_t rtmsg_src_len;
+  uint32_t rtmsg_metric;
+  unsigned long int rtmsg_info;
+  uint32_t rtmsg_flags;
+  int rtmsg_ifindex;
+};
+
 /****************************************************************************
  * Public Data
  ****************************************************************************/