22 Jul
2004
22 Jul
'04
9:53 p.m.
On Thu, 2004-07-22 at 21:47, Viren Patel wrote:
Hmm. What would happen if in src/lib/fdpass.c you added:
#undef CMSG_LEN #undef CMSG_DATA
#define CMSG_LEN(l) (sizeof(struct cmsghdr) + (l)) #define CMSG_DATA(cmsg) ((u_char *)(cmsg) + sizeof(struct cmsghdr))
Yes! This did the trick. It seems to be working fine now. Thanks for your help. I can now go on to further testing and imaps/pop3s. I am seriously looking at Dovecot for our production mail server.
OK, this seems to be a bug in FreeBSD then. The header files define the alignmentation with size_t so it gets to be 64bit, but kernel expects alignmentation to be 32bit.
Want to report it to FreeBSD people? I guess I could too.