Date: Tue, 14 Apr 2009 21:07:47 +0000 (UTC) From: Paolo Pisati <piso@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r191078 - user/piso/ipfw/sys/netinet/libalias Message-ID: <200904142107.n3EL7ltl019994@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200904142107.n3EL7ltl019994>