- Added device type checl
This commit is contained in:
Tristan Brice Velloza Kildaire 2024-12-14 14:04:15 +02:00
parent 0f115a3572
commit 95930680d0

10
TAP.c
View File

@ -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);