summaryrefslogtreecommitdiff
path: root/proto/babel/babel.h
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2023-01-23 18:57:13 +0100
committerMaria Matejka <mq@ucw.cz>2023-01-23 18:57:13 +0100
commit5aeaa0c2ca9696cbfc40ff04a0c7b3c64ad69157 (patch)
treecb9f21907d203da52e95328604357ef130a40827 /proto/babel/babel.h
parent521fec2fdc391ee468fd3f58f994609483e6a6eb (diff)
parent8b06a4d8af46511f0f8dbb8905afa88590a831b6 (diff)
Merge commit '8b06a4d8af46511f0f8dbb8905afa88590a831b6' into thread-next
Diffstat (limited to 'proto/babel/babel.h')
-rw-r--r--proto/babel/babel.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/proto/babel/babel.h b/proto/babel/babel.h
index a980d1da..9014ace2 100644
--- a/proto/babel/babel.h
+++ b/proto/babel/babel.h
@@ -44,6 +44,8 @@
#define BABEL_ROUTE_REFRESH_FACTOR(X) ((btime)(X)*5/2) /* 2.5 */
#define BABEL_SEQNO_REQUEST_RETRY 4
#define BABEL_SEQNO_REQUEST_EXPIRY (2 S_)
+#define BABEL_SEQNO_FORWARD_EXPIRY (10 S_)
+#define BABEL_SEQNO_DUP_SUPPRESS_TIME (1 S_)
#define BABEL_GARBAGE_INTERVAL (300 S_)
#define BABEL_RXCOST_WIRED 96
#define BABEL_RXCOST_WIRELESS 256
@@ -236,7 +238,6 @@ struct babel_neighbor {
btime init_expiry;
list routes; /* Routes this neighbour has sent us (struct babel_route) */
- list requests; /* Seqno requests bound to this neighbor */
};
struct babel_source {
@@ -266,13 +267,13 @@ struct babel_route {
struct babel_seqno_request {
node n;
- node nbr_node;
u64 router_id;
u16 seqno;
+ u8 forwarded;
u8 hop_count;
u8 count;
btime expires;
- struct babel_neighbor *nbr;
+ btime dup_suppress_time;
};
struct babel_entry {