tun: only use the TUN_AF_PREFIX in OpenBSD

This commit is contained in:
Nikos Mavrogiannopoulos
2015-04-04 16:05:04 +02:00
parent 98452e7837
commit 2df8e244ab
+1 -1
View File
@@ -533,7 +533,7 @@ void close_tun(main_server_st * s, struct proc_st *proc)
return;
}
#if defined(__OpenBSD__) || defined(TUNSIFHEAD)
#if defined(__OpenBSD__) && defined(TUNSIFHEAD)
# define TUN_AF_PREFIX 1
#endif
ssize_t tun_write(int sockfd, const void *buf, size_t len)