if.h 934 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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. #ifdef __cplusplus
  9. extern "C" {
  10. #endif
  11. #include "lwip/sockets.h"
  12. #include "lwip/if_api.h"
  13. #define MSG_DONTROUTE 0x4 /* send without using routing tables */
  14. #define SOCK_SEQPACKET 5 /* sequenced packet stream */
  15. #define MSG_EOR 0x8 /* data completes record */
  16. #define SOCK_SEQPACKET 5 /* sequenced packet stream */
  17. #define SOMAXCONN 128
  18. #define IPV6_UNICAST_HOPS 4 /* int; IP6 hops */
  19. #define NI_MAXHOST 1025
  20. #define NI_MAXSERV 32
  21. #define NI_NUMERICSERV 0x00000008
  22. #define NI_DGRAM 0x00000010
  23. typedef u32_t socklen_t;
  24. unsigned int if_nametoindex(const char *ifname);
  25. char *if_indextoname(unsigned int ifindex, char *ifname);
  26. #ifdef __cplusplus
  27. }
  28. #endif
  29. #endif // _ESP_PLATFORM_NET_IF_H_