• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
9 #ifndef LINUX_DEFINES_H
10 #define LINUX_DEFINES_H
11 
12 #ifndef SO_WIFI_STATUS
13 # if defined(__sparc__)
14 #  define SO_WIFI_STATUS	0x0025
15 # elif defined(__parisc__)
16 #  define SO_WIFI_STATUS	0x4022
17 # else
18 #  define SO_WIFI_STATUS	41
19 # endif
20 
21 # define SCM_WIFI_STATUS	SO_WIFI_STATUS
22 #endif
23 
24 #ifndef SO_EE_ORIGIN_TXSTATUS
25 #define SO_EE_ORIGIN_TXSTATUS	4
26 #endif
27 
28 #ifndef PACKET_TX_TIMESTAMP
29 #define PACKET_TX_TIMESTAMP	16
30 #endif
31 
32 #ifndef IFF_LOWER_UP
33 #define IFF_LOWER_UP   0x10000         /* driver signals L1 up         */
34 #endif
35 #ifndef IFF_DORMANT
36 #define IFF_DORMANT    0x20000         /* driver signals dormant       */
37 #endif
38 
39 #ifndef IF_OPER_DORMANT
40 #define IF_OPER_DORMANT 5
41 #endif
42 #ifndef IF_OPER_UP
43 #define IF_OPER_UP 6
44 #endif
45 
46 #endif /* LINUX_DEFINES_H */
47