Go to the documentation of this file.
47 #ifndef _UAPI_ROUTER_H
48 #define _UAPI_ROUTER_H
50 #define ROUTER_NAME "wanrouter"
51 #define ROUTER_VERSION 1
52 #define ROUTER_RELEASE 1
53 #define ROUTER_IOCTL 'W'
54 #define ROUTER_MAGIC 0x524D4157L
70 #define PROC_DATA_PORT_0 0x8000
71 #define PROC_DATA_PORT_1 0x8001
75 #define NLPID_SNAP 0x80
76 #define NLPID_CLNP 0x81
77 #define NLPID_ESIS 0x82
78 #define NLPID_ISIS 0x83
79 #define NLPID_Q933 0x08
82 #define WAN_IFNAME_SZ 15
83 #define WAN_DRVNAME_SZ 15
84 #define WAN_ADDRESS_SZ 31
85 #define USED_BY_FIELD 8
88 #define UDP_PTPIPE_TYPE 0x01
89 #define UDP_FPIPE_TYPE 0x02
90 #define UDP_CPIPE_TYPE 0x03
91 #define UDP_DRVSTATS_TYPE 0x04
92 #define UDP_INVALID_TYPE 0x05
96 #define CMD_TIMEOUT 0xFF
99 #define UDP_PKT_FRM_STACK 0x00
100 #define UDP_PKT_FRM_NETWORK 0x01
103 #define MAX_INTR_TEST_COUNTER 100
106 #define CRITICAL_IN_ISR 0xA1
107 #define CRITICAL_INTR_HANDLED 0xB1
244 #define WANCONFIG_X25 101
245 #define WANCONFIG_FR 102
246 #define WANCONFIG_PPP 103
247 #define WANCONFIG_CHDLC 104
248 #define WANCONFIG_BSC 105
249 #define WANCONFIG_HDLC 106
250 #define WANCONFIG_MPPP 107
262 #define WANOPT_RS232 0
267 #define WANOPT_NRZI 1
272 #define WANOPT_POINTTOPOINT 0
273 #define WANOPT_MULTIDROP 1
276 #define WANOPT_EXTERNAL 0
277 #define WANOPT_INTERNAL 1
283 #define WANOPT_NODE 1
284 #define WANOPT_SECONDARY 0
285 #define WANOPT_PRIMARY 1
288 #define WANOPT_PERMANENT 0
289 #define WANOPT_SWITCHED 1
290 #define WANOPT_ONDEMAND 2
293 #define WANOPT_FR_ANSI 1
294 #define WANOPT_FR_Q933 2
295 #define WANOPT_FR_LMI 3
298 #define WANOPT_PPP_STATIC 0
299 #define WANOPT_PPP_HOST 1
300 #define WANOPT_PPP_PEER 2
305 #define WANOPT_ONE_AND_HALF 3
307 #define WANOPT_NONE 0
309 #define WANOPT_EVEN 2
323 #define WANOPT_INTR 0
324 #define WANOPT_POLL 1
327 #define WANOPT_TTY_SYNC 0
328 #define WANOPT_TTY_ASYNC 1
383 #define WAN_MODEM_CTS 0x0001
384 #define WAN_MODEM_DCD 0x0002
385 #define WAN_MODEM_DTR 0x0010
386 #define WAN_MODEM_RTS 0x0020