Dmitry Kozlyuk 6c068dbd9f net: work around s_addr macro on Windows
Windows Sockets headers contain `#define s_addr S_un.S_addr`, which
conflicts with definition of `s_addr` field of `struct rte_ether_hdr`.
Prieviously `s_addr` was undefined in <rte_ether.h>, which had been
breaking access to `s_addr` field of `struct in_addr`, so some DPDK
and Windows headers could not be included in one file.

Renaming of `struct rte_ether_hdr` is planned:
https://mails.dpdk.org/archives/dev/2021-March/201444.html

Temporarily disable `s_addr` macro around `struct rte_ether_hdr`
definition to avoid conflict. Place source MAC address in both `s_addr`
and `S_un.S_addr` fields, so that access works either directly or
through the macro as defined in Windows headers.

Signed-off-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
Acked-by: Ranjit Menon <ranjit.menon@intel.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
2021-04-15 01:56:40 +02:00
..
2020-10-16 19:18:47 +02:00
2020-10-13 19:26:15 +02:00
2020-04-16 18:16:46 +02:00
2020-04-16 18:16:46 +02:00
2020-09-10 21:53:48 +02:00
2021-01-21 10:21:40 +01:00
2021-01-19 03:30:13 +01:00
2020-04-16 18:16:46 +02:00
2021-03-12 14:32:48 +01:00
2020-07-21 17:36:54 +02:00
2020-10-19 16:45:02 +02:00
2020-09-18 18:55:12 +02:00
2020-04-16 18:16:46 +02:00
2020-04-16 18:16:46 +02:00
2020-04-16 18:16:46 +02:00