]> git.pld-linux.org Git - packages/linux-libc-headers.git/blame - linux-libc-headers-atm-vbr.patch
- no if_addrlabel.h
[packages/linux-libc-headers.git] / linux-libc-headers-atm-vbr.patch
CommitLineData
dd8d16df
JR
1Index: linux/include/linux/atm.h
2===================================================================
3RCS file: /afs/cmf/project/cvsroot/linux/include/linux/atm.h,v
4retrieving revision 1.2
5diff -u -r1.2 atm.h
6--- linux/include/linux/atm.h 12 Feb 2003 20:56:33 -0000 1.2
7+++ linux/include/linux/atm.h 9 Apr 2003 12:08:38 -0000
8@@ -72,7 +72,7 @@
9 /* connection identifier range; socket must be
10 bound or connected */
11 #define SO_ATMQOS __SO_ENCODE(SOL_ATM,2,struct atm_qos)
12- /* Quality of Service setting */
13+ /* Quality of Service setting (with vbr support) */
14 #define SO_ATMSAP __SO_ENCODE(SOL_ATM,3,struct atm_sap)
15 /* Service Access Point */
16 #define SO_ATMPVC __SO_ENCODE(SOL_ATM,4,struct sockaddr_atmpvc)
17@@ -127,9 +127,11 @@
18 #define ATM_NONE 0 /* no traffic */
19 #define ATM_UBR 1
20 #define ATM_CBR 2
21-#define ATM_VBR 3
22+#define ATM_VBR_NRT 3
23+#define ATM_VBR ATM_VBR_NRT /* for backward compatibility */
24 #define ATM_ABR 4
25 #define ATM_ANYCLASS 5 /* compatible with everything */
26+#define ATM_VBR_RT 6
27
28 #define ATM_MAX_PCR -1 /* maximum available PCR */
29
30@@ -140,6 +142,11 @@
31 int min_pcr; /* minimum PCR in cells per second */
32 int max_cdv; /* maximum CDV in microseconds */
33 int max_sdu; /* maximum SDU in bytes */
34+
35+ /* extra params for VBR */
36+ int scr; /* sustained rate in cells per second */
37+ int mbs; /* maximum burst size (MBS) in cells */
38+
39 /* extra params for ABR */
40 unsigned int icr; /* Initial Cell Rate (24-bit) */
41 unsigned int tbe; /* Transient Buffer Exposure (24-bit) */
42@@ -243,4 +251,37 @@
43 };
44
45 typedef unsigned short atm_backend_t;
46+struct atm_trafprm_compat {
47+ unsigned char traffic_class; /* traffic class (ATM_UBR, ...) */
48+ int max_pcr; /* maximum PCR in cells per second */
49+ int pcr; /* desired PCR in cells per second */
50+ int min_pcr; /* minimum PCR in cells per second */
51+ int max_cdv; /* maximum CDV in microseconds */
52+ int max_sdu; /* maximum SDU in bytes */
53+ /* extra params for ABR */
54+ unsigned int icr; /* Initial Cell Rate (24-bit) */
55+ unsigned int tbe; /* Transient Buffer Exposure (24-bit) */
56+ unsigned int frtt : 24; /* Fixed Round Trip Time (24-bit) */
57+ unsigned int rif : 4; /* Rate Increment Factor (4-bit) */
58+ unsigned int rdf : 4; /* Rate Decrease Factor (4-bit) */
59+ unsigned int nrm_pres :1; /* nrm present bit */
60+ unsigned int trm_pres :1; /* rm present bit */
61+ unsigned int adtf_pres :1; /* adtf present bit */
62+ unsigned int cdf_pres :1; /* cdf present bit*/
63+ unsigned int nrm :3; /* Max # of Cells for each forward RM cell (3-bit) */
64+ unsigned int trm :3; /* Time between forward RM cells (3-bit) */
65+ unsigned int adtf :10; /* ACR Decrease Time Factor (10-bit) */
66+ unsigned int cdf :3; /* Cutoff Decrease Factor (3-bit) */
67+ unsigned int spare :9; /* spare bits */
68+};
69+
70+struct atm_qos_compat {
71+ struct atm_trafprm_compat txtp; /* parameters in TX direction */
72+ struct atm_trafprm_compat rxtp __ATM_API_ALIGN;
73+ /* parameters in RX direction */
74+ unsigned char aal __ATM_API_ALIGN;
75+};
76+
77+#define SO_ATMQOS_COMPAT __SO_ENCODE(SOL_ATM,2,struct atm_qos_compat)
78+ /* Quality of Service setting (no vbr support) */
79 #endif
This page took 0.044586 seconds and 4 git commands to generate.