From owner-svn-src-user@FreeBSD.ORG Tue Apr 14 21:07:47 2009 Return-Path: Delivered-To: svn-src-user@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E7793106566B; Tue, 14 Apr 2009 21:07:47 +0000 (UTC) (envelope-from piso@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id D74378FC13; Tue, 14 Apr 2009 21:07:47 +0000 (UTC) (envelope-from piso@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n3EL7lb9019995; Tue, 14 Apr 2009 21:07:47 GMT (envelope-from piso@svn.freebsd.org) Received: (from piso@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n3EL7ltl019994; Tue, 14 Apr 2009 21:07:47 GMT (envelope-from piso@svn.freebsd.org) Message-Id: <200904142107.n3EL7ltl019994@svn.freebsd.org> From: Paolo Pisati Date: Tue, 14 Apr 2009 21:07:47 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r191078 - user/piso/ipfw/sys/netinet/libalias X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.5 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: Tue, 14 Apr 2009 21:07:48 -0000 Author: piso Date: Tue Apr 14 21:07:47 2009 New Revision: 191078 URL: http://svn.freebsd.org/changeset/base/191078 Log: Correctly calculate packet size. Modified: user/piso/ipfw/sys/netinet/libalias/alias_mod.c Modified: user/piso/ipfw/sys/netinet/libalias/alias_mod.c ============================================================================== --- user/piso/ipfw/sys/netinet/libalias/alias_mod.c Tue Apr 14 20:51:58 2009 (r191077) +++ user/piso/ipfw/sys/netinet/libalias/alias_mod.c Tue Apr 14 21:07:47 2009 (r191078) @@ -238,7 +238,7 @@ find_handler(int8_t dir, int8_t proto, s if (p->legacy) { m_copydata(*ptr, 0, m_length(*ptr, NULL), la->buf); error = p->protohandler(la, NULL, ad); - m_copyback(*ptr, 0, ((struct ip *)la->buf)->ip_len, + m_copyback(*ptr, 0, ntohs(((struct ip *)la->buf)->ip_len), la->buf); break; }