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/pol/pft.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/ipcpd/unicast/pol/pft.c') diff --git a/src/ipcpd/unicast/pol/pft.c b/src/ipcpd/unicast/pol/pft.c index 924efbe1..53acc08e 100644 --- a/src/ipcpd/unicast/pol/pft.c +++ b/src/ipcpd/unicast/pol/pft.c @@ -149,6 +149,7 @@ int pft_insert(struct pft * pft, struct list_head * p; assert(pft); + assert(len > 0); lookup_key = calc_key(pft, dst); -- cgit v1.2.3