2022-06-17 10:59:56 -04:00
|
|
|
/*
|
2024-02-26 21:00:06 -05:00
|
|
|
* SPDX-FileCopyrightText: 2018-2024 Espressif Systems (Shanghai) CO LTD
|
2022-06-17 10:59:56 -04:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
2018-05-29 05:25:24 -04:00
|
|
|
#ifndef _ESP_PLATFORM_NET_IF_H_
|
|
|
|
#define _ESP_PLATFORM_NET_IF_H_
|
|
|
|
|
2022-06-29 18:08:30 -04:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2019-06-27 05:13:44 -04:00
|
|
|
#include "lwip/sockets.h"
|
2019-12-09 10:09:26 -05:00
|
|
|
#include "lwip/if_api.h"
|
2019-06-27 05:13:44 -04:00
|
|
|
|
2024-02-26 21:00:06 -05:00
|
|
|
#define MSG_DONTROUTE 0x4 /* send without using routing tables */
|
|
|
|
#define SOCK_SEQPACKET 5 /* sequenced packet stream */
|
|
|
|
#define MSG_EOR 0x8 /* data completes record */
|
|
|
|
#define SOCK_SEQPACKET 5 /* sequenced packet stream */
|
|
|
|
#define SOMAXCONN 128
|
2018-05-29 05:25:24 -04:00
|
|
|
|
2024-02-26 21:00:06 -05:00
|
|
|
#define IPV6_UNICAST_HOPS 4 /* int; IP6 hops */
|
2018-05-29 05:25:24 -04:00
|
|
|
|
2024-02-26 21:00:06 -05:00
|
|
|
#define NI_MAXHOST 1025
|
|
|
|
#define NI_MAXSERV 32
|
|
|
|
#define NI_NUMERICSERV 0x00000008
|
|
|
|
#define NI_DGRAM 0x00000010
|
2018-05-29 05:25:24 -04:00
|
|
|
|
|
|
|
typedef u32_t socklen_t;
|
|
|
|
|
|
|
|
unsigned int if_nametoindex(const char *ifname);
|
|
|
|
|
|
|
|
char *if_indextoname(unsigned int ifindex, char *ifname);
|
|
|
|
|
2022-06-29 18:08:30 -04:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2018-05-29 05:25:24 -04:00
|
|
|
#endif // _ESP_PLATFORM_NET_IF_H_
|