[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-commits] [COMMIT d026fb6] Don't abort if TUNSETSNDBUF fails where
From: |
Anthony Liguori |
Subject: |
[Qemu-commits] [COMMIT d026fb6] Don't abort if TUNSETSNDBUF fails where no sndbuf=arg is supplied |
Date: |
Fri, 10 Jul 2009 19:16:41 -0000 |
From: Mark McLoughlin <address@hidden>
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>
Signed-off-by: Anthony Liguori <address@hidden>
diff --git a/net.c b/net.c
index 49f4016..1507f37 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));
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-commits] [COMMIT d026fb6] Don't abort if TUNSETSNDBUF fails where no sndbuf=arg is supplied,
Anthony Liguori <=