ctlinput handling must look at ip6_src, not ip6_dst.

(this makes path mtu handling wrong)
This commit is contained in:
itojun 1999-08-25 12:38:14 +00:00
parent cb55d0c1ac
commit d48c55f4f0
2 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: tcp_subr.c,v 1.76 1999/08/09 10:55:29 itojun Exp $ */
/* $NetBSD: tcp_subr.c,v 1.77 1999/08/25 12:38:14 itojun Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@ -1080,7 +1080,7 @@ tcp6_ctlinput(cmd, sa, ip6, m, off)
struct in6_addr s;
/* translate addresses into internal form */
memcpy(&s, &ip6->ip6_dst, sizeof(s));
memcpy(&s, &ip6->ip6_src, sizeof(s));
if (IN6_IS_ADDR_LINKLOCAL(&s))
s.s6_addr16[1] = htons(m->m_pkthdr.rcvif->if_index);

View File

@ -1,4 +1,4 @@
/* $NetBSD: udp6_usrreq.c,v 1.11 1999/08/13 10:57:05 itojun Exp $ */
/* $NetBSD: udp6_usrreq.c,v 1.12 1999/08/25 12:38:14 itojun Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@ -478,7 +478,7 @@ udp6_ctlinput(cmd, sa, ip6, m, off)
struct in6_addr s;
/* translate addresses into internal form */
memcpy(&s, &ip6->ip6_dst, sizeof(s));
memcpy(&s, &ip6->ip6_src, sizeof(s));
if (IN6_IS_ADDR_LINKLOCAL(&s))
s.s6_addr16[1] = htons(m->m_pkthdr.rcvif->if_index);