File tree 6 files changed +9
-9
lines changed
6 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ enum net_dhcpv4_state {
38
38
NET_DHCPV4_RENEWING ,
39
39
NET_DHCPV4_REBINDING ,
40
40
NET_DHCPV4_BOUND ,
41
- };
41
+ } __packed ;
42
42
43
43
/**
44
44
* @brief Start DHCPv4 client on an iface
Original file line number Diff line number Diff line change @@ -53,12 +53,12 @@ enum http_state {
53
53
HTTP_STATE_RECEIVING_HEADER ,
54
54
HTTP_STATE_HEADER_RECEIVED ,
55
55
HTTP_STATE_OPEN ,
56
- };
56
+ } __packed ;
57
57
58
58
enum http_url_flags {
59
59
HTTP_URL_STANDARD = 0 ,
60
60
HTTP_URL_WEBSOCKET ,
61
- };
61
+ } __packed ;
62
62
63
63
enum http_connection_type {
64
64
HTTP_CONNECTION = 1 ,
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ enum net_app_type {
59
59
NET_APP_UNSPEC = 0 ,
60
60
NET_APP_SERVER ,
61
61
NET_APP_CLIENT ,
62
- };
62
+ } __packed ;
63
63
64
64
struct net_app_ctx ;
65
65
Original file line number Diff line number Diff line change @@ -206,7 +206,7 @@ enum net_priority {
206
206
NET_PRIORITY_VO = 5 , /* Voice, < 10 ms latency and jitter */
207
207
NET_PRIORITY_IC = 6 , /* Internetwork control */
208
208
NET_PRIORITY_NC = 7 /* Network control */
209
- };
209
+ } __packed ;
210
210
211
211
/** IPv6/IPv4 network connection tuple */
212
212
struct net_tuple {
@@ -229,7 +229,7 @@ enum net_addr_type {
229
229
NET_ADDR_DHCP ,
230
230
NET_ADDR_MANUAL ,
231
231
NET_ADDR_OVERRIDABLE ,
232
- };
232
+ } __packed ;
233
233
234
234
#if NET_LOG_ENABLED > 0
235
235
static inline char * net_addr_type2str (enum net_addr_type type )
@@ -265,7 +265,7 @@ enum net_addr_state {
265
265
NET_ADDR_TENTATIVE = 0 ,
266
266
NET_ADDR_PREFERRED ,
267
267
NET_ADDR_DEPRECATED ,
268
- };
268
+ } __packed ;
269
269
270
270
struct net_ipv6_hdr {
271
271
u8_t vtc ;
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ enum net_l2_flags {
36
36
37
37
/** Is promiscuous mode supported */
38
38
NET_L2_PROMISC_MODE = BIT (2 ),
39
- };
39
+ } __packed ;
40
40
41
41
struct net_l2 {
42
42
/**
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ enum net_link_type {
45
45
NET_LINK_BLUETOOTH ,
46
46
NET_LINK_ETHERNET ,
47
47
NET_LINK_DUMMY ,
48
- };
48
+ } __packed ;
49
49
50
50
/**
51
51
* @brief Hardware link address structure
You can’t perform that action at this time.
0 commit comments