From bd21d7f7a3b0cac232c6c217541beb82991e99c7 Mon Sep 17 00:00:00 2001 From: "Tristan B. Velloza Kildaire" Date: Mon, 28 Nov 2022 18:33:22 +0200 Subject: [PATCH] Added some todo notes --- source/libtun/tunctl.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/libtun/tunctl.c b/source/libtun/tunctl.c index 58929c2..07e5470 100644 --- a/source/libtun/tunctl.c +++ b/source/libtun/tunctl.c @@ -23,6 +23,7 @@ #include /* TODO: Update types here using stdint */ +//TODO: We could possibly use directly uint32_t createTun(char* interfaceName, int32_t iffFlags) { /* TODO: Add all required error checking */ @@ -56,11 +57,13 @@ uint32_t createTun(char* interfaceName, int32_t iffFlags) return tunFD; } +//TOOD: Maybe use directly uint32_t destroyTun(uint32_t fd) { return close(fd); } +//TODO: Maybe use directly uint32_t tunWrite(uint32_t fd, char* data, int length) { write(fd, data, length); @@ -72,6 +75,7 @@ uint32_t tunWrite(uint32_t fd, char* data, int length) * * (FIXME: For now we just read 20 bytes) */ +//TODO: Maybe use directly uint32_t tunRead(uint32_t fd, char* data, int amount) { return read(fd, data, amount);