From: "YOSHIFUJI Hideaki / 吉藤英明" <yoshfuji@linux-ipv6.org>
To: linux-kernel@vger.kernel.org, netdev@oss.sgi.com
Cc: davem@redhat.com, kuznet@ms2.inr.ac.ru, usagi@linux-ipv6.org
Subject: [PATCH] IPv6: use RFC2553 constant
Date: Sun, 23 Mar 2003 01:35:32 +0900 (JST) [thread overview]
Message-ID: <20030323.013532.24422763.yoshfuji@linux-ipv6.org> (raw)
Hello.
Use RFC2553 constant variable.
Patch is for linux-2.5.65 + ChangeSet 1.1188 and depends on my
use "const" qualifier patch.
Thanks in advance.
Index: net/ipv6/addrconf.c
===================================================================
RCS file: /cvsroot/usagi/usagi-backport/linux25/net/ipv6/addrconf.c,v
retrieving revision 1.1.1.8.4.2
retrieving revision 1.1.1.8.4.3
diff -u -r1.1.1.8.4.2 -r1.1.1.8.4.3
--- net/ipv6/addrconf.c 22 Mar 2003 15:01:28 -0000 1.1.1.8.4.2
+++ net/ipv6/addrconf.c 22 Mar 2003 15:16:50 -0000 1.1.1.8.4.3
@@ -1646,7 +1646,6 @@
static void init_loopback(struct net_device *dev)
{
- struct in6_addr addr;
struct inet6_dev *idev;
struct inet6_ifaddr * ifp;
@@ -1654,15 +1653,12 @@
ASSERT_RTNL();
- memset(&addr, 0, sizeof(struct in6_addr));
- addr.s6_addr[15] = 1;
-
if ((idev = ipv6_find_idev(dev)) == NULL) {
printk(KERN_DEBUG "init loopback: add_dev failed\n");
return;
}
- ifp = ipv6_add_addr(idev, &addr, 128, IFA_HOST, IFA_F_PERMANENT);
+ ifp = ipv6_add_addr(idev, &in6addr_loopback, 128, IFA_HOST, IFA_F_PERMANENT);
if (ifp) {
spin_lock_bh(&ifp->lock);
ifp->flags &= ~IFA_F_TENTATIVE;
--
Hideaki YOSHIFUJI @ USAGI Project <yoshfuji@linux-ipv6.org>
GPG FP: 9022 65EB 1ECF 3AD1 0BDF 80D8 4807 F894 E062 0EEA
next reply other threads:[~2003-03-22 16:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-22 16:35 YOSHIFUJI Hideaki / 吉藤英明 [this message]
2003-03-24 5:40 ` David S. 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=20030323.013532.24422763.yoshfuji@linux-ipv6.org \
--to=yoshfuji@linux-ipv6.org \
--cc=davem@redhat.com \
--cc=kuznet@ms2.inr.ac.ru \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@oss.sgi.com \
--cc=usagi@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
all inboxes | Powered by JetHome®