Don't forget BSD..

Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
This commit is contained in:
Adrien Gallouët
2018-03-19 09:53:43 +00:00
parent 7999344c39
commit 6e75f4282d
2 changed files with 8 additions and 2 deletions

View File

@@ -224,7 +224,7 @@ tun_write(int fd, const void *data, size_t size)
#ifdef GT_BSD_TUN
uint32_t family;
switch (ip_get_version(data, size)) {
switch (ip_get_version(data)) {
case 4:
family = htonl(AF_INET);
break;