summaryrefslogtreecommitdiffstats
path: root/sys/netinet6/raw_ip6.c
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2008-07-08 18:41:36 +0000
committerbz <bz@FreeBSD.org>2008-07-08 18:41:36 +0000
commit13896f2e515ce1d974657ebcd1f50dad4c106a06 (patch)
treecc4ffd912f153cf70830eb1ad609788e2d3190c8 /sys/netinet6/raw_ip6.c
parent2d2c0669861c1461f6afa4e816ec9902ac23f402 (diff)
downloadFreeBSD-src-13896f2e515ce1d974657ebcd1f50dad4c106a06.zip
FreeBSD-src-13896f2e515ce1d974657ebcd1f50dad4c106a06.tar.gz
Change the parameters to in6_selectsrc():
- pass in the inp instead of both in6p_moptions and laddr. - pass in cred for upcoming prison checks. Reviewed by: rwatson
Diffstat (limited to 'sys/netinet6/raw_ip6.c')
-rw-r--r--sys/netinet6/raw_ip6.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/netinet6/raw_ip6.c b/sys/netinet6/raw_ip6.c
index 85f9f10..f9a7993 100644
--- a/sys/netinet6/raw_ip6.c
+++ b/sys/netinet6/raw_ip6.c
@@ -387,8 +387,8 @@ rip6_output(m, va_alist)
/*
* Source address selection.
*/
- if ((in6a = in6_selectsrc(dstsock, optp, in6p->in6p_moptions, NULL,
- &in6p->in6p_laddr, &oifp, &error)) == NULL) {
+ if ((in6a = in6_selectsrc(dstsock, optp, in6p, NULL, so->so_cred,
+ &oifp, &error)) == NULL) {
if (error == 0)
error = EADDRNOTAVAIL;
goto bad;
@@ -712,8 +712,8 @@ rip6_connect(struct socket *so, struct sockaddr *nam, struct thread *td)
INP_WLOCK(inp);
/* Source address selection. XXX: need pcblookup? */
in6a = in6_selectsrc(addr, inp->in6p_outputopts,
- inp->in6p_moptions, NULL,
- &inp->in6p_laddr, &ifp, &error);
+ inp, NULL, so->so_cred,
+ &ifp, &error);
if (in6a == NULL) {
INP_WUNLOCK(inp);
INP_INFO_WUNLOCK(&ripcbinfo);
OpenPOWER on IntegriCloud