netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Patrick McHardy <kaber@trash.net>
To: Joakim Koskela <joakim.koskela@hiit.fi>
Cc: netdev@vger.kernel.org, David Miller <davem@davemloft.net>
Subject: Re: [PATCH net-2.6.22-rc7] xfrm beet interfamily support
Date: Tue, 31 Jul 2007 13:14:30 +0200	[thread overview]
Message-ID: <46AF1996.7080401@trash.net> (raw)
In-Reply-To: <200707311408.15231.joakim.koskela@hiit.fi>

Joakim Koskela wrote:
> On Tuesday 31 July 2007 13:51:42 Patrick McHardy wrote:
> 
>>Joakim Koskela wrote:
>>
>>>I'm not sure I really got this. IPv6/IPv4 means IPv6 inner, IPv4 outer,
>>>right? Isn't that called from xfrm4_output_one and subsequently passed
>>>through the right filters as well (as it has a ipv4 header by then)?
>>
>>I think you're right, it uses xfrm4_output. But there's a mismatch
>>in either case, in both cases (IPv4 and IPv6) we first call the
>>POSTROUTING hook for this family, than do the transform (changing
>>the family), then call the OUTPUT hook for the same family. So
>>either the POSTROUTING or the OUTPUT hook is called for the wrong
>>family.
> 
> 
> Ok, so changing int xfrm[46]_output(struct sk_buff*) to use the right PF & 
> hook based on the skb's [current] family should put things through the right 
> hoops, right?


Almost, in xfrm4_output the conditional calling of the hook should
only be done for IPv4 and the IPCB is not valid for IPv6 of course.
Speaking of which, shouldn't the entire cb be zeroed for interfamily
transforms? xfrm4_tunnel_output only clears out the options, and I
think your patch didn't touch it at all ..


  reply	other threads:[~2007-07-31 11:15 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-16 12:06 [PATCH net-2.6.22-rc7] xfrm beet interfamily support Joakim Koskela
2007-07-16 12:56 ` Arnaldo Carvalho de Melo
2007-07-18  9:18   ` David Miller
2007-07-16 18:47 ` Patrick McHardy
2007-07-17 14:30   ` Joakim Koskela
2007-07-17 16:00     ` Patrick McHardy
2007-07-19 14:08       ` Joakim Koskela
2007-07-19 14:46         ` Patrick McHardy
2007-07-19 17:54           ` Joakim Koskela
2007-07-19 19:43             ` Patrick McHardy
2007-07-23 16:19               ` [PATCH net-2.6.22-rc7] xfrm state selection update to use inner addresses Joakim Koskela
2007-07-24 14:31                 ` Patrick McHardy
2007-07-26  7:08                   ` David Miller
2007-07-31 10:39           ` [PATCH net-2.6.22-rc7] xfrm beet interfamily support Joakim Koskela
2007-07-31 10:51             ` Patrick McHardy
2007-07-31 11:08               ` Joakim Koskela
2007-07-31 11:14                 ` Patrick McHardy [this message]
2007-07-31 12:13                   ` Joakim Koskela
2007-08-06  6:49     ` Joakim Koskela
2007-08-06 12:08       ` Patrick McHardy
2007-08-06 13:07         ` Joakim Koskela
2007-08-06 13:21           ` Patrick McHardy
  -- strict thread matches above, loose matches on Subject: below --
2007-07-12  9:25 Joakim Koskela
2007-07-15  1:48 ` David Miller

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=46AF1996.7080401@trash.net \
    --to=kaber@trash.net \
    --cc=davem@davemloft.net \
    --cc=joakim.koskela@hiit.fi \
    --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;
as well as URLs for NNTP newsgroup(s).