summaryrefslogtreecommitdiff
path: root/src/ipcpd/broadcast
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri@ouroboros.rocks>2023-03-22 12:57:14 +0100
committerSander Vrijders <sander@ouroboros.rocks>2023-03-24 10:04:53 +0100
commitb69cb56fdc0343b7c25cc895f9841ff29f01da26 (patch)
treed6db1fe992bfc0f22c43af183395caabc077fcf8 /src/ipcpd/broadcast
parent2a0cd15420427fcf0501c8bc1faf5cfee7734657 (diff)
downloadouroboros-b69cb56fdc0343b7c25cc895f9841ff29f01da26.tar.gz
ouroboros-b69cb56fdc0343b7c25cc895f9841ff29f01da26.zip
icpdp: Fix layer information for ipcpd-udp
The refactors removed the need to set the hash algorithm for the ipcpd-udp and the ipcpd-broadcast. However, the algorithm was not set at bootstrap, so the ipcpd-udp was trying to use an SHA3-256 instead of an MD5, causing flow allocation over the UDP to fail. The ipcpd-broadcast used the default, so there was no problem. Fixed by setting the correct algorithm for these ipcpds at bootstrap. Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks> Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'src/ipcpd/broadcast')
-rw-r--r--src/ipcpd/broadcast/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ipcpd/broadcast/main.c b/src/ipcpd/broadcast/main.c
index 804741f0..30cb49b0 100644
--- a/src/ipcpd/broadcast/main.c
+++ b/src/ipcpd/broadcast/main.c
@@ -164,6 +164,7 @@ static int broadcast_ipcp_bootstrap(const struct ipcp_config * conf)
{
assert(conf);
assert(conf->type == THIS_TYPE);
+ ((struct ipcp_config *) conf)->layer_info.dir_hash_algo = HASH_SHA3_256;
enroll_bootstrap(conf);
@@ -245,7 +246,6 @@ int broadcast_ipcp_dealloc(int fd)
return 0;
}
-
static struct ipcp_ops broadcast_ops = {
.ipcp_bootstrap = broadcast_ipcp_bootstrap,
.ipcp_enroll = broadcast_ipcp_enroll,