summaryrefslogtreecommitdiff
path: root/components/lwp/lwp_sys_socket.h
diff options
context:
space:
mode:
authorShell <[email protected]>2024-03-28 23:42:56 +0800
committerGitHub <[email protected]>2024-03-28 23:42:56 +0800
commit83e95bdff4c48c661b50e1eec56d5fd293b28fbb (patch)
tree9e0c2065950f0804e5009da71c8e0f590224cade /components/lwp/lwp_sys_socket.h
parent40e26f4909fa61ada775ba86b44d8300aaf5d250 (diff)
sync smart & dfs (#8672)
Signed-off-by: xqyjlj <[email protected]> Signed-off-by: Shell <[email protected]> Co-authored-by: xqyjlj <[email protected]>
Diffstat (limited to 'components/lwp/lwp_sys_socket.h')
-rw-r--r--components/lwp/lwp_sys_socket.h21
1 files changed, 20 insertions, 1 deletions
diff --git a/components/lwp/lwp_sys_socket.h b/components/lwp/lwp_sys_socket.h
index 527d5ebbe8..28a0887203 100644
--- a/components/lwp/lwp_sys_socket.h
+++ b/components/lwp/lwp_sys_socket.h
@@ -113,7 +113,7 @@ struct musl_ifreq
{
union
{
-#define IFNAMSIZ 16
+#define IFNAMSIZ 16
char ifrn_name[IFNAMSIZ];
} ifr_ifrn;
union
@@ -133,4 +133,23 @@ struct musl_ifreq
} ifr_ifru;
};
+struct musl_rtentry
+{
+ unsigned long int rt_pad1;
+ struct musl_sockaddr rt_dst;
+ struct musl_sockaddr rt_gateway;
+ struct musl_sockaddr rt_genmask;
+ unsigned short int rt_flags;
+ short int rt_pad2;
+ unsigned long int rt_pad3;
+ unsigned char rt_tos;
+ unsigned char rt_class;
+ short int rt_pad4[sizeof(long)/2-1];
+ short int rt_metric;
+ char *rt_dev;
+ unsigned long int rt_mtu;
+ unsigned long int rt_window;
+ unsigned short int rt_irtt;
+};
+
#endif /* __LWP_SYS_SOCKET_H__ */