Date: Mon, 06 Jul 2015 21:13:45 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 201382] net/dhcprelay: Does not work on big-endian machines Message-ID: <bug-201382-13@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=201382 Bug ID: 201382 Summary: net/dhcprelay: Does not work on big-endian machines Product: Ports & Packages Version: Latest Hardware: mips OS: Any Status: New Severity: Affects Some People Priority: --- Component: Individual Port(s) Assignee: freebsd-ports-bugs@FreeBSD.org Reporter: kp@freebsd.org CC: edwin@mavetju.org, freebsd-mips@FreeBSD.org Flags: maintainer-feedback?(edwin@mavetju.org) CC: edwin@mavetju.org, freebsd-mips@FreeBSD.org Created attachment 158434 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=158434&action=edit dhcprelay patch net/dhcprelay doesn't work on big-endian machines. In pcap_callback() it checks if the received ethernet frame contains an IP packet as follows: "eh->ether_type!=8". That's correct on a little-endian system, but not on a big-endian one. The attached patch fixes the issue. -- You are receiving this mail because: You are the assignee for the bug.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-201382-13>