I think this covers everything but suppressing the message completely.

-- 
--
Ben Hildred
Automation Support Services
--- dhcpdump.c.orig	2017-08-29 11:49:40.000000000 -0600
+++ dhcpdump.c	2017-08-29 12:09:05.000000000 -0600
@@ -132,8 +132,8 @@
 	offset += ETHER_HDR_LEN;
 
 	// Check for IPv4 packets
-	if (eh->ether_type != 8) { 
-		printf("Ignored non IPv4 packet: %d\n", eh->ether_type);
+	if (eh->ether_type != htons(0x80)) { 
+		printf("Ignored non IPv4 packet: %x\n", ntohs(eh->ether_type));
 		return;
 	}
 

Reply via email to