diff options
| author | 2015-09-11 07:42:35 +0000 | |
|---|---|---|
| committer | 2015-09-11 07:42:35 +0000 | |
| commit | 2305623bc0ac5e1a4c0818c87cd12528b52bc15c (patch) | |
| tree | c4053288eee736b13aecaee562641c791df664a8 /sys/netinet/tcp_usrreq.c | |
| parent | Ignore the 'rotation lock' button on my Yoga12 (diff) | |
| download | wireguard-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/netinet/tcp_usrreq.c')
| -rw-r--r-- | sys/netinet/tcp_usrreq.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet/tcp_usrreq.c b/sys/netinet/tcp_usrreq.c index 8dc00e67f38..c5388a0e2ed 100644 --- a/sys/netinet/tcp_usrreq.c +++ b/sys/netinet/tcp_usrreq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcp_usrreq.c,v 1.127 2015/08/27 17:10:45 bluhm Exp $ */ +/* $OpenBSD: tcp_usrreq.c,v 1.128 2015/09/11 07:42:35 claudio Exp $ */ /* $NetBSD: tcp_usrreq.c,v 1.20 1996/02/13 23:44:16 christos Exp $ */ /* @@ -794,11 +794,11 @@ tcp_ident(void *oldp, size_t *oldlenp, void *newp, size_t newlen, int dodrop) #ifdef INET6 case AF_INET6: fin6 = (struct sockaddr_in6 *)&tir.faddr; - error = in6_embedscope(&f6, fin6, NULL, NULL); + error = in6_embedscope(&f6, fin6, NULL); if (error) return EINVAL; /*?*/ lin6 = (struct sockaddr_in6 *)&tir.laddr; - error = in6_embedscope(&l6, lin6, NULL, NULL); + error = in6_embedscope(&l6, lin6, NULL); if (error) return EINVAL; /*?*/ break; |
