opnsense-src/lib/libnetgraph
Mark Johnston 7f75bbd066 Atomically update the global gMsgId in libnetgraph.
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
2019-05-10 16:43:47 +00:00
..
debug.c Some NetGraph debug polishing. 2015-02-06 09:41:16 +00:00
internal.h Replace select() by poll() to avoid problems with big 2007-05-14 14:18:41 +00:00
Makefile s/NgSendMsgReply/NgSendReplyMsg/ in man to match the code. 2017-11-08 12:34:47 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
msg.c Atomically update the global gMsgId in libnetgraph. 2019-05-10 16:43:47 +00:00
netgraph.3 s/NgSendMsgReply/NgSendReplyMsg/ in man to match the code. 2017-11-08 12:34:47 +00:00
netgraph.h - Added three new interfaces, NgAllocRecvMsg(), NgAllocRecvAsciiMsg(), 2004-01-27 20:25:14 +00:00
sock.c make sure that rbuf is aligned by making a union w/ the structure we 2014-01-07 23:01:05 +00:00