PERFORCE change 110951 for review
Paolo Pisati
piso at FreeBSD.org
Sun Dec 3 08:26:42 PST 2006
http://perforce.freebsd.org/chv.cgi?CH=110951
Change 110951 by piso at 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) {
More information about the p4-projects
mailing list