[Babel-users] [PATCH 2/3] Add ECN support to babel messages

Dave Taht dave.taht at gmail.com
Tue Sep 25 17:31:37 BST 2018


In our brave new fq_codel'd world we tend to drop more packets under
congestion. Using ECN on babel packets has resulted in a much stabler
mesh network for me for 5 years, even with no defined response.

Inventing a good response to CE markings would be good also, but this is
a start towards separating packet loss as a connectivity measure vs
a congestion measure.

Signed-off-by: Dave Taht <dave.taht at gmail.com>
---
 net.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net.c b/net.c
index 1e5890d..3926f46 100644
--- a/net.c
+++ b/net.c
@@ -46,7 +46,7 @@ babel_socket(int port)
     int s, rc;
     int saved_errno;
     int one = 1, zero = 0;
-    const int ds = 0xc0;        /* CS6 - Network Control */
+    const int ds = 0xc2;        /* CS6 - Network Control + ECN */
 
     s = socket(PF_INET6, SOCK_DGRAM, 0);
     if(s < 0)
-- 
2.7.4




More information about the Babel-users mailing list