Date: Wed, 14 May 2008 19:20:12 GMT From: Rui Paulo <rpaulo@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 141604 for review Message-ID: <200805141920.m4EJKCbK031215@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=141604 Change 141604 by rpaulo@rpaulo_epsilon on 2008/05/14 19:19:30 linkhdr_headerlen(): fix for cycle stop logic. Affected files ... .. //depot/projects/soc2008/rpaulo-tcpad/linkhdr.c#5 edit Differences ... ==== //depot/projects/soc2008/rpaulo-tcpad/linkhdr.c#5 (text+ko) ==== @@ -23,7 +23,7 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - * $P4: //depot/projects/soc2008/rpaulo-tcpad/linkhdr.c#4 $ + * $P4: //depot/projects/soc2008/rpaulo-tcpad/linkhdr.c#5 $ */ #include <net/ethernet.h> @@ -63,7 +63,7 @@ DPRINTF("dlt = %d\n", dlt); - for (i = 0; linktypes[i].type == -1; i++) { + for (i = 0; linktypes[i].type != -1; i++) { if (linktypes[i].type == dlt) { DPRINTF("hlen = %d\n", linktypes[i].skip); return (linktypes[i].skip);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200805141920.m4EJKCbK031215>