Re: ia64/81284: Unaligned Reference with pf on 5.4/IA64

2005-06-16 Thread John-Mark Gurney
Daniel Hartmeier wrote this message on Thu, Jun 16, 2005 at 00:34 +0200: > So, are you really sure we should do differently in pf, instead of > looking for a bridge problem, where bridge constructs an mbuf with the > IP header not properly aligned? > > I.e. if the IP header is properly aligned wit

Re: ia64/81284: Unaligned Reference with pf on 5.4/IA64

2005-06-16 Thread Bruce Evans
On Thu, 16 Jun 2005, Daniel Hartmeier wrote: 'packed', as I understand it, prohibits the compiler from inserting any padding anywhere in the struct. That is, it guarantees that the total size of a struct object equals the sum of the sizes of its members. It also requires the complier to genera

Re: ia64/81284: Unaligned Reference with pf on 5.4/IA64

2005-06-16 Thread Bruce Evans
On Wed, 15 Jun 2005, Marcel Moolenaar wrote: On Jun 15, 2005, at 1:42 PM, Daniel Hartmeier wrote: If I understand the problem correctly, there is an underlying network-generic question I'd like to ask here. When a function in the kernel gets passed a struct ip pointer, can it assume that the s

Re: ia64/81284: Unaligned Reference with pf on 5.4/IA64

2005-06-15 Thread Sam Leffler
Daniel Hartmeier wrote: On Mon, Jun 13, 2005 at 09:23:50PM +, Marcel Moolenaar wrote: Synopsis: Unaligned Reference with pf on 5.4/IA64 Responsible-Changed-From-To: freebsd-net->freebsd-pf Responsible-Changed-By: marcel Responsible-Changed-When: Mon Jun 13 21:22:54 GMT 2005 Responsible-Ch

Re: ia64/81284: Unaligned Reference with pf on 5.4/IA64

2005-06-15 Thread Marcel Moolenaar
On Jun 15, 2005, at 3:34 PM, Daniel Hartmeier wrote: On Wed, Jun 15, 2005 at 02:23:24PM -0700, Marcel Moolenaar wrote: That entirely depends. If a struct ip pointer is constructed without any form of casting, then one can assume that alignment is guaranteed. The compiler guarantees to do so,

Re: ia64/81284: Unaligned Reference with pf on 5.4/IA64

2005-06-15 Thread Daniel Hartmeier
On Wed, Jun 15, 2005 at 02:23:24PM -0700, Marcel Moolenaar wrote: > That entirely depends. If a struct ip pointer is constructed without > any form of casting, then one can assume that alignment is guaranteed. > The compiler guarantees to do so, except of course in this case: > the structure is de

Re: ia64/81284: Unaligned Reference with pf on 5.4/IA64

2005-06-15 Thread Marcel Moolenaar
On Jun 15, 2005, at 1:42 PM, Daniel Hartmeier wrote: On Mon, Jun 13, 2005 at 09:23:50PM +, Marcel Moolenaar wrote: Synopsis: Unaligned Reference with pf on 5.4/IA64 Responsible-Changed-From-To: freebsd-net->freebsd-pf Responsible-Changed-By: marcel Responsible-Changed-When: Mon Jun 13 21:

Re: ia64/81284: Unaligned Reference with pf on 5.4/IA64

2005-06-15 Thread Daniel Hartmeier
On Mon, Jun 13, 2005 at 09:23:50PM +, Marcel Moolenaar wrote: > Synopsis: Unaligned Reference with pf on 5.4/IA64 > > Responsible-Changed-From-To: freebsd-net->freebsd-pf > Responsible-Changed-By: marcel > Responsible-Changed-When: Mon Jun 13 21:22:54 GMT 2005 > Responsible-Changed-Why: > Mo

Re: ia64/81284: Unaligned Reference with pf on 5.4/IA64

2005-06-13 Thread Marcel Moolenaar
Synopsis: Unaligned Reference with pf on 5.4/IA64 Responsible-Changed-From-To: freebsd-net->freebsd-pf Responsible-Changed-By: marcel Responsible-Changed-When: Mon Jun 13 21:22:54 GMT 2005 Responsible-Changed-Why: Move to a more pf-focussed responsible party. http://www.freebsd.org/cgi/query-pr.

Re: ia64/81284: Unaligned Reference with pf on 5.4/IA64

2005-05-24 Thread Marcel Moolenaar
The following reply was made to PR ia64/81284; it has been noted by GNATS. From: Marcel Moolenaar <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Cc: Subject: Re: ia64/81284: Unaligned Reference with pf on 5.4/IA64 Date: Tue, 24 May 2005 19:45:37 -0700 The problem is not specific to ia64.

Re: ia64/81284: Unaligned Reference with pf on 5.4/IA64

2005-05-24 Thread Marcel Moolenaar
Synopsis: Unaligned Reference with pf on 5.4/IA64 Responsible-Changed-From-To: freebsd-ia64->freebsd-net Responsible-Changed-By: marcel Responsible-Changed-When: Wed May 25 02:27:47 GMT 2005 Responsible-Changed-Why: http://www.freebsd.org/cgi/query-pr.cgi?pr=81284 __