qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] New feature - RFC3931 L2TPv3 network transport


From: Anton Ivanov (antivano)
Subject: Re: [Qemu-devel] [PATCH] New feature - RFC3931 L2TPv3 network transport using static Ethernet over L2TPv3 tunnels
Date: Mon, 10 Mar 2014 19:14:34 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130116 Icedove/10.0.12

On 10/03/14 18:04, Stefan Hajnoczi wrote:
> On Mon, Mar 10, 2014 at 08:49:01AM +0000, Anton Ivanov wrote:
>> You are correct. My test is wrong.
>>
>> However, the result is the same - it wants a non-zero proto there.
>>
>> $ sudo ./gaitest
>> src ai_family 2 ai_socketype 3 ai_protocol 0
>> socket creation failed, errno = 93
> You are right!
>
> I got confused with Linux net/l2tp/l2tp_ip.c driver which handles
> socket(AF_INET, SOCK_DGRAM, IPPROTO_L2TP).  But that has nothing to do
> with this raw socket code which needs to do socket(AF_INET, SOCK_RAW,
> IPPROTO_L2TP).
>
> IPPROTO_L2TP *is* needed after all since SOCK_RAW wants
> to know the IP protocol number so it can receive incoming packets.
> We're not trying to capture all IP packets, just the L2TP ones.
>
> So I'm happy again with the code.

OK. In that case I will fix the few remaining issues with the interface
file, mark that as v5 and resubmit tomorrow.

I think I have addressed all other comments.

Best Regards,

A.

>
> Stefan



reply via email to

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