sockets_ext.h 617 B

123456789101112131415161718192021222324
  1. /*
  2. * SPDX-FileCopyrightText: 2022-2023 Espressif Systems (Shanghai) CO LTD
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. #pragma once
  7. #include <stdbool.h>
  8. #include <stdint.h>
  9. #ifdef __cplusplus
  10. extern "C" {
  11. #endif
  12. #define IPV6_MULTICAST_IF 0x300
  13. #define IPV6_MULTICAST_HOPS 0x301
  14. #define IPV6_MULTICAST_LOOP 0x302
  15. struct lwip_sock;
  16. bool lwip_setsockopt_impl_ext(struct lwip_sock* sock, int level, int optname, const void *optval, uint32_t optlen, int *err);
  17. bool lwip_getsockopt_impl_ext(struct lwip_sock* sock, int level, int optname, void *optval, uint32_t *optlen, int *err);
  18. #ifdef __cplusplus
  19. }
  20. #endif