1 /*
2  * SPDX-FileCopyrightText: 2018-2022 Espressif Systems (Shanghai) CO LTD
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 #ifndef _ESP_PLATFORM_NET_IF_H_
7 #define _ESP_PLATFORM_NET_IF_H_
8 
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12 
13 #include "lwip/sockets.h"
14 #include "lwip/if_api.h"
15 
16 #define	MSG_DONTROUTE   0x4     /* send without using routing tables */
17 #define	SOCK_SEQPACKET  5       /* sequenced packet stream */
18 #define	MSG_EOR         0x8     /* data completes record */
19 #define	SOCK_SEQPACKET  5       /* sequenced packet stream */
20 #define	SOMAXCONN       128
21 
22 #define	IPV6_UNICAST_HOPS   4  /* int; IP6 hops */
23 
24 #define	NI_MAXHOST  1025
25 #define	NI_MAXSERV  32
26 #define	NI_NUMERICSERV  0x00000008
27 #define	NI_DGRAM        0x00000010
28 
29 typedef u32_t socklen_t;
30 
31 
32 unsigned int if_nametoindex(const char *ifname);
33 
34 char *if_indextoname(unsigned int ifindex, char *ifname);
35 
36 #ifdef __cplusplus
37 }
38 #endif
39 
40 #endif // _ESP_PLATFORM_NET_IF_H_
41