linux_defines.h 992 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * Linux defines for values that are not yet included in common C libraries
  3. * Copyright (c) 2014, Jouni Malinen <j@w1.fi>
  4. *
  5. * This software may be distributed under the terms of the BSD license.
  6. * See README for more details.
  7. */
  8. #ifndef LINUX_DEFINES_H
  9. #define LINUX_DEFINES_H
  10. #ifndef SO_WIFI_STATUS
  11. # if defined(__sparc__)
  12. # define SO_WIFI_STATUS 0x0025
  13. # elif defined(__parisc__)
  14. # define SO_WIFI_STATUS 0x4022
  15. # else
  16. # define SO_WIFI_STATUS 41
  17. # endif
  18. # define SCM_WIFI_STATUS SO_WIFI_STATUS
  19. #endif
  20. #ifndef SO_EE_ORIGIN_TXSTATUS
  21. #define SO_EE_ORIGIN_TXSTATUS 4
  22. #endif
  23. #ifndef PACKET_TX_TIMESTAMP
  24. #define PACKET_TX_TIMESTAMP 16
  25. #endif
  26. #ifndef IFF_LOWER_UP
  27. #define IFF_LOWER_UP 0x10000 /* driver signals L1 up */
  28. #endif
  29. #ifndef IFF_DORMANT
  30. #define IFF_DORMANT 0x20000 /* driver signals dormant */
  31. #endif
  32. #ifndef IF_OPER_DORMANT
  33. #define IF_OPER_DORMANT 5
  34. #endif
  35. #ifndef IF_OPER_UP
  36. #define IF_OPER_UP 6
  37. #endif
  38. #endif /* LINUX_DEFINES_H */