Subject: CMSG_ALIGN
To: None <tech-net@netbsd.org>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
List: tech-net
Date: 06/27/2003 18:30:09
Why does CMSG_ALIGN (sys/socket.h) exist? Why not, instead, have the
kernel increase the cmsg_len values to whatever boundary it thinks
appropriate? If nothing else, it would render the control-data byte
blob entirely self-contained; as it stands, a control-data byte blob
cannot, in general, be correctly interpreted without knowing the
appropriate alignment multiple for the machine it was generated on.
(It would also eliminate the need for __cmsg_alignbytes, which is
rather an aesthetic blemish.)
/~\ The ASCII der Mouse
\ / Ribbon Campaign
X Against HTML mouse@rodents.montreal.qc.ca
/ \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B