summaryrefslogtreecommitdiff
path: root/src/ipcpd/unicast
diff options
context:
space:
mode:
authorDimitri Staessens <[email protected]>2020-12-02 13:27:43 +0100
committerSander Vrijders <[email protected]>2020-12-02 19:23:12 +0100
commit0f2c87e5f52f9e88a202b851ade1e24bb2dc0985 (patch)
tree1eabf12f483b1fb2b946681a7c7855823087a800 /src/ipcpd/unicast
parent8e1c0e62feb4832dca2b53e51ab0e1cb8f48e5b1 (diff)
downloadouroboros-0f2c87e5f52f9e88a202b851ade1e24bb2dc0985.tar.gz
ouroboros-0f2c87e5f52f9e88a202b851ade1e24bb2dc0985.zip
ipcpd: Fix enrollment for congestion avoidance
The enrollment procedure was not passing the policy for congestion avoidance. Signed-off-by: Dimitri Staessens <[email protected]> Signed-off-by: Sander Vrijders <[email protected]>
Diffstat (limited to 'src/ipcpd/unicast')
-rw-r--r--src/ipcpd/unicast/enroll.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ipcpd/unicast/enroll.c b/src/ipcpd/unicast/enroll.c
index 3b4a5a89..d47ebb40 100644
--- a/src/ipcpd/unicast/enroll.c
+++ b/src/ipcpd/unicast/enroll.c
@@ -136,6 +136,7 @@ static int send_rcv_enroll_msg(int fd)
enroll.conf.max_ttl = reply->conf->max_ttl;
enroll.conf.addr_auth_type = reply->conf->addr_auth_type;
enroll.conf.routing_type = reply->conf->routing_type;
+ enroll.conf.cong_avoid = reply->conf->cong_avoid;
enroll.conf.layer_info.dir_hash_algo
= reply->conf->layer_info->dir_hash_algo;
@@ -172,6 +173,8 @@ static ssize_t enroll_pack(uint8_t ** buf)
config.addr_auth_type = enroll.conf.addr_auth_type;
config.has_routing_type = true;
config.routing_type = enroll.conf.routing_type;
+ config.has_cong_avoid = true;
+ config.cong_avoid = enroll.conf.cong_avoid;
config.layer_info = &layer_info;
layer_info.layer_name = (char *) enroll.conf.layer_info.layer_name;