Subject: bin/8179: 64bit align issue in routing socket
To: None <>
From: None <>
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
>Originator:     jun-ichiro itojun hagino
kame project
>Release:        NetBSD-current from cvs repository
NetBSD 1.4J NetBSD 1.4J (TURMERIC.v6) #109: Sun Aug  8 21:46:41 PDT 1999 i386


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.


# 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
# uname -srm
NetBSD 1.4I alpha

sync to the either side, but I have no idea which one is right.