diff options
author | Mark McLoughlin <markmc@redhat.com> | 2009-07-01 16:45:30 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-07-09 16:58:07 -0500 |
commit | d026fb6dab9483869897d9d762311db8895ecca5 (patch) | |
tree | ae4c4e62d10c1b110ceaf6bd4b147d05d030c57e /net.c | |
parent | 1c27a8b35ed2736a0542983facbe861d44785a44 (diff) | |
download | qemu-d026fb6dab9483869897d9d762311db8895ecca5.zip qemu-d026fb6dab9483869897d9d762311db8895ecca5.tar.gz qemu-d026fb6dab9483869897d9d762311db8895ecca5.tar.bz2 |
Don't abort if TUNSETSNDBUF fails where no sndbuf= arg is supplied
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 <markmc@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'net.c')
-rw-r--r-- | net.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)); } |