Date: Wed, 26 Mar 2008 00:19:18 GMT From: Paolo Pisati <piso@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 138571 for review Message-ID: <200803260019.m2Q0JIJ1034546@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=138571 Change 138571 by piso@piso_newluxor on 2008/03/26 00:18:17 Adapt ipfw_nat to the new libalias API. Affected files ... .. //depot/projects/soc2005/libalias/sys/netinet/ip_fw_nat.c#2 edit Differences ... ==== //depot/projects/soc2005/libalias/sys/netinet/ip_fw_nat.c#2 (text+ko) ==== @@ -253,7 +253,7 @@ ldt = 0; retval = 0; - if ((mcl = m_megapullup(m, m->m_pkthdr.len)) == + if ((mcl = m_pullup(m, sizeof(struct ip))) == NULL) goto badnat; ip = mtod(mcl, struct ip *); @@ -317,10 +317,10 @@ c = mtod(mcl, char *); if (args->oif == NULL) - retval = LibAliasIn(t->lib, c, + retval = LibAliasIn(t->lib, &mcl, MCLBYTES); else - retval = LibAliasOut(t->lib, c, + retval = LibAliasOut(t->lib, &mcl, MCLBYTES); if (retval != PKT_ALIAS_OK) { /* XXX - should i add some logging? */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200803260019.m2Q0JIJ1034546>