From: Benoit Boissinot <benoit.boissinot@ens-lyon.org>
To: netdev@vger.kernel.org
Cc: pekkas@netcore.fi, yoshfuji@linux-ipv6.org
Subject: [PATCH 1 of 2] IPv6: only update the lifetime of the relevant temporary address
Date: Wed, 02 Apr 2008 01:09:00 +0200 [thread overview]
Message-ID: <0c33481968e0b6b8efd7.1207091340@pirzuine> (raw)
In-Reply-To: <patchbomb.1207091339@pirzuine>
IPv6: only update the lifetime of the relevant temporary address
When receiving a prefix information from a routeur, only update the lifetimes
of the temporary address associated with that prefix.
Otherwise if one deprecated prefix is advertized, all your temporary addresses
will become deprecated.
Signed-off-by: Benoit Boissinot <benoit.boissinot@ens-lyon.org>
diff -r a3c03e70c69f -r 0c33481968e0 net/ipv6/addrconf.c
--- a/net/ipv6/addrconf.c Wed Apr 02 00:45:29 2008 +0200
+++ b/net/ipv6/addrconf.c Sat Mar 22 00:41:39 2008 +0100
@@ -1831,6 +1831,9 @@
* lifetimes of an existing temporary address
* when processing a Prefix Information Option.
*/
+ if (ifp != ift->ifpub)
+ continue;
+
spin_lock(&ift->lock);
flags = ift->flags;
if (ift->valid_lft > valid_lft &&
next prev parent reply other threads:[~2008-04-01 23:09 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-01 23:08 [PATCH 0 of 2] IPv6: Fix temporary address support (updated) Benoit Boissinot
2008-04-01 23:09 ` Benoit Boissinot [this message]
2008-04-01 23:48 ` [PATCH 1 of 2] IPv6: only update the lifetime of the relevant temporary address YOSHIFUJI Hideaki / 吉藤英明
2008-04-02 7:02 ` David Miller
2008-04-01 23:09 ` [PATCH 2 of 2] IPv6: do not create temporary adresses with too short preferred lifetime Benoit Boissinot
2008-04-01 23:50 ` YOSHIFUJI Hideaki / 吉藤英明
2008-04-02 7:02 ` 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=0c33481968e0b6b8efd7.1207091340@pirzuine \
--to=benoit.boissinot@ens-lyon.org \
--cc=netdev@vger.kernel.org \
--cc=pekkas@netcore.fi \
--cc=yoshfuji@linux-ipv6.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