1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
3 * ATM Lan Emulation Daemon driver interface
5 * Marko Kiiskila <mkiiskila@yahoo.com>
11 #include <linux/atmapi.h>
12 #include <linux/atmioc.h>
13 #include <linux/atm.h>
14 #include <linux/if_ether.h>
15 #include <linux/types.h>
17 /* ATM lec daemon control socket */
18 #define ATMLEC_CTRL _IO('a', ATMIOC_LANE)
19 #define ATMLEC_DATA _IO('a', ATMIOC_LANE+1)
20 #define ATMLEC_MCAST _IO('a', ATMIOC_LANE+2)
22 /* Maximum number of LEC interfaces (tweakable) */
23 #define MAX_LEC_ITF 48
33 l_narp_req
, /* LANE2 mandates the use of this */
40 l_should_bridge
/* should we bridge this MAC? */
43 #define ATMLEC_MSG_TYPE_MAX l_should_bridge
45 struct atmlec_config_msg
{
46 unsigned int maximum_unknown_frame_count
;
47 unsigned int max_unknown_frame_time
;
48 unsigned short max_retry_count
;
49 unsigned int aging_time
;
50 unsigned int forward_delay_time
;
51 unsigned int arp_response_time
;
52 unsigned int flush_timeout
;
53 unsigned int path_switching_delay
;
54 unsigned int lane_version
; /* LANE2: 1 for LANEv1, 2 for LANEv2 */
61 int sizeoftlvs
; /* LANE2: if != 0, tlvs follow */
64 unsigned char mac_addr
[ETH_ALEN
];
65 unsigned char atm_addr
[ATM_ESA_LEN
];
67 * Topology_change flag,
68 * remoteflag, permanent flag,
69 * lecid, transaction id
71 unsigned int targetless_le_arp
; /* LANE2 */
72 unsigned int no_source_le_narp
; /* LANE2 */
74 struct atmlec_config_msg config
;
76 __u16 lec_id
; /* requestor lec_id */
77 __u32 tran_id
; /* transaction id */
78 unsigned char mac_addr
[ETH_ALEN
]; /* dst mac addr */
79 unsigned char atm_addr
[ATM_ESA_LEN
]; /* reqestor ATM addr */
81 * For mapping LE_ARP requests to responses. Filled by
82 * zeppelin, returned by kernel. Used only when proxying
89 unsigned char atm_addr
[ATM_ESA_LEN
];
90 unsigned char receive
; /* 1= receive vcc, 0 = send vcc */
92 #endif /* _ATMLEC_H_ */