From owner-svn-src-user@FreeBSD.ORG Thu Nov 21 03:56:05 2013 Return-Path: Delivered-To: svn-src-user@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B55D6836; Thu, 21 Nov 2013 03:56:05 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A5AF72F38; Thu, 21 Nov 2013 03:56:05 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id rAL3u5CZ009095; Thu, 21 Nov 2013 03:56:05 GMT (envelope-from ae@svn.freebsd.org) Received: (from ae@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id rAL3u57G009093; Thu, 21 Nov 2013 03:56:05 GMT (envelope-from ae@svn.freebsd.org) Message-Id: <201311210356.rAL3u57G009093@svn.freebsd.org> From: "Andrey V. Elsukov" Date: Thu, 21 Nov 2013 03:56:05 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r258422 - user/ae/inet6/sys/netinet X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Nov 2013 03:56:05 -0000 Author: ae Date: Thu Nov 21 03:56:05 2013 New Revision: 258422 URL: http://svnweb.freebsd.org/changeset/base/258422 Log: Remove in6_clearscope() calls and unused variable. Modified: user/ae/inet6/sys/netinet/tcp_subr.c Modified: user/ae/inet6/sys/netinet/tcp_subr.c ============================================================================== --- user/ae/inet6/sys/netinet/tcp_subr.c Thu Nov 21 03:40:52 2013 (r258421) +++ user/ae/inet6/sys/netinet/tcp_subr.c Thu Nov 21 03:56:05 2013 (r258422) @@ -1977,7 +1977,6 @@ tcp_signature_compute(struct mbuf *m, in struct tcphdr *th; #ifdef INET6 struct ip6_hdr *ip6; - struct in6_addr in6; char ip6buf[INET6_ADDRSTRLEN]; uint32_t plen; uint16_t nhdr; @@ -2066,12 +2065,10 @@ tcp_signature_compute(struct mbuf *m, in * Note: Upper-Layer Packet Length comes before Next Header. */ case (IPV6_VERSION >> 4): - in6 = ip6->ip6_src; - in6_clearscope(&in6); - MD5Update(&ctx, (char *)&in6, sizeof(struct in6_addr)); - in6 = ip6->ip6_dst; - in6_clearscope(&in6); - MD5Update(&ctx, (char *)&in6, sizeof(struct in6_addr)); + MD5Update(&ctx, (char *)&ip6->ip6_src, + sizeof(struct in6_addr)); + MD5Update(&ctx, (char *)&ip6->ip6_dst, + sizeof(struct in6_addr)); plen = htonl(len + sizeof(struct tcphdr) + optlen); MD5Update(&ctx, (char *)&plen, sizeof(uint32_t)); nhdr = 0;