From owner-svn-src-head@FreeBSD.ORG Mon Oct 29 20:42:48 2012 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DD8A54FB; Mon, 29 Oct 2012 20:42:48 +0000 (UTC) (envelope-from tuexen@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id C4A338FC12; Mon, 29 Oct 2012 20:42:48 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q9TKgmfV040406; Mon, 29 Oct 2012 20:42:48 GMT (envelope-from tuexen@svn.freebsd.org) Received: (from tuexen@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q9TKgmY5040403; Mon, 29 Oct 2012 20:42:48 GMT (envelope-from tuexen@svn.freebsd.org) Message-Id: <201210292042.q9TKgmY5040403@svn.freebsd.org> From: Michael Tuexen Date: Mon, 29 Oct 2012 20:42:48 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r242325 - head/sys/netinet X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Oct 2012 20:42:48 -0000 Author: tuexen Date: Mon Oct 29 20:42:48 2012 New Revision: 242325 URL: http://svn.freebsd.org/changeset/base/242325 Log: Use ntohs() and htons() in correct order. However, this doesn't change functionality. Modified: head/sys/netinet/sctputil.c Modified: head/sys/netinet/sctputil.c ============================================================================== --- head/sys/netinet/sctputil.c Mon Oct 29 18:06:09 2012 (r242324) +++ head/sys/netinet/sctputil.c Mon Oct 29 20:42:48 2012 (r242325) @@ -6821,7 +6821,7 @@ sctp_recv_udp_tunneled_packet(struct mbu switch (iph->ip_v) { #ifdef INET case IPVERSION: - iph->ip_len = ntohs(htons(iph->ip_len) - sizeof(struct udphdr)); + iph->ip_len = htons(ntohs(iph->ip_len) - sizeof(struct udphdr)); sctp_input_with_port(m, off, port); break; #endif