Package: radvd
Version: 1:1.0-1
Severity: normal

Running radvd on an Alpha PWS 433au causes alignment traps with error 
messages appearing on both the console and in syslog.  The reported
address is consistent, and I was able to track down the cause.  The
workaround below is not a proper fix, but will serve to illustrate the
problem.

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))];

Note that it's possible this is really a compiler quirk of some kind,
because a quick reading of the CMSG_SPACE() macro implies that some
attention is being paid to possible alignment issues.  Compiler version
locally is gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21).

-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: alpha
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.24-rc5
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages radvd depends on:
ii  adduser                       3.102      Add and remove users and groups
ii  libc6.1                       2.6-2      GNU C Library: Shared libraries

radvd recommends no packages.

-- no debconf information



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

Reply via email to