summaryrefslogtreecommitdiff
path: root/sys/net/pipex.c
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2015-09-11 07:42:36 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2015-09-11 07:42:36 +0000
commit2dc7af0e60e4b6fd993a2abf26b985d2f46bb4fa (patch)
treec95ecff414f2e9d7ddf08dbbcc3dd55c9efb43c9 /sys/net/pipex.c
parentfbdb936bb56178d2052c1f3bc736ef7302ed9421 (diff)
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/net/pipex.c')
-rw-r--r--sys/net/pipex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/pipex.c b/sys/net/pipex.c
index 385d4f86ec5..91f19ab712b 100644
--- a/sys/net/pipex.c
+++ b/sys/net/pipex.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pipex.c,v 1.76 2015/09/10 17:52:05 claudio Exp $ */
+/* $OpenBSD: pipex.c,v 1.77 2015/09/11 07:42:35 claudio Exp $ */
/*-
* Copyright (c) 2009 Internet Initiative Japan Inc.
@@ -1976,7 +1976,7 @@ pipex_l2tp_output(struct mbuf *m0, struct pipex_session *session)
ip6->ip6_nxt = IPPROTO_UDP;
ip6->ip6_src = session->local.sin6.sin6_addr;
(void)in6_embedscope(&ip6->ip6_dst,
- &session->peer.sin6, NULL, NULL);
+ &session->peer.sin6, NULL);
/* ip6->ip6_plen will be filled in ip6_output. */
if (ip6_output(m0, NULL, NULL, 0, NULL, NULL, NULL) != 0) {