[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 3/3] linux-user: exclude SO_TIMESTAMP cmsg_type from
From: |
Jing Huang |
Subject: |
[Qemu-devel] [PATCH 3/3] linux-user: exclude SO_TIMESTAMP cmsg_type from unsuppoted ancillary data |
Date: |
Sat, 14 Jul 2012 17:13:33 +0000 |
This patch excludes SO_TIMESTAMP cmsg_type from unsuppoted ancillary data
Signed-off-by: Jing Huang <address@hidden>
---
linux-user/syscall.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index ed93af0..850e6e0 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -1349,7 +1349,9 @@ static inline abi_long
host_to_target_cmsg(struct target_msghdr *target_msgh,
target_cmsg->cmsg_type = tswap32(cmsg->cmsg_type);
target_cmsg->cmsg_len = tswapal(TARGET_CMSG_LEN(len));
- if (cmsg->cmsg_level != TARGET_SOL_SOCKET || cmsg->cmsg_type
!= SCM_RIGHTS) {
+ if (cmsg->cmsg_level != TARGET_SOL_SOCKET ||
+ (cmsg->cmsg_type != SCM_RIGHTS &&
+ cmsg->cmsg_type != SO_TIMESTAMP)) {
gemu_log("Unsupported ancillary data: %d/%d\n",
cmsg->cmsg_level, cmsg->cmsg_type);
memcpy(target_data, data, len);
} else {
--
1.7.8.6
- [Qemu-devel] [PATCH 3/3] linux-user: exclude SO_TIMESTAMP cmsg_type from unsuppoted ancillary data,
Jing Huang <=