summaryrefslogtreecommitdiff
path: root/src/ipcpd/normal/routing.h
diff options
context:
space:
mode:
authorSander Vrijders <[email protected]>2017-05-15 18:08:53 +0200
committerSander Vrijders <[email protected]>2017-05-15 18:21:45 +0200
commit5d87cec1757c4e1c23ae778f2814363c1e39b43c (patch)
treeea57e4a1e634d3b7e7325b61f6dba36d941e03ae /src/ipcpd/normal/routing.h
parent0fc0f3701ef4f504e71eadcc92a93faf1dd33bf4 (diff)
downloadouroboros-5d87cec1757c4e1c23ae778f2814363c1e39b43c.tar.gz
ouroboros-5d87cec1757c4e1c23ae778f2814363c1e39b43c.zip
ipcpd: normal: Make routing a policy
This makes the routing component into a policy since different approaches may exist to do this, depending on how high the rank of the DIF is.
Diffstat (limited to 'src/ipcpd/normal/routing.h')
-rw-r--r--src/ipcpd/normal/routing.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/ipcpd/normal/routing.h b/src/ipcpd/normal/routing.h
index 0794ef28..7e47a425 100644
--- a/src/ipcpd/normal/routing.h
+++ b/src/ipcpd/normal/routing.h
@@ -23,6 +23,7 @@
#ifndef OUROBOROS_IPCPD_NORMAL_ROUTING_H
#define OUROBOROS_IPCPD_NORMAL_ROUTING_H
+#include <ouroboros/ipcp.h>
#include <ouroboros/qos.h>
#include "pff.h"
@@ -30,11 +31,8 @@
#include <stdint.h>
-/*
- * Routing will take a type in the future,
- * to allow different policies.
- */
-int routing_init(struct nbs * nbs);
+int routing_init(enum pol_routing pr,
+ struct nbs * nbs);
void routing_fini(void);