From: Yang Hongyang <yanghy@cn.fujitsu.com>
To: David Miller <davem@davemloft.net>
Cc: "netdev@vger.kernel.org" <netdev@vger.kernel.org>,
yoshfuji@linux-ipv6.org
Subject: [PATCH]ipv6:use ipv6_addr_type instead of __ipv6_addr_type
Date: Thu, 07 May 2009 15:47:38 +0800 [thread overview]
Message-ID: <4A02921A.1090200@cn.fujitsu.com> (raw)
Although the function of these two functions are the same,we should use the
encapsulation function of __ipv6_addr_type
Signed-off-by: Yang Hongyang<yanghy@cn.fujitsu.com>
---
net/ipv6/addrconf.c | 4 ++--
net/ipv6/datagram.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c
index a8218bc..01b7a83 100644
--- a/net/ipv6/addrconf.c
+++ b/net/ipv6/addrconf.c
@@ -1126,7 +1126,7 @@ int ipv6_dev_get_saddr(struct net *net, struct net_device *dst_dev,
struct net_device *dev;
int dst_type;
- dst_type = __ipv6_addr_type(daddr);
+ dst_type = ipv6_addr_type(daddr);
dst.addr = daddr;
dst.ifindex = dst_dev ? dst_dev->ifindex : 0;
dst.scope = __ipv6_addr_src_scope(dst_type);
@@ -1181,7 +1181,7 @@ int ipv6_dev_get_saddr(struct net *net, struct net_device *dst_dev,
(!(score->ifa->flags & IFA_F_OPTIMISTIC)))
continue;
- score->addr_type = __ipv6_addr_type(&score->ifa->addr);
+ score->addr_type = ipv6_addr_type(&score->ifa->addr);
if (unlikely(score->addr_type == IPV6_ADDR_ANY ||
score->addr_type & IPV6_ADDR_MULTICAST)) {
diff --git a/net/ipv6/datagram.c b/net/ipv6/datagram.c
index e2bdc6d..7ea5c77 100644
--- a/net/ipv6/datagram.c
+++ b/net/ipv6/datagram.c
@@ -537,7 +537,7 @@ int datagram_send_ctl(struct net *net,
fl->oif = src_info->ipi6_ifindex;
}
- addr_type = __ipv6_addr_type(&src_info->ipi6_addr);
+ addr_type = ipv6_addr_type(&src_info->ipi6_addr);
if (fl->oif) {
dev = dev_get_by_index(net, fl->oif);
--
1.6.0.3
--
Regards
Yang Hongyang
next reply other threads:[~2009-05-07 7:46 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-07 7:47 Yang Hongyang [this message]
2009-05-07 21:59 ` [PATCH]ipv6:use ipv6_addr_type instead of __ipv6_addr_type David Miller
2009-05-08 1:18 ` Yang Hongyang
2009-05-08 7:44 ` David Miller
2009-05-08 7:48 ` David Miller
2009-05-08 8:18 ` Yang Hongyang
2009-05-08 8:13 ` Yang Hongyang
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=4A02921A.1090200@cn.fujitsu.com \
--to=yanghy@cn.fujitsu.com \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.