[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] Don't abort if TUNSETSNDBUF fails where no sndbuf=
From: |
Mark McLoughlin |
Subject: |
[Qemu-devel] [PATCH] Don't abort if TUNSETSNDBUF fails where no sndbuf= arg is supplied |
Date: |
Wed, 01 Jul 2009 16:45:30 +0100 |
If no tap,sndbuf= arg is supplied, we use a default value. If
TUNSETSNDBUF fails in this case, we should not abort.
Signed-off-by: Mark McLoughlin <address@hidden>
---
net.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/net.c b/net.c
index 21842d0..770162f 100644
--- a/net.c
+++ b/net.c
@@ -1416,7 +1416,7 @@ static void tap_set_sndbuf(TAPState *s, const char
*sndbuf_str, Monitor *mon)
sndbuf = INT_MAX;
}
- if (ioctl(s->fd, TUNSETSNDBUF, &sndbuf) == -1) {
+ if (ioctl(s->fd, TUNSETSNDBUF, &sndbuf) == -1 && sndbuf_str) {
config_error(mon, "TUNSETSNDBUF ioctl failed: %s\n",
strerror(errno));
}
--
1.6.2.2
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [PATCH] Don't abort if TUNSETSNDBUF fails where no sndbuf= arg is supplied,
Mark McLoughlin <=