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.
diff --git a/lib/ChangeLog b/lib/ChangeLog
index b662aed..f5471b4 100644
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -1,3 +1,11 @@
+2004-11-15 Greg Troxel <gdt@fnord.ir.bbn.com>
+
+ * 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 <ajschorr@alumni.princeton.edu>
* memory.c: (zerror) Use zlog_err instead of fprintf to stderr.