summaryrefslogtreecommitdiffstats
path: root/src/fastd.h
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2015-11-09 17:39:38 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2015-11-09 17:39:38 +0100
commit93945ca36875f69163c49f4d4b5f9649957a346b (patch)
tree66e8db4ed7aa083f16bf79139ccab60c3fdad930 /src/fastd.h
parent2c71060d25f18e75ae14154bf50d24909e2872c1 (diff)
downloadfastd-93945ca36875f69163c49f4d4b5f9649957a346b.tar
fastd-93945ca36875f69163c49f4d4b5f9649957a346b.zip
Add generic interface cleanup infrastructure
Some systems (like FreeBSD) don't delete TUN/TAP interfaces after closing, add some infrastructure to do that.
Diffstat (limited to 'src/fastd.h')
-rw-r--r--src/fastd.h1
1 files changed, 1 insertions, 0 deletions
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 */
};