diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/vpn/gnunet-daemon-vpn.c | 1 | ||||
-rw-r--r-- | src/vpn/gnunet-helper-vpn.c | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/vpn/gnunet-daemon-vpn.c b/src/vpn/gnunet-daemon-vpn.c index 0f5b3b06e..24f141cfc 100644 --- a/src/vpn/gnunet-daemon-vpn.c +++ b/src/vpn/gnunet-daemon-vpn.c | |||
@@ -78,6 +78,7 @@ static void start_helper_and_schedule(struct vpn_cls* mycls) { | |||
78 | 78 | ||
79 | 79 | ||
80 | static void restart_helper(void* cls, const struct GNUNET_SCHEDULER_TaskContext* tskctx) { | 80 | static void restart_helper(void* cls, const struct GNUNET_SCHEDULER_TaskContext* tskctx) { |
81 | // FIXME: Ratelimit this! | ||
81 | struct vpn_cls* mycls = (struct vpn_cls*) cls; | 82 | struct vpn_cls* mycls = (struct vpn_cls*) cls; |
82 | 83 | ||
83 | // Kill the helper | 84 | // Kill the helper |
diff --git a/src/vpn/gnunet-helper-vpn.c b/src/vpn/gnunet-helper-vpn.c index 4a75182f9..83c0af453 100644 --- a/src/vpn/gnunet-helper-vpn.c +++ b/src/vpn/gnunet-helper-vpn.c | |||
@@ -122,6 +122,12 @@ int main(int argc, char** argv) { | |||
122 | signal(SIGTERM, &term); | 122 | signal(SIGTERM, &term); |
123 | 123 | ||
124 | int fd_tun = init_tun(dev); | 124 | int fd_tun = init_tun(dev); |
125 | |||
126 | if (fd_tun < 0) { | ||
127 | fprintf(stderr, "Could not initialize tun-interface: %m\n"); | ||
128 | exit(1); | ||
129 | } | ||
130 | |||
125 | fprintf(stderr, "Initialized the interface %s as %d.\n", dev, fd_tun); | 131 | fprintf(stderr, "Initialized the interface %s as %d.\n", dev, fd_tun); |
126 | 132 | ||
127 | // TODO: get this out of argv | 133 | // TODO: get this out of argv |