PERFORCE change 141602 for review

Rui Paulo rpaulo at FreeBSD.org
Wed May 14 19:15:07 UTC 2008


http://perforce.freebsd.org/chv.cgi?CH=141602

Change 141602 by rpaulo at 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);
 }
 


More information about the p4-projects mailing list