diff options
author | Sander Vrijders <[email protected]> | 2017-02-21 14:45:04 +0100 |
---|---|---|
committer | Sander Vrijders <[email protected]> | 2017-02-21 14:45:04 +0100 |
commit | 64f2b95f622a3c2b16e4dbdc8553d506ef870a8c (patch) | |
tree | ffe86d4470e121c47fa11faf8dd5f921f1b6de1f /src/ipcpd/normal/pol | |
parent | 91091367210ee204c4082a0da05eea3336674f19 (diff) | |
download | ouroboros-64f2b95f622a3c2b16e4dbdc8553d506ef870a8c.tar.gz ouroboros-64f2b95f622a3c2b16e4dbdc8553d506ef870a8c.zip |
ipcpd: normal: Change address authority policy
This changes the address authority to follow a similar approach to
that of the other policies. No function pointers are passed to its
user anymore.
Diffstat (limited to 'src/ipcpd/normal/pol')
-rw-r--r-- | src/ipcpd/normal/pol/flat.c | 10 | ||||
-rw-r--r-- | src/ipcpd/normal/pol/flat.h | 8 |
2 files changed, 18 insertions, 0 deletions
diff --git a/src/ipcpd/normal/pol/flat.c b/src/ipcpd/normal/pol/flat.c index d982f5ac..aa0f6c7c 100644 --- a/src/ipcpd/normal/pol/flat.c +++ b/src/ipcpd/normal/pol/flat.c @@ -80,6 +80,16 @@ static int addr_taken(char * name, #define INVALID_ADDRESS 0 +int flat_init(void) +{ + return 0; +} + +int flat_fini(void) +{ + return 0; +} + uint64_t flat_address(void) { struct timespec t; diff --git a/src/ipcpd/normal/pol/flat.h b/src/ipcpd/normal/pol/flat.h index 73d7de8b..85fe9281 100644 --- a/src/ipcpd/normal/pol/flat.h +++ b/src/ipcpd/normal/pol/flat.h @@ -22,8 +22,16 @@ #ifndef OUROBOROS_IPCPD_NORMAL_FLAT_H #define OUROBOROS_IPCPD_NORMAL_FLAT_H +#include "pol-addr-auth-ops.h" + int flat_init(void); int flat_fini(void); uint64_t flat_address(void); +struct pol_addr_auth_ops flat_ops = { + .init = flat_init, + .fini = flat_fini, + .address = flat_address +}; + #endif /* OUROBOROS_IPCPD_NORMAL_FLAT_H */ |