Date: Sun, 3 Dec 2006 16:26:41 GMT From: Paolo Pisati <piso@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 110951 for review Message-ID: <200612031626.kB3GQfHs026238@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=110951 Change 110951 by piso@piso_newluxor on 2006/12/03 16:26:33 Cosmetic/typos. Affected files ... .. //depot/projects/soc2005/libalias/sys/netinet/libalias/alias.c#23 edit Differences ... ==== //depot/projects/soc2005/libalias/sys/netinet/libalias/alias.c#23 (text+ko) ==== @@ -1623,17 +1623,16 @@ #ifdef _KERNEL /* - * m_megapullup() function is a big hack (only used in ng_nat and ipfw+nat). + * m_megapullup() - this function is a big hack. + * Thankfully, it's only used in ng_nat and ipfw+nat. + * + * It allocates an mbuf with cluster and copies the whole chain into cluster, + * so that it is all contiguous and the whole packet can be accessed via a + * plain (char *) pointer. This is required, because libalias doesn't know + * how to handle mbuf chains. * - * It allocates an mbuf with cluster and copies the whole - * chain into cluster, so that it is all contigous and the - * whole packet can be accessed via char pointer. - * This is required, because libalias doesn't have idea - * about mbufs. - * - * On success, m_megapullup returns an mbuf with cluster - * containing the input packet, on failure NULL. - * In both cases, the input packet is consumed. + * On success, m_megapullup returns an mbuf with cluster containing the input + * packet, on failure NULL. In both cases, the input packet is consumed. */ struct mbuf * m_megapullup(struct mbuf *m, int len) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200612031626.kB3GQfHs026238>