sync with OpenBSD -current
This commit is contained in:
parent
1bc98b3538
commit
388947454d
30 changed files with 670 additions and 327 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $OpenBSD: in6_pcb.c,v 1.124 2023/06/24 20:54:46 bluhm Exp $ */
|
||||
/* $OpenBSD: in6_pcb.c,v 1.125 2023/11/28 13:23:20 bluhm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
|
||||
|
@ -157,7 +157,8 @@ in6_pcbaddrisavail(struct inpcb *inp, struct sockaddr_in6 *sin6, int wild,
|
|||
|
||||
wild |= INPLOOKUP_IPV6;
|
||||
/* KAME hack: embed scopeid */
|
||||
if (in6_embedscope(&sin6->sin6_addr, sin6, inp) != 0)
|
||||
if (in6_embedscope(&sin6->sin6_addr, sin6,
|
||||
inp->inp_outputopts6, inp->inp_moptions6) != 0)
|
||||
return (EINVAL);
|
||||
/* this must be cleared for ifa_ifwithaddr() */
|
||||
sin6->sin6_scope_id = 0;
|
||||
|
@ -265,8 +266,9 @@ in6_pcbconnect(struct inpcb *inp, struct mbuf *nam)
|
|||
sin6 = &tmp;
|
||||
|
||||
/* KAME hack: embed scopeid */
|
||||
if (in6_embedscope(&sin6->sin6_addr, sin6, inp) != 0)
|
||||
return EINVAL;
|
||||
if (in6_embedscope(&sin6->sin6_addr, sin6,
|
||||
inp->inp_outputopts6, inp->inp_moptions6) != 0)
|
||||
return (EINVAL);
|
||||
/* this must be cleared for ifa_ifwithaddr() */
|
||||
sin6->sin6_scope_id = 0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue