diff options
author | Sander Vrijders <sander.vrijders@intec.ugent.be> | 2016-05-10 16:33:53 +0200 |
---|---|---|
committer | Sander Vrijders <sander.vrijders@intec.ugent.be> | 2016-05-10 16:33:53 +0200 |
commit | dfda83926c50297d7c315f743b4514f687469c9c (patch) | |
tree | 3b1041b979779c3ecf9f114beaaa0f3ffa9e8ea5 /src/lib/dev.c | |
parent | b4397485d19dc8bd4c109641e0495f8c5a5f4d16 (diff) | |
download | ouroboros-dfda83926c50297d7c315f743b4514f687469c9c.tar.gz ouroboros-dfda83926c50297d7c315f743b4514f687469c9c.zip |
ipcpd: Allow disabling of DNS
This allows someone to disable the use of DNS in the shim UDP. It also
adds a config file specific for the shim UDP (which holds the nsupdate
location). Certain defines were also moved to the global config file.
Diffstat (limited to 'src/lib/dev.c')
-rw-r--r-- | src/lib/dev.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/lib/dev.c b/src/lib/dev.c index c1cfe043..24e688ef 100644 --- a/src/lib/dev.c +++ b/src/lib/dev.c @@ -22,6 +22,7 @@ #define OUROBOROS_PREFIX "libouroboros-dev" +#include <ouroboros/config.h> #include <ouroboros/logs.h> #include <ouroboros/dev.h> #include <ouroboros/sockets.h> @@ -34,16 +35,6 @@ #include <stdlib.h> #include <string.h> -#define AP_MAX_FLOWS 256 - -#ifndef DU_BUFF_HEADSPACE - #define DU_BUFF_HEADSPACE 128 -#endif - -#ifndef DU_BUFF_TAILSPACE - #define DU_BUFF_TAILSPACE 0 -#endif - struct flow { struct shm_ap_rbuff * rb; int port_id; @@ -161,7 +152,7 @@ int ap_reg(char ** difs, } if (_ap_instance == NULL) { - LOG_DBG("ap_init was not called"); + LOG_DBG("ap_init was not called."); return -1; } @@ -416,7 +407,6 @@ int flow_cntl(int fd, int cmd, int oflags) ssize_t flow_write(int fd, void * buf, size_t count) { - /* the AP chooses the amount of headspace and tailspace */ size_t index = shm_create_du_buff(_ap_instance->dum, count + DU_BUFF_HEADSPACE + DU_BUFF_TAILSPACE, |