From 93945ca36875f69163c49f4d4b5f9649957a346b Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Mon, 9 Nov 2015 17:39:38 +0100 Subject: Add generic interface cleanup infrastructure Some systems (like FreeBSD) don't delete TUN/TAP interfaces after closing, add some infrastructure to do that. --- src/fastd.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/fastd.h') diff --git a/src/fastd.h b/src/fastd.h index 7963505..88bd9a2 100644 --- a/src/fastd.h +++ b/src/fastd.h @@ -167,6 +167,7 @@ struct fastd_iface { char *name; /**< The interface name */ fastd_peer_t *peer; /**< The peer associated with the interface (if any) */ uint16_t mtu; /**< The MTU of the interface */ + bool cleanup; /**< Determines if the interface should be deleted after use; not used on all platforms */ }; -- cgit v1.2.3