aboutgitcodebugslistschat
path: root/tap.c
diff options
context:
space:
mode:
Diffstat (limited to 'tap.c')
-rw-r--r--tap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tap.c b/tap.c
index f8b8b4f..c11191c 100644
--- a/tap.c
+++ b/tap.c
@@ -37,9 +37,9 @@
int tap_send(int fd, void *data, size_t len, int flags)
{
uint32_t vnet_len = htonl(len);
- send(fd, &vnet_len, 4, 0);
+ send(fd, &vnet_len, 4, MSG_DONTWAIT | MSG_NOSIGNAL);
- return send(fd, data, len, flags);
+ return send(fd, data, len, flags | MSG_DONTWAIT | MSG_NOSIGNAL);
}
/**