summaryrefslogtreecommitdiff
path: root/src/ipcpd
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri@ouroboros.rocks>2020-12-02 13:27:43 +0100
committerSander Vrijders <sander@ouroboros.rocks>2020-12-02 19:23:12 +0100
commit0f2c87e5f52f9e88a202b851ade1e24bb2dc0985 (patch)
tree1eabf12f483b1fb2b946681a7c7855823087a800 /src/ipcpd
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 <dimitri@ouroboros.rocks> Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'src/ipcpd')
-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;