aboutsummaryrefslogtreecommitdiff
path: root/lib/libnetgraph
Commit message (Collapse)AuthorAgeFilesLines
* MFC r347439 by markj: Atomically update the global gMsgId in libnetgraph.Eugene Grosbein2019-10-111-7/+4
| | | | | | | | | | | | | | 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 Notes: svn path=/stable/11/; revision=353445
* MFC r325552: s/NgSendMsgReply/NgSendReplyMsg/ in man to match the code.Alexander Motin2017-11-222-4/+4
| | | | | | | Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com> Notes: svn path=/stable/11/; revision=326104
* First pass through library packaging.Glen Barber2016-02-041-0/+1
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=295278
* META MODE: Prefer INSTALL=tools/install.sh to lessen the need for xinstall.host.Bryan Drewery2015-11-251-1/+0
| | | | | | | | | | | This both avoids some dependencies on xinstall.host and allows bootstrapping on older releases to work due to lack of at least 'install -l' support. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=291307
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+19
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Merge sync of headSimon J. Gerraty2015-05-271-7/+22
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=283595
| * Merge head from 7/28Simon J. Gerraty2014-08-191-1/+1
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=270164
| * | Updated dependenciesSimon J. Gerraty2014-05-161-1/+1
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * | Updated dependenciesSimon J. Gerraty2014-05-101-0/+2
| | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * | Merge headSimon J. Gerraty2014-04-273-8/+9
| |\ \ | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265006
| * \ \ sync from headSimon J. Gerraty2013-04-121-1/+1
| |\ \ \ | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=249429
| * | | | Updated dependenciesSimon J. Gerraty2013-03-111-0/+1
| | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * | | | Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * | | | Sync with HEAD.David E. O'Brien2013-02-081-2/+2
| |\ \ \ \ | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246555
| * | | | | Updated/new Makefile.dependSimon J. Gerraty2012-11-081-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=242788
| * | | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | | | | | Some NetGraph debug polishing.Alexander Motin2015-02-061-7/+22
| |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com> MFC after: 2 weeks Notes: svn path=/head/; revision=278311
* | | | | use .Mt to mark up email addresses consistently (part3)Baptiste Daroussin2014-06-231-1/+1
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | PR: 191174 Submitted by: Franco Fichtner <franco at lastsummer.de> Notes: svn path=/head/; revision=267773
* | | | make sure that rbuf is aligned by making a union w/ the structure weJohn-Mark Gurney2014-01-071-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | need to access... access the struct through the union too... PR: 185165 Submitted by: Guy Yur MFC after: 1 week Notes: svn path=/head/; revision=260418
* | | | Fix some misinformation in netgraph manual pages.Gleb Smirnoff2013-11-281-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Submitted by: Dmitry Luhtionov <dmitryluhtionov gmail.com> Notes: svn path=/head/; revision=258702
* | | | Remove ng_fec(4).Gleb Smirnoff2013-10-281-2/+0
| |_|/ |/| | | | | | | | Notes: svn path=/head/; revision=257254
* | | Fix for quite a special case when userland emulates a netgraph node, andGleb Smirnoff2013-03-111-1/+1
| |/ |/| | | | | | | | | | | | | | | | | | | 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 <keith.reynolds tidalscale.com> Notes: svn path=/head/; revision=248159
* | Fix socket calls on error post-r243965.Kevin Lo2012-12-211-2/+2
|/ | | | | | | Submitted by: Garrett Cooper Notes: svn path=/head/; revision=244538
* bring the NGM_IPFW_COOKIE back into ng_ipfw.h, libnetgraph expectsLuigi Rizzo2009-12-281-2/+0
| | | | | | | | to find it there. Unfortunately this reintroduces the dependency on ip_fw_pfil.c Notes: svn path=/head/; revision=201124
* this file is also affected by the ipfw changesLuigi Rizzo2009-12-281-0/+2
| | | | Notes: svn path=/head/; revision=201123
* Bump the version of all non-symbol-versioned shared libraries inKen Smith2009-07-191-1/+1
| | | | | | | | | | | preparation for 8.0-RELEASE. Add the previous version of those libraries to ObsoleteFiles.inc and bump __FreeBSD_Version. Reviewed by: kib Approved by: re (rwatson) Notes: svn path=/head/; revision=195767
* Bump library versions in preparation for 7.0.Daniel Eischen2007-05-211-1/+1
| | | | | | | Ok'd by: kan Notes: svn path=/head/; revision=169807
* Replace select() by poll() to avoid problems with bigAlexander Motin2007-05-142-6/+7
| | | | | | | | | descriptor number. Approved by: glebius (mentor) Notes: svn path=/head/; revision=169551
* Include sys/socket.h to know about sa_family_t.Gleb Smirnoff2006-10-172-0/+2
| | | | Notes: svn path=/head/; revision=163469
* In the splnet(9) times netgraph(4) was synchronous and if a messageGleb Smirnoff2006-01-121-0/+16
| | | | | | | | | | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=154265
* Recognize all current standard node types.Ruslan Ermilov2005-10-251-4/+42
| | | | Notes: svn path=/head/; revision=151677
* Bump the shared library version number of all libraries that have notKen Smith2005-07-221-1/+1
| | | | | | | | | | been bumped since RELENG_5. Reviewed by: ru Approved by: re (not needed for commit check but in principle...) Notes: svn path=/head/; revision=148297
* Make this compile with GCC4 by fixing a few signedness related warnings.Maxime Henrion2005-04-263-6/+7
| | | | | | | Reviewed by: md5(1) Notes: svn path=/head/; revision=145546
* When we have converted an ASCII message to binary, set its version inGleb Smirnoff2005-02-041-0/+1
| | | | | | | | | the header. Otherwise we will send a message with zero version. MFC after: 3 days Notes: svn path=/head/; revision=141307
* Prefer C99's __func__ over GCC's __FUNCTION__.Stefan Farfeleder2004-09-221-1/+1
| | | | Notes: svn path=/head/; revision=135576
* Yes, NgRecvAsciiMsg has the same results as NgRecvAsciiMsg, but it'sJuli Mallett2004-07-041-1/+1
| | | | | | | | much more apt to note that it has the same result as NgRecvMsg. Make the manual page less circular in its reference to this fact. Notes: svn path=/head/; revision=131548
* Mechanically kill hard sentence breaks.Ruslan Ermilov2004-07-021-1/+1
| | | | Notes: svn path=/head/; revision=131504
* Increment WARNS.Ruslan Ermilov2004-01-281-1/+1
| | | | Notes: svn path=/head/; revision=125122
* - Added three new interfaces, NgAllocRecvMsg(), NgAllocRecvAsciiMsg(),Ruslan Ermilov2004-01-275-9/+109
| | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=125113
* mdoc(7) cleanup.Ruslan Ermilov2004-01-271-39/+72
| | | | Notes: svn path=/head/; revision=125106
* Fixed memory leak in NgSendAsciiMsg().Ruslan Ermilov2004-01-271-1/+4
| | | | Notes: svn path=/head/; revision=125104
* Use the new defines that include the trailing '\0' in the code.Hartmut Brandt2003-11-144-21/+27
| | | | | | | | | | Replace occurences of the magic constant 2 with an offsetof macro call that computes the size of the leading members of the sockaddr. Use strlcpy instead of sprintf where appropriate. Document the new changes in the man page. Notes: svn path=/head/; revision=122649
* The .Fn functionPhilippe Charnier2003-06-081-18/+33
| | | | Notes: svn path=/head/; revision=116028
* Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,Jens Schweikhardt2003-01-011-1/+1
| | | | | | | especially in troff files. Notes: svn path=/head/; revision=108533
* english(4) police.Jens Schweikhardt2002-12-271-1/+1
| | | | Notes: svn path=/head/; revision=108317
* Zap now-unused SHLIB_MINORPeter Wemm2002-09-281-1/+0
| | | | Notes: svn path=/head/; revision=104073
* Fix bugs in NgSendMsg() and NgSendAsciiMsg() where the wrong tokenArchie Cobbs2001-10-251-2/+2
| | | | | | | | | | value could be returned when the debug level was non-zero. Submitted by: Harti Brandt <brandt@fokus.gmd.de> MFC after: 5 days Notes: svn path=/head/; revision=85456
* mdoc(7) police: Use the new .In macro for #include statements.Ruslan Ermilov2001-10-011-1/+1
| | | | Notes: svn path=/head/; revision=84306
* Add __FBSDID()s to libnetgraphMatthew Dillon2001-09-303-6/+9
| | | | Notes: svn path=/head/; revision=84215