Date: Thu, 24 Oct 2013 00:30:39 +0000 (UTC) From: "Andrey V. Elsukov" <ae@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r257028 - user/ae/inet6/sys/netinet6 Message-ID: <201310240030.r9O0UdqN019199@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ae Date: Thu Oct 24 00:30:38 2013 New Revision: 257028 URL: http://svnweb.freebsd.org/changeset/base/257028 Log: Remove in6_clearscope() calls. Modified: user/ae/inet6/sys/netinet6/send.c Modified: user/ae/inet6/sys/netinet6/send.c ============================================================================== --- user/ae/inet6/sys/netinet6/send.c Thu Oct 24 00:28:51 2013 (r257027) +++ user/ae/inet6/sys/netinet6/send.c Thu Oct 24 00:30:38 2013 (r257028) @@ -259,7 +259,6 @@ send_close(struct socket *so) static int send_input(struct mbuf *m, struct ifnet *ifp, int direction, int msglen __unused) { - struct ip6_hdr *ip6; struct sockaddr_send sendsrc; SEND_LOCK(); @@ -268,15 +267,6 @@ send_input(struct mbuf *m, struct ifnet return (-1); } - /* - * Make sure to clear any possible internally embedded scope before - * passing the packet to user space for SeND cryptographic signature - * validation to succeed. - */ - ip6 = mtod(m, struct ip6_hdr *); - in6_clearscope(&ip6->ip6_src); - in6_clearscope(&ip6->ip6_dst); - bzero(&sendsrc, sizeof(sendsrc)); sendsrc.send_len = sizeof(sendsrc); sendsrc.send_family = AF_INET6;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310240030.r9O0UdqN019199>