aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/atmbr2684.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/atmbr2684.h')
-rw-r--r--include/linux/atmbr2684.h51
1 files changed, 33 insertions, 18 deletions
diff --git a/include/linux/atmbr2684.h b/include/linux/atmbr2684.h
index 969fb6c9e1cc..52bf72affbba 100644
--- a/include/linux/atmbr2684.h
+++ b/include/linux/atmbr2684.h
@@ -14,6 +14,9 @@
14#define BR2684_MEDIA_FDDI (3) 14#define BR2684_MEDIA_FDDI (3)
15#define BR2684_MEDIA_802_6 (4) /* 802.6 */ 15#define BR2684_MEDIA_802_6 (4) /* 802.6 */
16 16
17 /* used only at device creation: */
18#define BR2684_FLAG_ROUTED (1<<16) /* payload is routed, not bridged */
19
17/* 20/*
18 * Is there FCS inbound on this VC? This currently isn't supported. 21 * Is there FCS inbound on this VC? This currently isn't supported.
19 */ 22 */
@@ -36,15 +39,22 @@
36#define BR2684_ENCAPS_AUTODETECT (2) /* Unsuported */ 39#define BR2684_ENCAPS_AUTODETECT (2) /* Unsuported */
37 40
38/* 41/*
42 * Is this VC bridged or routed?
43 */
44
45#define BR2684_PAYLOAD_ROUTED (0)
46#define BR2684_PAYLOAD_BRIDGED (1)
47
48/*
39 * This is for the ATM_NEWBACKENDIF call - these are like socket families: 49 * This is for the ATM_NEWBACKENDIF call - these are like socket families:
40 * the first element of the structure is the backend number and the rest 50 * the first element of the structure is the backend number and the rest
41 * is per-backend specific 51 * is per-backend specific
42 */ 52 */
43struct atm_newif_br2684 { 53struct atm_newif_br2684 {
44 atm_backend_t backend_num; /* ATM_BACKEND_BR2684 */ 54 atm_backend_t backend_num; /* ATM_BACKEND_BR2684 */
45 int media; /* BR2684_MEDIA_* */ 55 int media; /* BR2684_MEDIA_*, flags in upper bits */
46 char ifname[IFNAMSIZ]; 56 char ifname[IFNAMSIZ];
47 int mtu; 57 int mtu;
48}; 58};
49 59
50/* 60/*
@@ -55,10 +65,10 @@ struct atm_newif_br2684 {
55#define BR2684_FIND_BYNUM (1) 65#define BR2684_FIND_BYNUM (1)
56#define BR2684_FIND_BYIFNAME (2) 66#define BR2684_FIND_BYIFNAME (2)
57struct br2684_if_spec { 67struct br2684_if_spec {
58 int method; /* BR2684_FIND_* */ 68 int method; /* BR2684_FIND_* */
59 union { 69 union {
60 char ifname[IFNAMSIZ]; 70 char ifname[IFNAMSIZ];
61 int devnum; 71 int devnum;
62 } spec; 72 } spec;
63}; 73};
64 74
@@ -68,16 +78,16 @@ struct br2684_if_spec {
68 * is per-backend specific 78 * is per-backend specific
69 */ 79 */
70struct atm_backend_br2684 { 80struct atm_backend_br2684 {
71 atm_backend_t backend_num; /* ATM_BACKEND_BR2684 */ 81 atm_backend_t backend_num; /* ATM_BACKEND_BR2684 */
72 struct br2684_if_spec ifspec; 82 struct br2684_if_spec ifspec;
73 int fcs_in; /* BR2684_FCSIN_* */ 83 int fcs_in; /* BR2684_FCSIN_* */
74 int fcs_out; /* BR2684_FCSOUT_* */ 84 int fcs_out; /* BR2684_FCSOUT_* */
75 int fcs_auto; /* 1: fcs_{in,out} disabled if no FCS rx'ed */ 85 int fcs_auto; /* 1: fcs_{in,out} disabled if no FCS rx'ed */
76 int encaps; /* BR2684_ENCAPS_* */ 86 int encaps; /* BR2684_ENCAPS_* */
77 int has_vpiid; /* 1: use vpn_id - Unsupported */ 87 int has_vpiid; /* 1: use vpn_id - Unsupported */
78 __u8 vpn_id[7]; 88 __u8 vpn_id[7];
79 int send_padding; /* unsupported */ 89 int send_padding; /* unsupported */
80 int min_size; /* we will pad smaller packets than this */ 90 int min_size; /* we will pad smaller packets than this */
81}; 91};
82 92
83/* 93/*
@@ -86,8 +96,8 @@ struct atm_backend_br2684 {
86 * efficient per-if in/out filters, this support will be removed 96 * efficient per-if in/out filters, this support will be removed
87 */ 97 */
88struct br2684_filter { 98struct br2684_filter {
89 __be32 prefix; /* network byte order */ 99 __be32 prefix; /* network byte order */
90 __be32 netmask; /* 0 = disable filter */ 100 __be32 netmask; /* 0 = disable filter */
91}; 101};
92 102
93struct br2684_filter_set { 103struct br2684_filter_set {
@@ -95,6 +105,11 @@ struct br2684_filter_set {
95 struct br2684_filter filter; 105 struct br2684_filter filter;
96}; 106};
97 107
108enum br2684_payload {
109 p_routed = BR2684_PAYLOAD_ROUTED,
110 p_bridged = BR2684_PAYLOAD_BRIDGED,
111};
112
98#define BR2684_SETFILT _IOW( 'a', ATMIOC_BACKEND + 0, \ 113#define BR2684_SETFILT _IOW( 'a', ATMIOC_BACKEND + 0, \
99 struct br2684_filter_set) 114 struct br2684_filter_set)
100 115