svn commit: r257028 - user/ae/inet6/sys/netinet6

Andrey V. Elsukov ae at FreeBSD.org
Thu Oct 24 00:30:39 UTC 2013


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;


More information about the svn-src-user mailing list