From be6ecefd4f8fe84ef2b2ace9a10f3eadd40ea689 Mon Sep 17 00:00:00 2001 From: itojun Date: Sun, 27 Feb 2000 08:30:15 +0000 Subject: [PATCH] * */sys/sys/socket.h: use ALIGNBYTES, instead of sizeof(long) - 1, for CMSG alignment. without it CMSG alignment is not spec conformant if ALIGNBYTES > sizeof(long) - 1. this add dependency from sys/socket.h to machine/param.h - which may not be right. NOTE: recompile all IPv6 userland, if you are on architecture with ALIGNBYTES != sizeof(long) - 1. TODO: make it future adaptable by using sysctl hw.alignbytes. (maybe for *bsd-current?) --- CHANGELOG | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index 6219b6ed3a..44832daa27 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,8 +1,21 @@ CHANGELOG for KAME kit -$Id: CHANGELOG,v 1.624 2000/02/26 13:12:13 jinmei Exp $ +$Id: CHANGELOG,v 1.625 2000/02/27 08:30:15 itojun Exp $ <200002> +Sun Feb 27 16:43:04 JST 2000 itojun@iijlab.net + * */sys/sys/socket.h: use ALIGNBYTES, instead of sizeof(long) - 1, + for CMSG alignment. without it CMSG alignment is not spec + conformant if + ALIGNBYTES > sizeof(long) - 1. + this add dependency from sys/socket.h to machine/param.h - which may + not be right. + + NOTE: recompile all IPv6 userland, if you are on architecture + with ALIGNBYTES != sizeof(long) - 1. + TODO: make it future adaptable by using sysctl hw.alignbytes. + (maybe for *bsd-current?) + Sat Feb 26 20:46:03 JST 2000 itojun@iijlab.net * sys/netinet6/esp_input.c: with IPv6 ESP, correctly handle off != sizeof(ip6) case.