qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Anton Ivanov (antivano)" <antivano@cisco.com>
To: Stefan Hajnoczi <stefanha@gmail.com>
Cc: "pbonzini@redhat.com" <pbonzini@redhat.com>,
	"afaerber@suse.de" <afaerber@suse.de>,
	Anton Ivanov <anton.ivanov@kot-begemot.co.uk>,
	Stefan Hajnoczi <stefanha@redhat.com>,
	"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
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	[thread overview]
Message-ID: <531E0F0A.8030708@cisco.com> (raw)
In-Reply-To: <20140310180438.GG32400@stefanha-thinkpad.redhat.com>

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	other threads:[~2014-03-10 19:14 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-05 14:12 [Qemu-devel] [PATCH] New feature - RFC3931 L2TPv3 network transport using static Ethernet over L2TPv3 tunnels anton.ivanov
2014-03-05 21:22 ` Eric Blake
2014-03-05 23:00   ` Anton Ivanov
2014-03-06  9:44 ` Stefan Hajnoczi
2014-03-06 10:28   ` Anton Ivanov
2014-03-09 17:06   ` Anton Ivanov
2014-03-10  8:35     ` Stefan Hajnoczi
2014-03-10  8:49       ` Anton Ivanov
2014-03-10 18:04         ` Stefan Hajnoczi
2014-03-10 19:14           ` Anton Ivanov (antivano) [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=531E0F0A.8030708@cisco.com \
    --to=antivano@cisco.com \
    --cc=afaerber@suse.de \
    --cc=anton.ivanov@kot-begemot.co.uk \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@gmail.com \
    --cc=stefanha@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).