From 95930680d0f6dc1ddbf2a7f15febbe150b368a62 Mon Sep 17 00:00:00 2001 From: Tristan Brice Velloza Kildaire Date: Sat, 14 Dec 2024 14:04:15 +0200 Subject: [PATCH] TAP - Added device type checl --- TAP.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/TAP.c b/TAP.c index c231aaf..1fcc642 100644 --- a/TAP.c +++ b/TAP.c @@ -325,6 +325,16 @@ int open_tap(void) { exit(1); } + // Choose stratergy for generating link-local address + if(device_type == IF_TAP) + { + + } + else + { + + } + // Add link-local address trySixSet(ifr.ifr_ifindex, generateLinkLocal(if_name), 64);