network/tuntap: save tun or tap file descriptor in fd store

This commit is contained in:
Yu Watanabe
2022-08-16 21:57:35 +09:00
parent f8b7c17764
commit af7a86b8a6
8 changed files with 153 additions and 15 deletions
+3
View File
@@ -142,6 +142,9 @@ typedef struct NetDevVTable {
* to be set != 0. */
void (*init)(NetDev *n);
/* This is called when the interface is removed. */
void (*drop)(NetDev *n);
/* This should free all kind-specific variables. It should be
* idempotent. */
void (*done)(NetDev *n);