aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv/main.h
diff options
context:
space:
mode:
authorSimon Wunderlich <simon.wunderlich@s2003.tu-chemnitz.de>2012-01-22 14:00:24 -0500
committerAntonio Quartulli <ordex@autistici.org>2012-04-11 08:28:59 -0400
commitfe2da6ff27c73c1d102ec2189f94e8bc729d1a9b (patch)
tree143055e9de797c3b645d453a5d0c62d5c3d8af19 /net/batman-adv/main.h
parent20ff9d593f8ff20c2ef24498f77a8bc30b3a059a (diff)
batman-adv: add broadcast duplicate check
When multiple backbone gateways relay the same broadcast from the backbone into the mesh, other nodes in the mesh may receive this broadcast multiple times. To avoid this, the crc checksums of received broadcasts are recorded and new broadcast packets with the same content may be dropped if received by another gateway. Signed-off-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de> Signed-off-by: Antonio Quartulli <ordex@autistici.org>
Diffstat (limited to 'net/batman-adv/main.h')
-rw-r--r--net/batman-adv/main.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/batman-adv/main.h b/net/batman-adv/main.h
index 82723b5dce61..d9832acf558d 100644
--- a/net/batman-adv/main.h
+++ b/net/batman-adv/main.h
@@ -83,6 +83,9 @@
83#define BLA_PERIOD_LENGTH 10000 /* 10 seconds */ 83#define BLA_PERIOD_LENGTH 10000 /* 10 seconds */
84#define BLA_BACKBONE_TIMEOUT (BLA_PERIOD_LENGTH * 3) 84#define BLA_BACKBONE_TIMEOUT (BLA_PERIOD_LENGTH * 3)
85#define BLA_CLAIM_TIMEOUT (BLA_PERIOD_LENGTH * 10) 85#define BLA_CLAIM_TIMEOUT (BLA_PERIOD_LENGTH * 10)
86
87#define DUPLIST_SIZE 16
88#define DUPLIST_TIMEOUT 500 /* 500 ms */
86/* don't reset again within 30 seconds */ 89/* don't reset again within 30 seconds */
87#define RESET_PROTECTION_MS 30000 90#define RESET_PROTECTION_MS 30000
88#define EXPECTED_SEQNO_RANGE 65536 91#define EXPECTED_SEQNO_RANGE 65536