Linux Netfilter development
 help / color / mirror / Atom feed
From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Florian Westphal <fw@strlen.de>
Cc: netfilter-devel@vger.kernel.org, Eric Garver <eric@garver.life>
Subject: Re: [PATCH v2 nf] netfilter: conntrack: set icmpv6 redirects as RELATED
Date: Wed, 30 Nov 2022 18:53:43 +0100	[thread overview]
Message-ID: <Y4eYpwY8Wbfh8DkI@salvia> (raw)
In-Reply-To: <Y4eTQg9Fk+9KDizU@salvia>

On Wed, Nov 30, 2022 at 06:30:42PM +0100, Pablo Neira Ayuso wrote:
> On Wed, Nov 23, 2022 at 01:16:39PM +0100, Florian Westphal wrote:
> > icmp conntrack will set icmp redirects as RELATED, but icmpv6 will not
> > do this.
> > 
> > For icmpv6, only icmp errors (code <= 128) are examined for RELATED state.
> > ICMPV6 Redirects are part of neighbour discovery mechanism, those are
> > handled by marking a selected subset (e.g.  neighbour solicitations) as
> > UNTRACKED, but not REDIRECT -- they will thus be flagged as INVALID.
> > 
> > Add minimal support for REDIRECTs.  No parsing of neighbour options is
> > added for simplicity, so this will only check that we have the embeeded
> > original header (ND_OPT_REDIRECT_HDR), and then attempt to do a flow
> > lookup for this tuple.
> > 
> > Also extend the existing test case to cover redirects.
> 
> Applied to nf-next, thanks.

Florian, I am hitting this here:

net/netfilter/nf_conntrack_proto_icmpv6.c: In function ‘nf_conntrack_icmpv6_redirect’:
net/netfilter/nf_conntrack_proto_icmpv6.c:179:56: error: incompatible type for argument 6 of ‘nf_conntrack_inet_error’
  179 |                                        IPPROTO_ICMPV6, outer_daddr);
      |                                                        ^~~~~~~~~~~
      |                                                        |
      |                                                        union nf_inet_addr
In file included from net/netfilter/nf_conntrack_proto_icmpv6.c:21:
./include/net/netfilter/nf_conntrack_l4proto.h:83:49: note: expected ‘union nf_inet_addr *’ but argument is of type ‘union nf_inet_addr’
   83 |                             union nf_inet_addr *outer_daddr);
      |                             ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
net/netfilter/nf_conntrack_proto_icmpv6.c:180:1: error: control reaches end of non-void function [-Werror=return-type]
  180 | }
      | ^


      reply	other threads:[~2022-11-30 17:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-23 12:16 [PATCH v2 nf] netfilter: conntrack: set icmpv6 redirects as RELATED Florian Westphal
2022-11-23 15:00 ` Eric Garver
2022-11-26 10:06 ` kernel test robot
2022-11-30 17:30 ` Pablo Neira Ayuso
2022-11-30 17:53   ` Pablo Neira Ayuso [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=Y4eYpwY8Wbfh8DkI@salvia \
    --to=pablo@netfilter.org \
    --cc=eric@garver.life \
    --cc=fw@strlen.de \
    --cc=netfilter-devel@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