net: work around s_addr macro on Windows
[dpdk.git] / lib / librte_eal / windows / include / netinet / in.h
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright 2020 Mellanox Technologies, Ltd
3  */
4
5 #ifndef _IN_H_
6 #define _IN_H_
7
8 #include <stdint.h>
9 #include <sys/socket.h>
10
11 #define IPPROTO_IP         0
12 #define IPPROTO_HOPOPTS    0
13 #define IPPROTO_ICMP       1
14 #define IPPROTO_IPIP       4
15 #define IPPROTO_TCP        6
16 #define IPPROTO_UDP       17
17 #define IPPROTO_IPV6      41
18 #define IPPROTO_ROUTING   43
19 #define IPPROTO_FRAGMENT  44
20 #define IPPROTO_GRE       47
21 #define IPPROTO_ESP       50
22 #define IPPROTO_AH        51
23 #define IPPROTO_ICMPV6    58
24 #define IPPROTO_NONE      59
25 #define IPPROTO_DSTOPTS   60
26 #define IPPROTO_SCTP     132
27
28 #define INET6_ADDRSTRLEN 46
29
30 struct in_addr {
31         uint32_t s_addr;
32 };
33
34 struct in6_addr {
35         uint8_t s6_addr[16];
36 };
37
38 #endif