]> git.proxmox.com Git - qemu.git/commit
linux-user: correct setsockopt()
authorLaurent Vivier <Laurent@Vivier.EU>
Tue, 1 Jan 2013 08:24:11 +0000 (08:24 +0000)
committerLaurent Vivier <laurent@vivier.eu>
Wed, 30 Jan 2013 11:13:21 +0000 (12:13 +0100)
commit1b09aeb90827c1d91383a9eae42ce8f25909857b
tree54ef83c88cb22ea234ae31d7ac350fc8309e0aee
parent910ee4e5f4a1df5b1bd144dfca1ae466e2a86a78
linux-user: correct setsockopt()

SO_SNDTIMEO and SO_RCVTIMEO take a struct timeval, not an int

To test this, you can use :

QEMU_STRACE= ping localhost 2>&1 |grep TIMEO
568 setsockopt(3,SOL_SOCKET,SO_SNDTIMEO,{1,0},8) = 0
568 setsockopt(3,SOL_SOCKET,SO_RCVTIMEO,{1,0},8) = 0

Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
linux-user/syscall.c