<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/lib/libnetgraph/msg.c, branch release/14.4.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=release%2F14.4.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=release%2F14.4.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2023-08-16T17:54:42Z</updated>
<entry>
<title>Remove $FreeBSD$: one-line .c pattern</title>
<updated>2023-08-16T17:54:42Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-16T17:54:42Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=1d386b48a555f61cb7325543adbbb5c3f3407a66'/>
<id>urn:sha1:1d386b48a555f61cb7325543adbbb5c3f3407a66</id>
<content type='text'>
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
</content>
</entry>
<entry>
<title>Atomically update the global gMsgId in libnetgraph.</title>
<updated>2019-05-10T16:43:47Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2019-05-10T16:43:47Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=7f75bbd0662b0ec96bc673515154601628dba3b3'/>
<id>urn:sha1:7f75bbd0662b0ec96bc673515154601628dba3b3</id>
<content type='text'>
Otherwise concurrently running threads may inadvertently use the same
token for different messages.

Preserve the behaviour of disallowing negative message tokens, but allow
a message token value of zero since this simplifies the code a bit and
tokens are documented to be non-negative.

PR:		234442
Reported and tested by:	eugen
MFC after:	1 month
Sponsored by:	The FreeBSD Foundation
</content>
</entry>
<entry>
<title>Fix for quite a special case when userland emulates a netgraph node, and</title>
<updated>2013-03-11T13:05:11Z</updated>
<author>
<name>Gleb Smirnoff</name>
<email>glebius@FreeBSD.org</email>
</author>
<published>2013-03-11T13:05:11Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=61dbb845c7540710b29395bcaacf5df2e42f7759'/>
<id>urn:sha1:61dbb845c7540710b29395bcaacf5df2e42f7759</id>
<content type='text'>
userland can reply to a message with NGM_HASREPLY bit set. In this case
we should not wait for a response to a responce.

PR:		176771
Submitted by:	Keith Reynolds &lt;keith.reynolds tidalscale.com&gt;
</content>
</entry>
<entry>
<title>Replace select() by poll() to avoid problems with big</title>
<updated>2007-05-14T14:18:41Z</updated>
<author>
<name>Alexander Motin</name>
<email>mav@FreeBSD.org</email>
</author>
<published>2007-05-14T14:18:41Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=82a35b739ab487714efe6001ecb1d5789d83074c'/>
<id>urn:sha1:82a35b739ab487714efe6001ecb1d5789d83074c</id>
<content type='text'>
descriptor number.

Approved by:	glebius (mentor)
</content>
</entry>
<entry>
<title>Include sys/socket.h to know about sa_family_t.</title>
<updated>2006-10-17T16:56:29Z</updated>
<author>
<name>Gleb Smirnoff</name>
<email>glebius@FreeBSD.org</email>
</author>
<published>2006-10-17T16:56:29Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=bbf889ededbfd1adae1823372c3041d465f1e029'/>
<id>urn:sha1:bbf889ededbfd1adae1823372c3041d465f1e029</id>
<content type='text'>
</content>
</entry>
<entry>
<title>In the splnet(9) times netgraph(4) was synchronous and if a message</title>
<updated>2006-01-12T19:14:40Z</updated>
<author>
<name>Gleb Smirnoff</name>
<email>glebius@FreeBSD.org</email>
</author>
<published>2006-01-12T19:14:40Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=2df050ad10cde5237970359fd21baf0c0d33b83c'/>
<id>urn:sha1:2df050ad10cde5237970359fd21baf0c0d33b83c</id>
<content type='text'>
had been replied, the reply was always delivered to the originator
synchronously.

With introduction of netgraph item callbacks and a wait channel with
mutex in ng_socket(4), we have fixed the problem with ngctl(8) returning
earlier than the command has been proceeded by target node. But still
ngctl(8) can return prior to the reply has arrived to its node.

To fix this:
 - Introduce a new flag for netgraph(4) messages - NGM_HASREPLY.
   This flag is or'ed with message like NGM_READONLY.
 - In netgraph userland library if we have sent a message with
   NGM_HASREPLY flag, then select(2) until reply comes.
 - Mark appropriate generic commands with NGM_HASREPLY flag,
   gathering them into one enum {}. Bump generic cookie.
</content>
</entry>
<entry>
<title>Make this compile with GCC4 by fixing a few signedness related warnings.</title>
<updated>2005-04-26T14:25:11Z</updated>
<author>
<name>Maxime Henrion</name>
<email>mux@FreeBSD.org</email>
</author>
<published>2005-04-26T14:25:11Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=b92367948a1777de80dd7ee31a15a90df0b727bf'/>
<id>urn:sha1:b92367948a1777de80dd7ee31a15a90df0b727bf</id>
<content type='text'>
Reviewed by:	md5(1)
</content>
</entry>
<entry>
<title>When we have converted an ASCII message to binary, set its version in</title>
<updated>2005-02-04T21:36:10Z</updated>
<author>
<name>Gleb Smirnoff</name>
<email>glebius@FreeBSD.org</email>
</author>
<published>2005-02-04T21:36:10Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e551a1c3c28a1bbe9e994eb002f01dc0f2d75b99'/>
<id>urn:sha1:e551a1c3c28a1bbe9e994eb002f01dc0f2d75b99</id>
<content type='text'>
the header. Otherwise we will send a message with zero version.

MFC after:	3 days
</content>
</entry>
<entry>
<title>- Added three new interfaces, NgAllocRecvMsg(), NgAllocRecvAsciiMsg(),</title>
<updated>2004-01-27T20:25:14Z</updated>
<author>
<name>Ruslan Ermilov</name>
<email>ru@FreeBSD.org</email>
</author>
<published>2004-01-27T20:25:14Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=d15ff417789ca1926d26a34db3d6c0137178cda6'/>
<id>urn:sha1:d15ff417789ca1926d26a34db3d6c0137178cda6</id>
<content type='text'>
  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
</content>
</entry>
<entry>
<title>Fixed memory leak in NgSendAsciiMsg().</title>
<updated>2004-01-27T18:38:22Z</updated>
<author>
<name>Ruslan Ermilov</name>
<email>ru@FreeBSD.org</email>
</author>
<published>2004-01-27T18:38:22Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=430b8c1b05e98d6f5e10ab17afafe2f68ed56278'/>
<id>urn:sha1:430b8c1b05e98d6f5e10ab17afafe2f68ed56278</id>
<content type='text'>
</content>
</entry>
</feed>
