net: Move s_flags to last to avoid the padding added by compiler
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
62c5afe655
commit
a70a9f5ae6
@ -202,10 +202,6 @@ struct socket_conn_s
|
|||||||
FAR struct devif_callback_s *list;
|
FAR struct devif_callback_s *list;
|
||||||
FAR struct devif_callback_s *list_tail;
|
FAR struct devif_callback_s *list_tail;
|
||||||
|
|
||||||
/* Definitions of 8-bit socket flags */
|
|
||||||
|
|
||||||
uint8_t s_flags; /* See _SF_* definitions */
|
|
||||||
|
|
||||||
/* Socket options */
|
/* Socket options */
|
||||||
|
|
||||||
#ifdef CONFIG_NET_SOCKOPTS
|
#ifdef CONFIG_NET_SOCKOPTS
|
||||||
@ -213,14 +209,18 @@ struct socket_conn_s
|
|||||||
sockopt_t s_options; /* Selected socket options */
|
sockopt_t s_options; /* Selected socket options */
|
||||||
socktimeo_t s_rcvtimeo; /* Receive timeout value (in deciseconds) */
|
socktimeo_t s_rcvtimeo; /* Receive timeout value (in deciseconds) */
|
||||||
socktimeo_t s_sndtimeo; /* Send timeout value (in deciseconds) */
|
socktimeo_t s_sndtimeo; /* Send timeout value (in deciseconds) */
|
||||||
#ifdef CONFIG_NET_SOLINGER
|
# ifdef CONFIG_NET_SOLINGER
|
||||||
socktimeo_t s_linger; /* Linger timeout value (in deciseconds) */
|
socktimeo_t s_linger; /* Linger timeout value (in deciseconds) */
|
||||||
#endif
|
# endif
|
||||||
#ifdef CONFIG_NET_BINDTODEVICE
|
# ifdef CONFIG_NET_BINDTODEVICE
|
||||||
uint8_t s_boundto; /* Index of the interface we are bound to.
|
uint8_t s_boundto; /* Index of the interface we are bound to.
|
||||||
* Unbound: 0, Bound: 1-MAX_IFINDEX */
|
* Unbound: 0, Bound: 1-MAX_IFINDEX */
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
|
/* Definitions of 8-bit socket flags */
|
||||||
|
|
||||||
|
uint8_t s_flags; /* See _SF_* definitions */
|
||||||
|
|
||||||
/* Connection-specific content may follow */
|
/* Connection-specific content may follow */
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user