From: Eric Dumazet <eric.dumazet@gmail.com>
To: Nick Jones <nick.jones@network-box.com>
Cc: David Miller <davem@davemloft.net>, netdev@vger.kernel.org
Subject: Re: [PATCH net-next v3] ipv6: Allocate unique metrics for icmp6 packets to prevent tainting dst metrics
Date: Sat, 17 Mar 2012 09:36:41 -0700 [thread overview]
Message-ID: <1332002201.19406.25.camel@edumazet-glaptop> (raw)
In-Reply-To: <4F64B203.40307@network-box.com>
On Sat, 2012-03-17 at 23:47 +0800, Nick Jones wrote:
> The generation of an icmp6 packet, targeted to a specific desination
> address, will cause the shared metrics of the ip6_dst and inetpeer
> of that address to be tainted with the hoplimit value 255.
> All packets, icmp6 or otherwise, will have this hoplimit value, and
> if the destination is a router, not even advertisements specifying a
> new hoplimit value will have any effect due to the way
> ip6_dst_hoplimit works.
>
> By allocating a unique metrics array for the icmp6 packet, the shared
> metrics will not be tainted. A ip6_dst flag is added to indicate that
> the metrics for the dst don't belong to the peer, thus are not unique
> and should be freed when the dst is freed.
>
> Signed-off-by: Nick Jones <nick.jones@network-box.com>
> ---
> + }
> + dst_init_metrics(&rt->dst, metrics, 0);
Dont be fooled by 8e2ec639 precedent, third argument is a bool, so
please use 'false' instead of 0
next prev parent reply other threads:[~2012-03-17 16:36 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-15 15:41 [PATCH net-next v2] ipv6: Allocate unique metrics for icmp6 packets to prevent tainting dst metrics Nick Jones
2012-03-17 6:02 ` David Miller
2012-03-17 15:47 ` [PATCH net-next v3] " Nick Jones
2012-03-17 16:36 ` Eric Dumazet [this message]
2012-03-17 17:43 ` [PATCH net-next v4] " Nick Jones
2012-03-19 22:04 ` David Miller
2012-03-20 5:48 ` Nick Jones
2012-03-20 7:10 ` 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=1332002201.19406.25.camel@edumazet-glaptop \
--to=eric.dumazet@gmail.com \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
--cc=nick.jones@network-box.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