Bug 678:
make size of control message buffer configurable if
needbe. use lower default of 1536 bytes as qnx couldn't
cope with 5120 bytes and we are not really expecting
long control messages.
qnx limit is around 1900 bytes - qnx analysed by
Michael Tatarinov - thanks
bk: 44cf977a8aFx815MaRu5cs3ZT5LnCA
#if defined(CMSG_FIRSTHDR)
#define HAVE_TIMESTAMP
#define USE_TIMESTAMP_CMSG
+#ifndef TIMESTAMP_CTLMSGBUF_SIZE
+#define TIMESTAMP_CTLMSGBUF_SIZE 1536 /* moderate default */
+#endif
#else
/* fill in for old/other timestamp interfaces */
#endif
#ifdef HAVE_TIMESTAMP
struct msghdr msghdr;
struct iovec iovec;
- char control[5120]; /* pick up control messages */
+ char control[TIMESTAMP_CTLMSGBUF_SIZE]; /* pick up control messages */
#endif
/*