public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
From: jpo234@netscape.net
To: andi@firstfloor.org
Cc: netdev@vger.kernel.org
Subject: Re: Sending complete IPv6 packets without bypassing netfilter/IPsec
Date: Fri, 16 Jan 2009 07:48:33 -0500	[thread overview]
Message-ID: <8CB45EFE0258939-2F30-B18@webmail-stg-d07.sysops.aol.com> (raw)
In-Reply-To: <87ocy7e95w.fsf@basil.nowhere.org>

Andi,
I read the rationale in RFC 3542. Unfortunately this makes the 
following assumptions:
1) You know the IP protocol value when you open the socket. This is not 
true in my case because I get packets from a tun device.
2) Packet injection using packet sockets/libpcap provides the same 
functionality. Bad luck that this completely bypasses IPsec and 
netfilter.

To overcome 1) I would have to strip off the IPv6 header and then have 
a separate socket for every next-header value I might encounter. Not 
very appealing.

I know I'm partial right now, but at least the suggestion in the RFC 
that "some other technique, such as the datalink interfaces BPF or 
DLPI, must be used" is misguided.

Regards
  Joerg


-----Original Message-----
From: Andi Kleen <andi@firstfloor.org>
To: jpo234@netscape.net
Cc: netdev@vger.kernel.org
Sent: Fri, 16 Jan 2009 1:18 pm
Subject: Re: Sending complete IPv6 packets without bypassing 
netfilter/IPsec

jpo234@netscape.net writes:

> Hello all,
> the IPv4 socket interface had the nifty IP_HDRINCL option. It seems
> that an IPv6 version of this option is not available. The proposed
> solution for this seems to be to use libpcap to inject the
> packet. Unfortunately this completely bypasses both, netfilter and
> IPsec. So, am I lost or is there a way to do what I want/need?

The theory is (the same on IPv4) is that the socket options should
allow you to specify everything legal you could put into a IPv6 header
by hand.

-Andi

--
ak@linux.intel.com -- Speaking for myself only.






      reply	other threads:[~2009-01-16 12:48 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-15 13:15 Sending complete IPv6 packets without bypassing netfilter/IPsec jpo234
2009-01-15 23:54 ` Herbert Xu
2009-01-16  5:48   ` jpo234
2009-01-16  6:48     ` Herbert Xu
2009-01-16 10:28       ` jpo234
2009-01-16 10:46       ` jpo234
2009-01-16 10:56         ` Rémi Denis-Courmont
2009-01-16 11:12           ` jpo234
2009-01-16 14:09             ` Rémi Denis-Courmont
2009-01-16 14:54               ` jpo234
2009-01-16 12:18 ` Andi Kleen
2009-01-16 12:48   ` jpo234 [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=8CB45EFE0258939-2F30-B18@webmail-stg-d07.sysops.aol.com \
    --to=jpo234@netscape.net \
    --cc=andi@firstfloor.org \
    --cc=netdev@vger.kernel.org \
    /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