diff options
author | Xavier Simonart <simonartxavier@gmail.com> | 2021-03-29 11:45:47 +0200 |
---|---|---|
committer | Xavier Simonart <simonartxavier@gmail.com> | 2021-03-29 11:56:44 +0200 |
commit | 6d82c12cc7876aef8f1a6f98e5897d96a1e991c8 (patch) | |
tree | e0edcc9acd7b12f385a113015350855619abe99d /VNFs/DPPD-PROX/arp.h | |
parent | 91c54d4d46d64cbba9d5573609497a211dbbc479 (diff) |
Minor update to fix compilation issues on recent gcc and dpdk
Fixes compilation issues seen on gcc 9.3.0 on dpdk 20.05.
Signed-off-by: Xavier Simonart <simonartxavier@gmail.com>
Change-Id: Ib7989c1bac66e82551165ab49e06941ebc772347
Diffstat (limited to 'VNFs/DPPD-PROX/arp.h')
-rw-r--r-- | VNFs/DPPD-PROX/arp.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/VNFs/DPPD-PROX/arp.h b/VNFs/DPPD-PROX/arp.h index 3e8e0d90..ebf8a89e 100644 --- a/VNFs/DPPD-PROX/arp.h +++ b/VNFs/DPPD-PROX/arp.h @@ -30,7 +30,7 @@ struct _arp_ipv4 { uint32_t spa; /* Sender protocol address */ prox_rte_ether_addr tha; /* Target hardware address */ uint32_t tpa; /* Target protocol address */ -} __attribute__((__packed__)); +} __attribute__((__packed__)) __attribute__((__aligned__(2))); typedef struct _arp_ipv4 arp_ipv4_t; struct my_arp_t { @@ -40,7 +40,7 @@ struct my_arp_t { uint8_t plen; uint16_t oper; arp_ipv4_t data; -} __attribute__((__packed__)); +} __attribute__((__packed__)) __attribute__((__aligned__(2))); struct ether_hdr_arp { prox_rte_ether_hdr ether_hdr; |