refresh linux-atm patches
[openwrt/svn-archive/archive.git] / package / linux-atm / patches / 100-subdirs.patch
1 Index: linux-atm-2.4.1/configure.in
2 ===================================================================
3 --- linux-atm-2.4.1.orig/configure.in 2007-10-20 19:19:10.594232210 +0200
4 +++ linux-atm-2.4.1/configure.in 2007-10-20 19:19:16.214552491 +0200
5 @@ -153,26 +153,5 @@
6 src/Makefile \
7 src/include/Makefile \
8 src/lib/Makefile \
9 - src/test/Makefile \
10 - src/debug/Makefile \
11 - src/qgen/Makefile \
12 - src/saal/Makefile \
13 - src/sigd/Makefile \
14 - src/maint/Makefile \
15 - src/arpd/Makefile \
16 - src/ilmid/Makefile \
17 - src/ilmid/asn1/Makefile \
18 - src/man/Makefile \
19 - src/led/Makefile \
20 - src/lane/Makefile \
21 - src/mpoad/Makefile \
22 - src/switch/Makefile \
23 - src/switch/debug/Makefile \
24 - src/switch/tcp/Makefile \
25 - src/config/Makefile \
26 - src/config/init-redhat/Makefile \
27 - src/extra/Makefile \
28 - src/extra/linux-atm.spec \
29 - src/extra/ANS/Makefile
30 )
31
32 Index: linux-atm-2.4.1/src/Makefile.am
33 ===================================================================
34 --- linux-atm-2.4.1.orig/src/Makefile.am 2007-10-20 19:19:10.602232664 +0200
35 +++ linux-atm-2.4.1/src/Makefile.am 2007-10-20 19:19:16.218552720 +0200
36 @@ -1,3 +1,2 @@
37 -SUBDIRS = include lib test debug qgen saal sigd maint arpd ilmid man led lane \
38 - mpoad switch config extra
39 +SUBDIRS = include lib
40
41 Index: linux-atm-2.4.1/src/include/linux/atmbr2684.h
42 ===================================================================
43 --- /dev/null 1970-01-01 00:00:00.000000000 +0000
44 +++ linux-atm-2.4.1/src/include/linux/atmbr2684.h 2007-10-20 19:19:16.230553402 +0200
45 @@ -0,0 +1,117 @@
46 +#ifndef _LINUX_ATMBR2684_H
47 +#define _LINUX_ATMBR2684_H
48 +
49 +#include <linux/atm.h>
50 +#include <linux/if.h> /* For IFNAMSIZ */
51 +#include <linux/if_ether.h> /* ETH_P_* */
52 +
53 +/*
54 + * Type of media we're bridging (ethernet, token ring, etc) Currently only
55 + * ethernet is supported
56 + */
57 +#define BR2684_MEDIA_ETHERNET (0) /* 802.3 */
58 +#define BR2684_MEDIA_802_4 (1) /* 802.4 */
59 +#define BR2684_MEDIA_TR (2) /* 802.5 - token ring */
60 +#define BR2684_MEDIA_FDDI (3)
61 +#define BR2684_MEDIA_802_6 (4) /* 802.6 */
62 +
63 +/*
64 + * Is there FCS inbound on this VC? This currently isn't supported.
65 + */
66 +#define BR2684_FCSIN_NO (0)
67 +#define BR2684_FCSIN_IGNORE (1)
68 +#define BR2684_FCSIN_VERIFY (2)
69 +
70 +/*
71 + * Is there FCS outbound on this VC? This currently isn't supported.
72 + */
73 +#define BR2684_FCSOUT_NO (0)
74 +#define BR2684_FCSOUT_SENDZERO (1)
75 +#define BR2684_FCSOUT_GENERATE (2)
76 +
77 +/*
78 + * Does this VC include LLC encapsulation?
79 + */
80 +#define BR2684_ENCAPS_VC (0) /* VC-mux */
81 +#define BR2684_ENCAPS_LLC (1)
82 +#define BR2684_ENCAPS_AUTODETECT (2) /* Unsuported */
83 +
84 +/*
85 + * Is this VC bridged or routed?
86 + */
87 +
88 +#define BR2684_PAYLOAD_ROUTED (0)
89 +#define BR2684_PAYLOAD_BRIDGED (1)
90 +
91 +
92 +/*
93 + * This is for the ATM_NEWBACKENDIF call - these are like socket families:
94 + * the first element of the structure is the backend number and the rest
95 + * is per-backend specific
96 + */
97 +struct atm_newif_br2684 {
98 + atm_backend_t backend_num; /* ATM_BACKEND_BR2684 */
99 + int media; /* BR2684_MEDIA_* */
100 + char ifname[IFNAMSIZ];
101 + int mtu;
102 + int payload; /* bridged or routed */
103 +};
104 +
105 +/*
106 + * This structure is used to specify a br2684 interface - either by a
107 + * positive integer (returned by ATM_NEWBACKENDIF) or the interfaces name
108 + */
109 +#define BR2684_FIND_BYNOTHING (0)
110 +#define BR2684_FIND_BYNUM (1)
111 +#define BR2684_FIND_BYIFNAME (2)
112 +struct br2684_if_spec {
113 + int method; /* BR2684_FIND_* */
114 + union {
115 + char ifname[IFNAMSIZ];
116 + int devnum;
117 + } spec;
118 +};
119 +
120 +/*
121 + * This is for the ATM_SETBACKEND call - these are like socket families:
122 + * the first element of the structure is the backend number and the rest
123 + * is per-backend specific
124 + */
125 +struct atm_backend_br2684 {
126 + atm_backend_t backend_num; /* ATM_BACKEND_BR2684 */
127 + struct br2684_if_spec ifspec;
128 + int fcs_in; /* BR2684_FCSIN_* */
129 + int fcs_out; /* BR2684_FCSOUT_* */
130 + int fcs_auto; /* 1: fcs_{in,out} disabled if no FCS rx'ed */
131 + int encaps; /* BR2684_ENCAPS_* */
132 + int payload; /* BR2684_PAYLOAD_* */
133 + int has_vpiid; /* 1: use vpn_id - Unsupported */
134 + __u8 vpn_id[7];
135 + int send_padding; /* unsupported */
136 + int min_size; /* we will pad smaller packets than this */
137 +};
138 +
139 +/*
140 + * The BR2684_SETFILT ioctl is an experimental mechanism for folks
141 + * terminating a large number of IP-only vcc's. When netfilter allows
142 + * efficient per-if in/out filters, this support will be removed
143 + */
144 +struct br2684_filter {
145 + __u32 prefix; /* network byte order */
146 + __u32 netmask; /* 0 = disable filter */
147 +};
148 +
149 +struct br2684_filter_set {
150 + struct br2684_if_spec ifspec;
151 + struct br2684_filter filter;
152 +};
153 +
154 +enum br2684_payload {
155 + p_routed = BR2684_PAYLOAD_ROUTED,
156 + p_bridged = BR2684_PAYLOAD_BRIDGED,
157 +};
158 +
159 +#define BR2684_SETFILT _IOW( 'a', ATMIOC_BACKEND + 0, \
160 + struct br2684_filter_set)
161 +
162 +#endif /* _LINUX_ATMBR2684_H */