FreeBSD current (and the 5.3 branch) needs the following patch. Otherwise, it always consumes mbuf cluster for cmsg items even when unnecessary. (I should probably file a PR for this, but I currently do not have a good access to the PR system. So please forgive me to send this to the list.) JINMEI, Tatuya Communication Platform Lab. Corporate R&D Center, Toshiba Corp. jinmei_at_isl.rdc.toshiba.co.jp Index: uipc_socket2.c =================================================================== RCS file: /home/ncvs/src/sys/kern/uipc_socket2.c,v retrieving revision 1.137 diff -u -r1.137 uipc_socket2.c --- uipc_socket2.c 15 Aug 2004 06:24:41 -0000 1.137 +++ uipc_socket2.c 27 Oct 2004 03:26:48 -0000 _at__at_ -1253,7 +1253,7 _at__at_ if (CMSG_SPACE((u_int)size) > MCLBYTES) return ((struct mbuf *) NULL); - if (CMSG_SPACE((u_int)size > MLEN)) + if (CMSG_SPACE((u_int)size) > MLEN) m = m_getcl(M_DONTWAIT, MT_CONTROL, 0); else m = m_get(M_DONTWAIT, MT_CONTROL);Received on Wed Oct 27 2004 - 01:29:22 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:19 UTC