Date: Wed, 14 May 2008 19:15:06 GMT From: Rui Paulo <rpaulo@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 141602 for review Message-ID: <200805141915.m4EJF6Nn031025@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=141602 Change 141602 by rpaulo@rpaulo_epsilon on 2008/05/14 19:14:36 Add debugging printfs. Affected files ... .. //depot/projects/soc2008/rpaulo-tcpad/linkhdr.c#3 edit Differences ... ==== //depot/projects/soc2008/rpaulo-tcpad/linkhdr.c#3 (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#2 $ + * $P4: //depot/projects/soc2008/rpaulo-tcpad/linkhdr.c#3 $ */ #include <net/ethernet.h> @@ -60,11 +60,16 @@ { int i; + DPRINTF("dlt = %d\n", dlt); + for (i = 0; linktypes[i].type == -1; i++) { - if (linktypes[i].type == dlt) + if (linktypes[i].type == dlt) { + DPRINTF("hlen = %d\n", linktypes[i].skip); return (linktypes[i].skip); } + DPRINTF("dlt not found\n"); + return (-1); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200805141915.m4EJF6Nn031025>