aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorEric Kinzie <ekinzie@cmf.nrl.navy.mil>2007-12-31 02:17:53 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:00:13 -0500
commit097b19a9987204b898299260ee3ebff4cf716800 (patch)
tree03e8d7e60e7b5d2bc2987ebbce7a7a132519311b /include
parent900092a45e73fc192c223761b85005503a813975 (diff)
[ATM]: [br2864] routed support
Signed-off-by: Chas Williams <chas@cmf.nrl.navy.mil> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/linux/atmbr2684.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/include/linux/atmbr2684.h b/include/linux/atmbr2684.h
index 969fb6c9e1cc..ccdab6c216cd 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,13 +39,21 @@
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
49/*
39 * This is for the ATM_NEWBACKENDIF call - these are like socket families: 50 * 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 51 * the first element of the structure is the backend number and the rest
41 * is per-backend specific 52 * is per-backend specific
42 */ 53 */
43struct atm_newif_br2684 { 54struct atm_newif_br2684 {
44 atm_backend_t backend_num; /* ATM_BACKEND_BR2684 */ 55 atm_backend_t backend_num; /* ATM_BACKEND_BR2684 */
45 int media; /* BR2684_MEDIA_* */ 56 int media; /* BR2684_MEDIA_*, flags in upper bits */
46 char ifname[IFNAMSIZ]; 57 char ifname[IFNAMSIZ];
47 int mtu; 58 int mtu;
48}; 59};
@@ -95,6 +106,11 @@ struct br2684_filter_set {
95 struct br2684_filter filter; 106 struct br2684_filter filter;
96}; 107};
97 108
109enum br2684_payload {
110 p_routed = BR2684_PAYLOAD_ROUTED,
111 p_bridged = BR2684_PAYLOAD_BRIDGED,
112};
113
98#define BR2684_SETFILT _IOW( 'a', ATMIOC_BACKEND + 0, \ 114#define BR2684_SETFILT _IOW( 'a', ATMIOC_BACKEND + 0, \
99 struct br2684_filter_set) 115 struct br2684_filter_set)
100 116