aboutsummaryrefslogtreecommitdiff
path: root/share/examples/netgraph
Commit message (Collapse)AuthorAgeFilesLines
* Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-167-7/+0
| | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
* divert: declare PF_DIVERT domain and stop abusing PF_INETGleb Smirnoff2022-08-301-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | The divert(4) is not a protocol of IPv4. It is a socket to intercept packets from ipfw(4) to userland and re-inject them back. It can divert and re-inject IPv4 and IPv6 packets today, but potentially it is not limited to these two protocols. The IPPROTO_DIVERT does not belong to known IP protocols, it doesn't even fit into u_char. I guess, the implementation of divert(4) was done the way it is done basically because it was easier to do it this way, back when protocols for sockets were intertwined with IP protocols and domains were statically compiled in. Moving divert(4) out of inetsw accomplished two important things: 1) IPDIVERT is getting much closer to be not dependent on INET. This will be finalized in following changes. 2) Now divert socket no longer aliases with raw IPv4 socket. Domain/proto selection code won't need a hack for SOCK_RAW and multiple entries in inetsw implementing different flavors of raw socket can merge into one without requirement of raw IPv4 being the last member of dom_protosw. Differential revision: https://reviews.freebsd.org/D36379
* Fix more typos to be a good example.Ulrich Spörlein2011-05-226-138/+134
| | | | | | | Found by: codespell Notes: svn path=/head/; revision=222179
* Add two scripts that demonstrate how to make andJulian Elischer2010-10-242-0/+733
| | | | | | | | | | hook together jails using teh vortual networking feature. Submitted by: Yavuz Gokirmak MFC after: 2 weeks Notes: svn path=/head/; revision=214306
* Retire /usr/share/examples/netgraph/bluetooth/rc.bluetooth.Maksim Yevmenkin2007-04-241-267/+0
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=169026
* - Correct grammos in comments and end them with full stops.Jens Schweikhardt2006-03-051-29/+26
| | | | | | | | | - Use "if !" instead of empty true branches. - Don't hardcode script name in usage message, use $0 instead. - Cleanup some whitespace. Notes: svn path=/head/; revision=156313
* Serial devices now called /dev/cuadXX not /dev/cuaaXXMaksim Yevmenkin2004-11-021-1/+1
| | | | Notes: svn path=/head/; revision=137134
* Replace all uses of the old netgraph constants NG_*LEN by the newHartmut Brandt2003-11-151-2/+2
| | | | | | | | | constants NG_*SIZ that include the trailing NUL byte. This change is mostly mechanical except for the replacement of a couple of snprintf() and sprintf() calls with strlcpy. Notes: svn path=/head/; revision=122758
* fix typos in comments.Julian Elischer2003-09-302-2/+2
| | | | | | | Submitted by: Vincent Jardin <vjardin@wanadoo.fr> Notes: svn path=/head/; revision=120612
* This file just didn't want to commit in the last batch of bluetooth files.Julian Elischer2003-05-101-0/+267
| | | | | | | Approved by: re@ Notes: svn path=/head/; revision=114880
* Usage style sweep: spell "usage" with a small 'u'.Dag-Erling Smørgrav2002-04-221-1/+1
| | | | | | | | Also change one case of blatant __progname abuse (several more remain) This commit does not touch anything in src/{contrib,crypto,gnu}/. Notes: svn path=/head/; revision=95258
* Change the script a bit to allow the creation of 'brouted' bridges.Julian Elischer2002-04-121-11/+17
| | | | | | | | | | To do this you need to have each top-end connected as well. IP can be routed and other protocols get bridged.. Also useful when bridgeing two networks while merging them as machines will work with both old and new netmasks. (well mostly). Notes: svn path=/head/; revision=94477
* Correct a brain-o in the stats output.Dima Dorfman2001-06-301-1/+1
| | | | | | | | PR: 24839 Submitted by: AMAKAWA Shuhei <amakawa@sf.t.u-tokyo.ac.jp> Notes: svn path=/head/; revision=79035
* Script showing how to setup Ethernet bridging using ng_bridge(4).Archie Cobbs2000-10-011-0/+167
| | | | Notes: svn path=/head/; revision=66512
* Add another netgraph example. This one shows how to set up a simpleArchie Cobbs2000-01-281-0/+53
| | | | | | | UDP tunnel between two subnets. Notes: svn path=/head/; revision=56706
* Add two new generic control messages, NGM_ASCII2BINARY andArchie Cobbs1999-11-301-0/+173
| | | | | | | | | | | | | | | | | | | | | | | | | | NGM_BINARY2ASCII, which convert control messages to ASCII and back. This allows control messages to be sent and received in ASCII form using ngctl(8), which makes ngctl a lot more useful. This also allows all the type-specific debugging code in libnetgraph to go away -- instead, we just ask the node itself to do the ASCII translation for us. Currently, all generic control messages are supported, as well as messages associated with the following node types: async, cisco, ksocket, and ppp. See /usr/share/examples/netgraph/ngctl for an example of using this. Also give ngctl(8) the ability to print out incoming data and control messages at any time. Eventually nghook(8) may be subsumed. Several other misc. bug fixes. Reviewed by: julian Notes: svn path=/head/; revision=53913
* Add an example of how to run raw IP across a sync port.Julian Elischer1999-11-191-0/+16
| | | | Notes: svn path=/head/; revision=53411
* Add an example of how to set up a frame relay link using netgraph andJulian Elischer1999-11-191-0/+46
the 'sr' sync card. Notes: svn path=/head/; revision=53410