From 0ed6ef2567a8355013e2cd61a1a31df6be67ae01 Mon Sep 17 00:00:00 2001 From: Sander Vrijders Date: Fri, 24 Mar 2017 14:05:40 +0100 Subject: ipcpd: normal: Fill in forwarding table The routing now takes the results of the routing table to fill in the forwarding table, by going through the neighbors and filling in the right fd. --- src/ipcpd/normal/pff.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/ipcpd/normal/pff.h') diff --git a/src/ipcpd/normal/pff.h b/src/ipcpd/normal/pff.h index 667c341e..7d8ce469 100644 --- a/src/ipcpd/normal/pff.h +++ b/src/ipcpd/normal/pff.h @@ -34,6 +34,10 @@ struct pff * pff_create(void); void pff_destroy(struct pff * instance); +void pff_lock(struct pff * instance); + +void pff_unlock(struct pff * instance); + int pff_add(struct pff * instance, uint64_t addr, int fd); @@ -45,6 +49,8 @@ int pff_update(struct pff * instance, int pff_remove(struct pff * instance, uint64_t addr); +void pff_flush(struct pff * instance); + /* Returns fd towards next hop */ int pff_nhop(struct pff * instance, uint64_t addr); -- cgit v1.2.3