qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] linux-user: manage SOCK_PACKET socket type.


From: Laurent Vivier
Subject: Re: [Qemu-devel] [PATCH] linux-user: manage SOCK_PACKET socket type.
Date: Tue, 27 Oct 2015 12:49:29 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0


Le 27/10/2015 12:39, Peter Maydell a écrit :
> On 27 October 2015 at 11:35, Peter Maydell <address@hidden> wrote:
>> Still thinking about the other part of your patch, because
>> "does this start with 'eth'" is not very pretty...

I agree with you, but I didn't find better.

> ...can we use the TargetFdTrans machinery from your signalfd
> patch to associate custom sockaddr conversion functions with
> a file descriptor if it's created via socket(PF_PACKET, SOCK_PACKET, ...)?

It was my first idea, but it didn't fit well: this machinery is to
translate data (recv/send), not the parameters, but as you say we can
add some functions in the structure. I'll have a look at this.

Laurent



reply via email to

[Prev in Thread] Current Thread [Next in Thread]