You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-analyzer/dhcpdump/files/dhcpdump-1.8-endianness.patch

13 lines
259 B

--- a/dhcpdump.c
+++ b/dhcpdump.c
@@ -130,7 +130,7 @@
offset += ETHER_HDR_LEN;
// Check for IPv4 packets
- if (eh->ether_type != 8) {
+ if (eh->ether_type != htons(0x0800)) {
printf("Ignored non IPv4 packet: %d\n", eh->ether_type);
return;
}