Add persist option

Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
This commit is contained in:
Adrien Gallouët
2017-11-16 15:52:30 +00:00
parent 325575c6a7
commit 297e93ed54
2 changed files with 6 additions and 2 deletions

View File

@@ -245,6 +245,7 @@ tun_set_persist(int fd, int on)
#ifdef TUNSETPERSIST
return ioctl(fd, TUNSETPERSIST, on);
#else
return 0;
errno = ENOSYS;
return -1;
#endif
}