From af8e7f78af9b13c2cf6615dc9eb6c52c51b2bc2c Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Sun, 16 Feb 2020 13:42:18 +0100 Subject: Add equal-cost multipath routing policy This adds an equal-cost multipath routing policy to Ouroboros, based on Nick Aerts' code. When selected, flows will send packets over all paths with equal cost (hop count). Path selection is round-robin. It does not yet take into account flows that are down. Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- src/ipcpd/unicast/pff.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/ipcpd/unicast/pff.c') diff --git a/src/ipcpd/unicast/pff.c b/src/ipcpd/unicast/pff.c index 4e380e05..19432972 100644 --- a/src/ipcpd/unicast/pff.c +++ b/src/ipcpd/unicast/pff.c @@ -28,6 +28,7 @@ #include "pff.h" #include "pol-pff-ops.h" #include "pol/alternate_pff.h" +#include "pol/multipath_pff.h" #include "pol/simple_pff.h" struct pff { @@ -52,6 +53,10 @@ struct pff * pff_create(enum pol_pff pol) log_dbg("Using simple PFF policy."); pff->ops = &simple_pff_ops; break; + case PFF_MULTIPATH: + log_dbg("Using multipath PFF policy."); + pff->ops = &multipath_pff_ops; + break; default: goto err; } -- cgit v1.2.3