* [Qemu-devel] [PATCH 3/3] linux-user: exclude SO_TIMESTAMP cmsg_type from unsuppoted ancillary data
@ 2012-07-14 17:13 Jing Huang
2012-07-15 2:14 ` Dunrong Huang
0 siblings, 1 reply; 2+ messages in thread
From: Jing Huang @ 2012-07-14 17:13 UTC (permalink / raw)
To: qemu-devel; +Cc: peter.maydell, riku.voipio
This patch excludes SO_TIMESTAMP cmsg_type from unsuppoted ancillary data
Signed-off-by: Jing Huang <jing.huang.pku@gmail.com>
---
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] [PATCH 3/3] linux-user: exclude SO_TIMESTAMP cmsg_type from unsuppoted ancillary data
2012-07-14 17:13 [Qemu-devel] [PATCH 3/3] linux-user: exclude SO_TIMESTAMP cmsg_type from unsuppoted ancillary data Jing Huang
@ 2012-07-15 2:14 ` Dunrong Huang
0 siblings, 0 replies; 2+ messages in thread
From: Dunrong Huang @ 2012-07-15 2:14 UTC (permalink / raw)
To: Jing Huang; +Cc: peter.maydell, riku.voipio, qemu-devel
2012/7/15 Jing Huang <jing.huang.pku@gmail.com>:
> This patch excludes SO_TIMESTAMP cmsg_type from unsuppoted ancillary data
>
> Signed-off-by: Jing Huang <jing.huang.pku@gmail.com>
> ---
> 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) {
Your mail client(or mail server) splits long lines, so the patch cant
be applied.
What's tool you used to send patches? you'd better use git send-email.
> + 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
>
--
Best Regards,
Dunrong Huang
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-07-15 2:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-14 17:13 [Qemu-devel] [PATCH 3/3] linux-user: exclude SO_TIMESTAMP cmsg_type from unsuppoted ancillary data Jing Huang
2012-07-15 2:14 ` Dunrong Huang
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.