Merge pull request #9123 from maribu/pack_structs

gnrc/netif/hdr.h: Optimized structure layout
This commit is contained in:
Kaspar Schleiser 2018-05-14 14:29:09 +02:00 committed by GitHub
commit d6f9be77b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -85,8 +85,8 @@ typedef struct {
uint8_t dst_l2addr_len; /**< length of l2 destination address in byte */ uint8_t dst_l2addr_len; /**< length of l2 destination address in byte */
kernel_pid_t if_pid; /**< PID of network interface */ kernel_pid_t if_pid; /**< PID of network interface */
uint8_t flags; /**< flags as defined above */ uint8_t flags; /**< flags as defined above */
int16_t rssi; /**< rssi of received packet in dBm (optional) */
uint8_t lqi; /**< lqi of received packet (optional) */ uint8_t lqi; /**< lqi of received packet (optional) */
int16_t rssi; /**< rssi of received packet in dBm (optional) */
} gnrc_netif_hdr_t; } gnrc_netif_hdr_t;
/** /**