From 2c7e3030edb84abae14042f7a1a22b44255324be Mon Sep 17 00:00:00 2001 From: Sander Vrijders Date: Wed, 20 Sep 2017 13:56:17 +0200 Subject: ipcpd: normal: Make PFF policy-based This turns the PDU Forwarding Function of the IPCP into a policy. For now only the simple PFF policy is available. --- src/ipcpd/normal/pol/flat.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/ipcpd/normal/pol/flat.c') diff --git a/src/ipcpd/normal/pol/flat.c b/src/ipcpd/normal/pol/flat.c index 0c4648c5..c52ebe38 100644 --- a/src/ipcpd/normal/pol/flat.c +++ b/src/ipcpd/normal/pol/flat.c @@ -30,6 +30,7 @@ #include #include "ipcp.h" +#include "flat.h" #include #include @@ -46,6 +47,12 @@ struct { #define INVALID_ADDRESS 0 +struct pol_addr_auth_ops flat_ops = { + .init = flat_init, + .fini = flat_fini, + .address = flat_address +}; + int flat_init(const void * info) { flat.addr_size = *((uint8_t *) info); -- cgit v1.2.3