2 * ATM Lan Emulation Daemon driver interface
4 * Marko Kiiskila <mkiiskila@yahoo.com>
10 #include <linux/atmapi.h>
11 #include <linux/atmioc.h>
12 #include <linux/atm.h>
13 #include <linux/if_ether.h>
14 #include <linux/types.h>
16 /* ATM lec daemon control socket */
17 #define ATMLEC_CTRL _IO('a', ATMIOC_LANE)
18 #define ATMLEC_DATA _IO('a', ATMIOC_LANE+1)
19 #define ATMLEC_MCAST _IO('a', ATMIOC_LANE+2)
21 /* Maximum number of LEC interfaces (tweakable) */
22 #define MAX_LEC_ITF 48
25 * From the total of MAX_LEC_ITF, last NUM_TR_DEVS are reserved for Token Ring.
26 * E.g. if MAX_LEC_ITF = 48 and NUM_TR_DEVS = 8, then lec0-lec39 are for
27 * Ethernet ELANs and lec40-lec47 are for Token Ring ELANS.
39 l_narp_req
, /* LANE2 mandates the use of this */
46 l_should_bridge
/* should we bridge this MAC? */
49 #define ATMLEC_MSG_TYPE_MAX l_should_bridge
51 struct atmlec_config_msg
{
52 unsigned int maximum_unknown_frame_count
;
53 unsigned int max_unknown_frame_time
;
54 unsigned short max_retry_count
;
55 unsigned int aging_time
;
56 unsigned int forward_delay_time
;
57 unsigned int arp_response_time
;
58 unsigned int flush_timeout
;
59 unsigned int path_switching_delay
;
60 unsigned int lane_version
; /* LANE2: 1 for LANEv1, 2 for LANEv2 */
67 int sizeoftlvs
; /* LANE2: if != 0, tlvs follow */
70 unsigned char mac_addr
[ETH_ALEN
];
71 unsigned char atm_addr
[ATM_ESA_LEN
];
73 * Topology_change flag,
74 * remoteflag, permanent flag,
75 * lecid, transaction id
77 unsigned int targetless_le_arp
; /* LANE2 */
78 unsigned int no_source_le_narp
; /* LANE2 */
80 struct atmlec_config_msg config
;
82 __u16 lec_id
; /* requestor lec_id */
83 __u32 tran_id
; /* transaction id */
84 unsigned char mac_addr
[ETH_ALEN
]; /* dst mac addr */
85 unsigned char atm_addr
[ATM_ESA_LEN
]; /* reqestor ATM addr */
87 * For mapping LE_ARP requests to responses. Filled by
88 * zeppelin, returned by kernel. Used only when proxying
95 unsigned char atm_addr
[ATM_ESA_LEN
];
96 unsigned char receive
; /* 1= receive vcc, 0 = send vcc */
98 #endif /* _ATMLEC_H_ */