Subject: tcpdump on le host
To: None <tech-userlevel@netbsd.org>
From: Johan Danielsson <joda@pdc.kth.se>
List: tech-userlevel
Date: 02/15/2001 18:24:46
Does this look right?

/Johan

--- print-bootp.c	2000/10/11 20:23:57	1.7
+++ print-bootp.c	2001/02/15 15:32:53
@@ -351,7 +351,7 @@
 				if (c == 'i')
 					printf("%s", ipaddr_string(&ul));
 				else
-					printf("%u", ul);
+					printf("%u", ntohl(ul));
 				bp += sizeof(ul);
 				size -= sizeof(ul);
 				first = 0;
@@ -364,7 +364,7 @@
 				if (!first)
 					putchar(',');
 				memcpy((char *)&us, (char *)bp, sizeof(us));
-				printf("%d", us);
+				printf("%d", ntohs(us));
 				bp += sizeof(us);
 				size -= sizeof(us);
 				first = 0;