Date: Mon, 20 Apr 2015 20:36:10 +1200 From: Nathan Ward <freebsd@daork.net> To: Adrian Chadd <adrian@freebsd.org> Cc: "=?utf-8?Q?freebsd-mips=40freebsd.org?=" <freebsd-mips@freebsd.org> Subject: Re: Address error trap in ng_netflow on MIPS Message-ID: <etPan.5534ba7a.2ae8944a.11e@brooklyn.local> In-Reply-To: <CAJ-VmomgXAqUiLXhJohNdYRgOscP3mfcn56ewsQceLpvfLDjJw@mail.gmail.com> References: <etPan.55349b99.19495cff.11e@brooklyn.local> <CAJ-VmomgXAqUiLXhJohNdYRgOscP3mfcn56ewsQceLpvfLDjJw@mail.gmail.com>
index | next in thread | previous in thread | raw e-mail
On 20 April 2015 at 18:27:31, Adrian Chadd (adrian@freebsd.org(mailto:adrian@freebsd.org)) wrote: > Hi! Hey :-) > The problem is that the frame is unaligned and MIPS doesn't do > unaligned accesses for you. > > So yes, you either replace them with a memcpy of the header into > aligned memory first, or you modify everything to use macros/inlines > that treat the data as a char array (1 byte aligned) and do char > accesses to get to it. OK, I’ll look in to this, memory alignment isn’t something I know intuitively, so, reading time. Any insight in to why this only happens when trying to transmit a DHCP reply packet? This is quite odd to me, given other packets I’ve tried work fine, and a DHCP reply is unicast, so is nothing special. -- Nathan Wardhelp
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?etPan.5534ba7a.2ae8944a.11e>
