Subject: bin/8179: 64bit align issue in routing socket
To: None <gnats-bugs@gnats.netbsd.org>
From: None <itojun@itojun.org>
List: netbsd-bugs
Date: 08/09/1999 06:50:55
>Number: 8179
>Category: bin
>Synopsis: 64bit align issue in routing socket
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: bin-bug-people (Utility Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Aug 9 06:50:00 1999
>Last-Modified:
>Originator: jun-ichiro itojun hagino
>Organization:
kame project
>Release: NetBSD-current from cvs repository
>Environment:
NetBSD turmeric.itojun.org 1.4J NetBSD 1.4J (TURMERIC.v6) #109: Sun Aug 8 21:46:41 PDT 1999 itojun@turmeric.itojun.org:/usr/home/itojun/NetBSD2/src/sys/arch/i386/compile/TURMERIC.v6 i386
>Description:
From: toshii@alles.or.jp
src/sbin/route.c uses 4-byte alignment (u_int32_t) for routing socket.
however, src/sys/net/rtsock.c uses 8-byte alignment (long).
this causes alignment problem when we do routing socket operation on
Alpha boxes.
>How-To-Repeat:
# route add -inet6 3fff:dead:beef:1:: fe80:d::6:2bff:fe00:2385
writing to routing socket: Network is unreachable
add net 3fff:dead:beef:1::: gateway fe80:d::6:2bff:fe00:2385: Network is unreach
able
# uname -srm
NetBSD 1.4I alpha
>Fix:
sync to the either side, but I have no idea which one is right.
>Audit-Trail:
>Unformatted: