X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fbsd%2Fdevice.c;h=db506e5a17074342c5b52b66e91a50b57336a427;hb=8156f3760973c17256a93ab48016b8b84f5444de;hp=235f4ec68d7529369b5538e8f29867b1c632f1ef;hpb=0345a1468613e1ba4a4aa6dbbef44a26f1eb42d9;p=tinc diff --git a/src/bsd/device.c b/src/bsd/device.c index 235f4ec6..db506e5a 100644 --- a/src/bsd/device.c +++ b/src/bsd/device.c @@ -24,10 +24,7 @@ #include "../conf.h" #include "../device.h" #include "../logger.h" -#include "../names.h" -#include "../net.h" #include "../route.h" -#include "../utils.h" #include "../xalloc.h" #ifdef ENABLE_TUNEMU @@ -503,7 +500,7 @@ static bool write_packet(vpn_packet_t *packet) { #ifdef ENABLE_TUNEMU case DEVICE_TYPE_TUNEMU: - if(tunemu_write(device_fd, DATA(packet) + 14, packet->len - 14) < 0) { + if(tunemu_write(DATA(packet) + 14, packet->len - 14) < 0) { logger(DEBUG_ALWAYS, LOG_ERR, "Error while writing to %s %s: %s", device_info, device, strerror(errno)); return false;