summaryrefslogtreecommitdiff
path: root/sys/netinet6
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2015-02-09 09:50:01 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2015-02-09 09:50:01 +0000
commit6e73a0631664be2ad21f22732f9fd6968d5001d6 (patch)
tree51261dbc75b35ebbe1d823d82fb6131c7e7302fd /sys/netinet6
parentd527eeecfc6f995c384f16b6f8d33d5dcef3b7ad (diff)
Remove a chunk missed in previous scope ID shuffling creating wrong
states for external traffic through a link-local address. Found the hard way and fix tested by bluhm@.
Diffstat (limited to 'sys/netinet6')
-rw-r--r--sys/netinet6/ip6_input.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/sys/netinet6/ip6_input.c b/sys/netinet6/ip6_input.c
index a386594843c..522d579ca24 100644
--- a/sys/netinet6/ip6_input.c
+++ b/sys/netinet6/ip6_input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip6_input.c,v 1.136 2015/02/05 01:10:57 mpi Exp $ */
+/* $OpenBSD: ip6_input.c,v 1.137 2015/02/09 09:50:00 mpi Exp $ */
/* $KAME: ip6_input.c,v 1.188 2001/03/29 05:34:31 itojun Exp $ */
/*
@@ -335,18 +335,6 @@ ip6_input(struct mbuf *m)
}
}
- /*
- * If the packet has been received on a loopback interface it
- * can be destinated to any local address, not necessarily to
- * an address configured on `ifp'.
- */
- if ((ifp->if_flags & IFF_LOOPBACK) == 0) {
- if (IN6_IS_SCOPE_EMBED(&ip6->ip6_src))
- ip6->ip6_src.s6_addr16[1] = htons(ifp->if_index);
- if (IN6_IS_SCOPE_EMBED(&ip6->ip6_dst))
- ip6->ip6_dst.s6_addr16[1] = htons(ifp->if_index);
- }
-
#if NPF > 0
/*
* Packet filter