in.h 371 B

1234567891011121314151617181920
  1. /*
  2. * Copyright (c) 2006-2021, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2015-02-17 Bernard First version
  9. */
  10. #ifndef IN_H__
  11. #define IN_H__
  12. #include <sys/socket.h>
  13. #ifndef IN6_IS_ADDR_MULTICAST
  14. #define IN6_IS_ADDR_MULTICAST(a) (((uint8_t *) (a))[0] == 0xff)
  15. #endif
  16. #endif