Skip to content

Commit 89eb417

Browse files
zhhyu7xiaoxiang781216
authored andcommitted
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 <[email protected]>
1 parent c288752 commit 89eb417

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

include/net/route.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#include <nuttx/config.h>
2929

3030
#include <sys/socket.h>
31+
#include <netinet/in.h>
3132

3233
#include <nuttx/net/ioctl.h>
3334

@@ -57,6 +58,20 @@ struct rtentry
5758
FAR char *rt_dev; /* Forcing the device at add. */
5859
};
5960

61+
struct in6_rtmsg
62+
{
63+
struct in6_addr rtmsg_dst;
64+
struct in6_addr rtmsg_src;
65+
struct in6_addr rtmsg_gateway;
66+
uint32_t rtmsg_type;
67+
uint16_t rtmsg_dst_len;
68+
uint16_t rtmsg_src_len;
69+
uint32_t rtmsg_metric;
70+
unsigned long int rtmsg_info;
71+
uint32_t rtmsg_flags;
72+
int rtmsg_ifindex;
73+
};
74+
6075
/****************************************************************************
6176
* Public Data
6277
****************************************************************************/

0 commit comments

Comments
 (0)