Re: radvd unaligned trap errors

2007-12-13 Thread Bob Tracy
Steve Langasek wrote:
> On Wed, Dec 12, 2007 at 04:23:52PM -0600, Bob Tracy wrote:
> > (radvd unaligned trap errors and workaround)
> 
> Could you maybe submit this as a bug report on the radvd package?

Done.  Bug ID assignment pending...

--Bob


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: radvd unaligned trap errors

2007-12-12 Thread Steve Langasek
Hi Bob,

On Wed, Dec 12, 2007 at 04:23:52PM -0600, Bob Tracy wrote:
> Steve et. al.,

> Many moons ago I mentioned seeing a lot of unaligned traps when running
> radvd.  I finally tracked down the cause...  My workaround isn't the
> proper fix, but at least illustrates what the problem is.  Anyway, the
> trap occurs in the vicinity of line 299 in send.c:send_ra():

> cmsg->cmsg_len   = CMSG_LEN(sizeof(struct in6_pktinfo));

> and the workaround on the Alpha is to force 8-byte alignment (sizeof(size_t),
> which is the size of the cmsg_len structure member) where chdr is declared
> near the beginning of send_ra():

> /* char chdr[CMSG_SPACE(sizeof(struct in6_pktinfo))]; */
>char __attribute__((aligned(8))) chdr[CMSG_SPACE(sizeof(struct 
> in6_pktinfo))];

Could you maybe submit this as a bug report on the radvd package?

Cheers,
-- 
Steve Langasek   Give me a lever long enough and a Free OS
Debian Developer   to set it on, and I can move the world.
Ubuntu Developerhttp://www.debian.org/
[EMAIL PROTECTED] [EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



radvd unaligned trap errors

2007-12-12 Thread Bob Tracy
Steve et. al.,

Many moons ago I mentioned seeing a lot of unaligned traps when running
radvd.  I finally tracked down the cause...  My workaround isn't the
proper fix, but at least illustrates what the problem is.  Anyway, the
trap occurs in the vicinity of line 299 in send.c:send_ra():

cmsg->cmsg_len   = CMSG_LEN(sizeof(struct in6_pktinfo));

and the workaround on the Alpha is to force 8-byte alignment (sizeof(size_t),
which is the size of the cmsg_len structure member) where chdr is declared
near the beginning of send_ra():

/* char chdr[CMSG_SPACE(sizeof(struct in6_pktinfo))]; */
   char __attribute__((aligned(8))) chdr[CMSG_SPACE(sizeof(struct 
in6_pktinfo))];

-- 

Bob Tracy  |  "They couldn't hit an elephant at this dist- "
[EMAIL PROTECTED]   |   - Last words of Union General John Sedgwick,
   |  Battle of Spotsylvania Court House, U.S. Civil War



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]