From 69e1325faf47762fd08917b8f20a20abb59d41e6 Mon Sep 17 00:00:00 2001 From: gdt Date: Mon, 15 Nov 2004 18:51:15 +0000 Subject: Rationalize CMSG_SPACE usage: in lib/zebra.h, ensure that RFC3542-required CMSG_SPACE and CMSG_LEN are defined. Warn if alignment assumptions are made, since they are i386-centric. in lib/sockopt.h, declare that sockopt sizes are without CMSG_SPACE-required padding - just simple sizeof. in ospfd/ospf_packet.c, simply use CMSG_SPACE This should remove all instances of CMSG_ALIGN from the source code. This is a nonstandard, though rational, construct; quagga should use only those defines in RFC3542. --- lib/ChangeLog | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/ChangeLog') diff --git a/lib/ChangeLog b/lib/ChangeLog index b662aed7..f5471b48 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,11 @@ +2004-11-15 Greg Troxel + + * sockopt.h: Avoid CMSG_ALIGN, and declare that sizes are without + alignment (users should use CMSG_SPACE). + + * zebra.h: Rationalize CMSG_SPACE compatibility defines. Warn if + asumming 4-byte alignment, since this isn't safe. + 2004-11-15 Andrew J. Schorr * memory.c: (zerror) Use zlog_err instead of fprintf to stderr. -- cgit v1.2.1