summaryrefslogtreecommitdiff
path: root/lib/libnetgraph
AgeCommit message (Collapse)Author
2023-11-26lib: Automated cleanup of cdefs and other formattingWarner Losh
Apply the following automated changes to try to eliminate no-longer-needed sys/cdefs.h includes as well as now-empty blank lines in a row. Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/ Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/ Remove /\n+#if.*\n#endif.*\n+/ Remove /^#if.*\n#endif.*\n/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/ Sponsored by: Netflix
2023-08-16Remove $FreeBSD$: two-line nroff patternWarner Losh
Remove /^\.\\"\n\.\\"\s*\$FreeBSD\$$\n/
2023-08-16Remove $FreeBSD$: one-line sh patternWarner Losh
Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
2023-08-16Remove $FreeBSD$: one-line .c patternWarner Losh
Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
2023-08-16Remove $FreeBSD$: two-line .h patternWarner Losh
Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
2023-03-09ng_atmllc: removeBrooks Davis
This standalone module is the last vestage of ATM support in the tree so send it on its way. Reviewed by: manu, emaste Relnotes: yes Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D38880
2021-10-22Retire synchronous PPP kernel driver sppp(4).Gleb Smirnoff
The last two drivers that required sppp are cp(4) and ce(4). These devices are still produced and can be purchased at Cronyx <http://cronyx.ru/hardware/wan.html>. Since Roman Kurakin <rik@FreeBSD.org> has quit them, they no longer support FreeBSD officially. Later they have dropped support for Linux drivers to. As of mid-2020 they don't even have a developer to maintain their Windows driver. However, their support verbally told me that they could provide aid to a FreeBSD developer with documentaion in case if there appears a new customer for their devices. These drivers have a feature to not use sppp(4) and create an interface, but instead expose the device as netgraph(4) node. Then, you can attach ng_ppp(4) with help of ports/net/mpd5 on top of the node and get your synchronous PPP. Alternatively you can attach ng_frame_relay(4) or ng_cisco(4) for HDLC. Actually, last time I used cp(4) back in 2004, using netgraph(4) instead of sppp(4) was already the right way to do. Thus, remove the sppp(4) related part of the drivers and enable by default the negraph(4) part. Further maintenance of these drivers in the tree shouldn't be a big deal. While doing that, remove some cruft and enable cp(4) compilation on amd64. The ce(4) for some unknown reason marks its internal DDK functions with __attribute__ fastcall, which most likely is safe to remove, but without hardware I'm not going to do that, so ce(4) remains i386-only. Reviewed by: emaste, imp, donner Differential Revision: https://reviews.freebsd.org/D32590 See also: https://reviews.freebsd.org/D23928
2020-05-15Fix SYNPOSIS section to point to the proper include directive.Benedict Reuschling
netgraph(3) points to #include <netgraph/netgraph.h>, which is kernel only. The man page refers to the user-space part of the netgraph module, which is located in <netgraph.h>. Submitted by: lutz_donnerhacke.de Approved by: bcr Differential Revision: https://reviews.freebsd.org/D23814 Notes: svn path=/head/; revision=361074
2019-12-11Update Makefile.depend filesSimon J. Gerraty
Update a bunch of Makefile.depend files as a result of adding Makefile.depend.options files Reviewed by: bdrewery MFC after: 1 week Sponsored by: Juniper Networks Differential Revision: https://reviews.freebsd.org/D22494 Notes: svn path=/head/; revision=355617
2019-09-05pkgbase: Create a FreeBSD-utilities package and make it the default oneEmmanuel Vadot
The default package use to be FreeBSD-runtime but it should only contain binaries and libs enough to boot to single user and repair the system, it is also very handy to have a package that can be tranform to a small mfsroot. So create a new package named FreeBSD-utilities and make it the default one. Also move a few binaries and lib into this package when it make sense. Reviewed by: bapt, gjb Differential Revision: https://reviews.freebsd.org/D21506 Notes: svn path=/head/; revision=351858
2019-05-10Atomically update the global gMsgId in libnetgraph.Mark Johnston
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 Notes: svn path=/head/; revision=347439
2017-11-08s/NgSendMsgReply/NgSendReplyMsg/ in man to match the code.Alexander Motin
Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com> MFC after: 2 weeks Notes: svn path=/head/; revision=325552
2017-10-31DIRDEPS_BUILD: Update dependencies.Bryan Drewery
Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
2016-02-04First pass through library packaging.Glen Barber
Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=295278
2015-11-25META MODE: Prefer INSTALL=tools/install.sh to lessen the need for xinstall.host.Bryan Drewery
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
2015-06-13Add META_MODE support.Simon J. Gerraty
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
2015-06-08dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty
Notes: svn path=/projects/bmake/; revision=284172
2015-05-27Merge sync of headSimon J. Gerraty
Notes: svn path=/projects/bmake/; revision=283595
2015-02-06Some NetGraph debug polishing.Alexander Motin
Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com> MFC after: 2 weeks Notes: svn path=/head/; revision=278311
2014-08-19Merge head from 7/28Simon J. Gerraty
Notes: svn path=/projects/bmake/; revision=270164
2014-06-23use .Mt to mark up email addresses consistently (part3)Baptiste Daroussin
PR: 191174 Submitted by: Franco Fichtner <franco at lastsummer.de> Notes: svn path=/head/; revision=267773
2014-05-16Updated dependenciesSimon J. Gerraty
Notes: svn path=/projects/bmake/; revision=266219
2014-05-10Updated dependenciesSimon J. Gerraty
Notes: svn path=/projects/bmake/; revision=265802
2014-04-27Merge headSimon J. Gerraty
Notes: svn path=/projects/bmake/; revision=265006
2014-01-07make sure that rbuf is aligned by making a union w/ the structure weJohn-Mark Gurney
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
2013-11-28Fix some misinformation in netgraph manual pages.Gleb Smirnoff
Submitted by: Dmitry Luhtionov <dmitryluhtionov gmail.com> Notes: svn path=/head/; revision=258702
2013-10-28Remove ng_fec(4).Gleb Smirnoff
Notes: svn path=/head/; revision=257254
2013-04-12sync from headSimon J. Gerraty
Notes: svn path=/projects/bmake/; revision=249429
2013-03-11Updated dependenciesSimon J. Gerraty
Notes: svn path=/projects/bmake/; revision=248169
2013-03-11Fix for quite a special case when userland emulates a netgraph node, andGleb Smirnoff
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
2013-02-16Updated dependenciesSimon J. Gerraty
Notes: svn path=/projects/bmake/; revision=246868
2013-02-08Sync with HEAD.David E. O'Brien
Notes: svn path=/projects/bmake/; revision=246555
2012-12-21Fix socket calls on error post-r243965.Kevin Lo
Submitted by: Garrett Cooper Notes: svn path=/head/; revision=244538
2012-11-08Updated/new Makefile.dependSimon J. Gerraty
Notes: svn path=/projects/bmake/; revision=242788
2012-08-22Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar
Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
2009-12-28bring the NGM_IPFW_COOKIE back into ng_ipfw.h, libnetgraph expectsLuigi Rizzo
to find it there. Unfortunately this reintroduces the dependency on ip_fw_pfil.c Notes: svn path=/head/; revision=201124
2009-12-28this file is also affected by the ipfw changesLuigi Rizzo
Notes: svn path=/head/; revision=201123
2009-07-19Bump the version of all non-symbol-versioned shared libraries inKen Smith
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
2007-05-21Bump library versions in preparation for 7.0.Daniel Eischen
Ok'd by: kan Notes: svn path=/head/; revision=169807
2007-05-14Replace select() by poll() to avoid problems with bigAlexander Motin
descriptor number. Approved by: glebius (mentor) Notes: svn path=/head/; revision=169551
2006-10-17Include sys/socket.h to know about sa_family_t.Gleb Smirnoff
Notes: svn path=/head/; revision=163469
2006-01-12In the splnet(9) times netgraph(4) was synchronous and if a messageGleb Smirnoff
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
2005-10-25Recognize all current standard node types.Ruslan Ermilov
Notes: svn path=/head/; revision=151677
2005-07-22Bump the shared library version number of all libraries that have notKen Smith
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
2005-04-26Make this compile with GCC4 by fixing a few signedness related warnings.Maxime Henrion
Reviewed by: md5(1) Notes: svn path=/head/; revision=145546
2005-02-04When we have converted an ASCII message to binary, set its version inGleb Smirnoff
the header. Otherwise we will send a message with zero version. MFC after: 3 days Notes: svn path=/head/; revision=141307
2004-09-22Prefer C99's __func__ over GCC's __FUNCTION__.Stefan Farfeleder
Notes: svn path=/head/; revision=135576
2004-07-04Yes, NgRecvAsciiMsg has the same results as NgRecvAsciiMsg, but it'sJuli Mallett
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
2004-07-02Mechanically kill hard sentence breaks.Ruslan Ermilov
Notes: svn path=/head/; revision=131504
2004-01-28Increment WARNS.Ruslan Ermilov
Notes: svn path=/head/; revision=125122