15
15
#define BR2684_MEDIA_802_6 (4) /* 802.6 */
16
16
17
17
/* used only at device creation: */
18
- #define BR2684_FLAG_ROUTED (1<<16) /* payload is routed, not bridged */
18
+ #define BR2684_FLAG_ROUTED (1<<16) /* payload is routed, not bridged */
19
19
20
20
/*
21
21
* Is there FCS inbound on this VC? This currently isn't supported.
45
45
#define BR2684_PAYLOAD_ROUTED (0)
46
46
#define BR2684_PAYLOAD_BRIDGED (1)
47
47
48
-
49
48
/*
50
49
* This is for the ATM_NEWBACKENDIF call - these are like socket families:
51
50
* the first element of the structure is the backend number and the rest
52
51
* is per-backend specific
53
52
*/
54
53
struct atm_newif_br2684 {
55
- atm_backend_t backend_num ; /* ATM_BACKEND_BR2684 */
56
- int media ; /* BR2684_MEDIA_*, flags in upper bits */
57
- char ifname [IFNAMSIZ ];
58
- int mtu ;
54
+ atm_backend_t backend_num ; /* ATM_BACKEND_BR2684 */
55
+ int media ; /* BR2684_MEDIA_*, flags in upper bits */
56
+ char ifname [IFNAMSIZ ];
57
+ int mtu ;
59
58
};
60
59
61
60
/*
@@ -66,10 +65,10 @@ struct atm_newif_br2684 {
66
65
#define BR2684_FIND_BYNUM (1)
67
66
#define BR2684_FIND_BYIFNAME (2)
68
67
struct br2684_if_spec {
69
- int method ; /* BR2684_FIND_* */
68
+ int method ; /* BR2684_FIND_* */
70
69
union {
71
- char ifname [IFNAMSIZ ];
72
- int devnum ;
70
+ char ifname [IFNAMSIZ ];
71
+ int devnum ;
73
72
} spec ;
74
73
};
75
74
@@ -79,16 +78,16 @@ struct br2684_if_spec {
79
78
* is per-backend specific
80
79
*/
81
80
struct atm_backend_br2684 {
82
- atm_backend_t backend_num ; /* ATM_BACKEND_BR2684 */
81
+ atm_backend_t backend_num ; /* ATM_BACKEND_BR2684 */
83
82
struct br2684_if_spec ifspec ;
84
- int fcs_in ; /* BR2684_FCSIN_* */
85
- int fcs_out ; /* BR2684_FCSOUT_* */
86
- int fcs_auto ; /* 1: fcs_{in,out} disabled if no FCS rx'ed */
87
- int encaps ; /* BR2684_ENCAPS_* */
88
- int has_vpiid ; /* 1: use vpn_id - Unsupported */
89
- __u8 vpn_id [7 ];
90
- int send_padding ; /* unsupported */
91
- int min_size ; /* we will pad smaller packets than this */
83
+ int fcs_in ; /* BR2684_FCSIN_* */
84
+ int fcs_out ; /* BR2684_FCSOUT_* */
85
+ int fcs_auto ; /* 1: fcs_{in,out} disabled if no FCS rx'ed */
86
+ int encaps ; /* BR2684_ENCAPS_* */
87
+ int has_vpiid ; /* 1: use vpn_id - Unsupported */
88
+ __u8 vpn_id [7 ];
89
+ int send_padding ; /* unsupported */
90
+ int min_size ; /* we will pad smaller packets than this */
92
91
};
93
92
94
93
/*
@@ -97,8 +96,8 @@ struct atm_backend_br2684 {
97
96
* efficient per-if in/out filters, this support will be removed
98
97
*/
99
98
struct br2684_filter {
100
- __be32 prefix ; /* network byte order */
101
- __be32 netmask ; /* 0 = disable filter */
99
+ __be32 prefix ; /* network byte order */
100
+ __be32 netmask ; /* 0 = disable filter */
102
101
};
103
102
104
103
struct br2684_filter_set {
@@ -107,8 +106,8 @@ struct br2684_filter_set {
107
106
};
108
107
109
108
enum br2684_payload {
110
- p_routed = BR2684_PAYLOAD_ROUTED ,
111
- p_bridged = BR2684_PAYLOAD_BRIDGED ,
109
+ p_routed = BR2684_PAYLOAD_ROUTED ,
110
+ p_bridged = BR2684_PAYLOAD_BRIDGED ,
112
111
};
113
112
114
113
#define BR2684_SETFILT _IOW( 'a', ATMIOC_BACKEND + 0, \
0 commit comments