Date: Tue, 27 Jan 2004 12:25:14 -0800 (PST) From: Ruslan Ermilov <ru@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libnetgraph Makefile msg.c netgraph.3 netgraph.h sock.c Message-ID: <200401272025.i0RKPE35092281@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
ru 2004/01/27 12:25:14 PST
FreeBSD src repository
Modified files:
lib/libnetgraph Makefile msg.c netgraph.3 netgraph.h
sock.c
Log:
- Added three new interfaces, NgAllocRecvMsg(), NgAllocRecvAsciiMsg(),
and NgAllocRecvData(), that dynamically allocate buffer for a binary
message, an ascii message, and a data packet, respectively. The size
of the allocated buffer is equal to the socket's receive buffer size
to guarantee that a message or a data packet is not truncated.
- Get rid of the static size buffer in NgSendAsciiMsg().
OK'ed by: archie, julian
Revision Changes Path
1.9 +3 -0 src/lib/libnetgraph/Makefile
1.9 +45 -8 src/lib/libnetgraph/msg.c
1.21 +40 -1 src/lib/libnetgraph/netgraph.3
1.4 +4 -1 src/lib/libnetgraph/netgraph.h
1.6 +18 -0 src/lib/libnetgraph/sock.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200401272025.i0RKPE35092281>
