aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/addrconf.c
diff options
context:
space:
mode:
authorYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>2008-03-03 07:44:34 -0500
committerYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>2008-03-04 01:18:23 -0500
commit5e5f3f0f801321078c897a5de0b4b4304f234da0 (patch)
tree58e6b37134328183eb3c0a49852c52c0368da21c /net/ipv6/addrconf.c
parent8082c37cdc31fb0ed178d9d706bf7568ada0edd9 (diff)
[IPV6] ADDRCONF: Convert ipv6_get_saddr() to ipv6_dev_get_saddr().
Since most users of ipv6_get_saddr() pass non-NULL as dst argument, use ipv6_dev_get_saddr() directly. Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Diffstat (limited to 'net/ipv6/addrconf.c')
-rw-r--r--net/ipv6/addrconf.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c
index 18e3a9825d81..9b3a2d0e4269 100644
--- a/net/ipv6/addrconf.c
+++ b/net/ipv6/addrconf.c
@@ -1167,14 +1167,7 @@ record_it:
1167 return 0; 1167 return 0;
1168} 1168}
1169 1169
1170 1170EXPORT_SYMBOL(ipv6_dev_get_saddr);
1171int ipv6_get_saddr(struct dst_entry *dst,
1172 struct in6_addr *daddr, struct in6_addr *saddr)
1173{
1174 return ipv6_dev_get_saddr(dst ? ip6_dst_idev(dst)->dev : NULL, daddr, saddr);
1175}
1176
1177EXPORT_SYMBOL(ipv6_get_saddr);
1178 1171
1179int ipv6_get_lladdr(struct net_device *dev, struct in6_addr *addr, 1172int ipv6_get_lladdr(struct net_device *dev, struct in6_addr *addr,
1180 unsigned char banned_flags) 1173 unsigned char banned_flags)