Gentoo Archives: gentoo-commits

From: "Jason Donenfeld (zx2c4)" <zx2c4@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-analyzer/dhcpdump/files: dhcpdump-1.8-endianness.patch
Date: Mon, 01 Jul 2013 13:44:54
Message-Id: 20130701134447.D2FAE2171D@flycatcher.gentoo.org
1 zx2c4 13/07/01 13:44:47
2
3 Added: dhcpdump-1.8-endianness.patch
4 Log:
5 Fix endianness issues and keyword for mips.
6
7 (Portage version: 2.2.0_alpha179/cvs/Linux x86_64, signed Manifest commit with key A5DE03AE)
8
9 Revision Changes Path
10 1.1 net-analyzer/dhcpdump/files/dhcpdump-1.8-endianness.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/dhcpdump/files/dhcpdump-1.8-endianness.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/dhcpdump/files/dhcpdump-1.8-endianness.patch?rev=1.1&content-type=text/plain
14
15 Index: dhcpdump-1.8-endianness.patch
16 ===================================================================
17 diff -ru dhcpdump-1.8/dhcpdump.c dhcpdump-1.8-modified/dhcpdump.c
18 --- dhcpdump-1.8/dhcpdump.c 2008-06-24 05:26:52.000000000 +0200
19 +++ dhcpdump-1.8-modified/dhcpdump.c 2013-07-01 15:31:04.260609883 +0200
20 @@ -130,7 +130,7 @@
21 offset += ETHER_HDR_LEN;
22
23 // Check for IPv4 packets
24 - if (eh->ether_type != 8) {
25 + if (eh->ether_type != htons(0x0800)) {
26 printf("Ignored non IPv4 packet: %d\n", eh->ether_type);
27 return;
28 }