Hi All,
In these days I adapted the last patch for br2684 kernel module.
For some ISP it is necesary this implementation.
This is my case in Spain with Telefonica ISP and static IP.
Adapted support for kernel 2.6.24
Implemented:
-
Kernel
- target/linux/generic-2.6/patches-2.6.24/601-br2684-routed-support.patch
- linux-2.6.24.2/include/linux/atmbr2684.h
- linux-2.6.24.2/net/atm/br2684.c
Package
- package/br2684ctl/patches/101-routed_support.patch
- br2684ctl-20040226.orig/br2684ctl.c
Scripts
- package/br2684ctl/files/br2684ctl
-
This changes the br2684 module of kernel 2.6.24, br2864ctl package and
br2684ctl script. With this changes it is posible
Tested for 7 days with Linksys AG241v2-EU.
Configuracion /etc/config/network
-
config atm-bridge
option 'unit''0'
option 'vpi' '8'
option 'vci' '32'
option 'encaps' 'llc'
option 'payload' 'routed'
config 'interface' 'wan'
option 'ifname' 'nas0'
option 'proto' 'static'
option 'ipaddr' 'your ipaddr'
option 'netmask' 'your netmask'
option 'dns' 'your dns'
option 'gateway' 'your gateway'
-
cat /proc/net/atm/br2684
-
[EMAIL PROTECTED]:/tmp# cat /proc/net/atm/br2684
dev nas0: num=1, mac=00:00:00:00:00:00 (auto)
vcc 0.8.32: encaps=LLC payload=routed, failed copies 0/0
-Signed-off-by:
Juan I. Gonzalez juan.i.gonzalez at subdown dot net
--
PRIVACIDAD:
Este mensaje se dirige exclusivamente a su destinatario y puede contener
información privilegiada o CONFIDENCIAL. Si no es vd. el destinatario
indicado, queda notificado de que la utilización, divulgación y/o copia sin
autorización está prohibida en virtud de la legislación vigente. Si ha
recibido este mensaje por error, le rogamos que nos lo comunique
inmediatamente por esta misma vía y proceda a su destrucción.
PRIVACITY:
This message is intended exclusively for its addressee and may contain
information that is CONFIDENTIAL and protected by professional privilege. If
you are not the intended recipient you are hereby notified that any
dissemination, copy or disclosure of this communication is strictly
prohibited by law. If this message has been received in error, please
immediately notify us via e-mail and delete it.
Powered by Subdown System Network
Index: target/linux/generic-2.6/patches-2.6.24/601-br2684-routed-support.patch
===
--- target/linux/generic-2.6/patches-2.6.24/601-br2684-routed-support.patch (revision 0)
+++ target/linux/generic-2.6/patches-2.6.24/601-br2684-routed-support.patch (revision 0)
@@ -0,0 +1,730 @@
+diff -Nur linux-2.6.24.2/include/linux/atmbr2684.h linux-2.6.24.2-copy/include/linux/atmbr2684.h
+--- linux-2.6.24.2/include/linux/atmbr2684.h 2008-02-11 05:51:11.0 +
linux-2.6.24.2-copy/include/linux/atmbr2684.h 2008-03-27 01:08:42.0 +
+@@ -14,6 +14,9 @@
+ #define BR2684_MEDIA_FDDI (3)
+ #define BR2684_MEDIA_802_6 (4) /* 802.6 */
+
++ /* used only at device creation: */
++#define BR2684_FLAG_ROUTED (116) /* payload is routed, not bridged */
++
+ /*
+ * Is there FCS inbound on this VC? This currently isn't supported.
+ */
+@@ -36,15 +39,22 @@
+ #define BR2684_ENCAPS_AUTODETECT (2) /* Unsuported */
+
+ /*
++ * Is this VC bridged or routed?
++ */
++
++#define BR2684_PAYLOAD_ROUTED (0)
++#define BR2684_PAYLOAD_BRIDGED (1)
++
++/*
+ * This is for the ATM_NEWBACKENDIF call - these are like socket families:
+ * the first element of the structure is the backend number and the rest
+ * is per-backend specific
+ */
+ struct atm_newif_br2684 {
+- atm_backend_t backend_num; /* ATM_BACKEND_BR2684 */
+- int media; /* BR2684_MEDIA_* */
+- char ifname[IFNAMSIZ];
+- int mtu;
++ atm_backend_t backend_num; /* ATM_BACKEND_BR2684 */
++ int media; /* BR2684_MEDIA_*, flags in upper bits */
++ char ifname[IFNAMSIZ];
++ int mtu;
+ };
+
+ /*
+@@ -55,10 +65,10 @@
+ #define BR2684_FIND_BYNUM (1)
+ #define BR2684_FIND_BYIFNAME (2)
+ struct br2684_if_spec {
+- int method; /* BR2684_FIND_* */
++ int method; /* BR2684_FIND_* */
+ union {
+- char ifname[IFNAMSIZ];
+- int devnum;
++ char ifname[IFNAMSIZ];
++ int devnum;
+ } spec;
+ };
+
+@@ -68,16 +78,16 @@
+ * is per-backend specific
+ */
+ struct atm_backend_br2684 {
+- atm_backend_t backend_num; /* ATM_BACKEND_BR2684 */
++ atm_backend_t backend_num; /* ATM_BACKEND_BR2684 */
+ struct br2684_if_spec ifspec;
+- int fcs_in; /* BR2684_FCSIN_* */
+- int fcs_out; /* BR2684_FCSOUT_* */
+- int fcs_auto; /* 1: fcs_{in,out} disabled if no FCS rx'ed */
+- int encaps;