13db2494e8
flow.c: In function ‘parse_flow_tokens’:
flow.c:153:23: error: taking address of packed member of ‘struct
rte_ipv4_hdr’ may result in an unaligned pointer value
[-Werror=address-of-packed-member]
153 | if (ipv4_addr_cpy(&rule->ipv4.spec.hdr.src_addr,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flow.c:154:9: error: taking address of packed member of ‘struct
rte_ipv4_hdr’ may result in an unaligned pointer value
[-Werror=address-of-packed-member]
154 | &rule->ipv4.mask.hdr.src_addr,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flow.c:170:23: error: taking address of packed member of ‘struct
rte_ipv4_hdr’ may result in an unaligned pointer value
[-Werror=address-of-packed-member]
170 | if (ipv4_addr_cpy(&rule->ipv4.spec.hdr.dst_addr,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flow.c:171:9: error: taking address of packed member of ‘struct
rte_ipv4_hdr’ may result in an unaligned pointer value
[-Werror=address-of-packed-member]
171 | &rule->ipv4.mask.hdr.dst_addr,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
Meson build is fine since we waive those warnings.
Replicate it for make.
Fixes:
|
||
---|---|---|
.. | ||
test | ||
ep0.cfg | ||
ep1.cfg | ||
esp.c | ||
esp.h | ||
event_helper.c | ||
event_helper.h | ||
flow.c | ||
flow.h | ||
ipip.h | ||
ipsec_process.c | ||
ipsec_worker.c | ||
ipsec_worker.h | ||
ipsec-secgw.c | ||
ipsec-secgw.h | ||
ipsec.c | ||
ipsec.h | ||
Makefile | ||
meson.build | ||
parser.c | ||
parser.h | ||
rt.c | ||
sa.c | ||
sad.c | ||
sad.h | ||
sp4.c | ||
sp6.c |