summaryrefslogtreecommitdiffstats
path: root/sys/netinet6/raw_ip6.c
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2015-09-11 07:42:35 +0000
committerclaudio <claudio@openbsd.org>2015-09-11 07:42:35 +0000
commit2305623bc0ac5e1a4c0818c87cd12528b52bc15c (patch)
treec4053288eee736b13aecaee562641c791df664a8 /sys/netinet6/raw_ip6.c
parentIgnore the 'rotation lock' button on my Yoga12 (diff)
downloadwireguard-openbsd-2305623bc0ac5e1a4c0818c87cd12528b52bc15c.tar.xz
wireguard-openbsd-2305623bc0ac5e1a4c0818c87cd12528b52bc15c.zip
in6_embedscope() needs to lose some weight. Remove the last argument.
In all but two calls NULL is passed and in the other 2 cases the ifp is only used to maybe feed it to in6_selecthlim() to select the hoplimit for the link. Since in6_embedscope() only works on link-local addresses it does not matter what hop limit we select since the destination is directly reachable. OK florian@ mpi@
Diffstat (limited to 'sys/netinet6/raw_ip6.c')
-rw-r--r--sys/netinet6/raw_ip6.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet6/raw_ip6.c b/sys/netinet6/raw_ip6.c
index f27ae94e8b9..6f337022c08 100644
--- a/sys/netinet6/raw_ip6.c
+++ b/sys/netinet6/raw_ip6.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: raw_ip6.c,v 1.82 2015/09/10 17:52:05 claudio Exp $ */
+/* $OpenBSD: raw_ip6.c,v 1.83 2015/09/11 07:42:35 claudio Exp $ */
/* $KAME: raw_ip6.c,v 1.69 2001/03/04 15:55:44 itojun Exp $ */
/*
@@ -402,7 +402,7 @@ rip6_output(struct mbuf *m, ...)
/* KAME hack: embed scopeid */
origoptp = in6p->inp_outputopts6;
in6p->inp_outputopts6 = optp;
- if (in6_embedscope(&ip6->ip6_dst, dstsock, in6p, &oifp) != 0) {
+ if (in6_embedscope(&ip6->ip6_dst, dstsock, in6p) != 0) {
error = EINVAL;
goto bad;
}