Commit Graph

11 Commits

Author SHA1 Message Date
harti
91fb8e3f9c Replace all uses of the old netgraph constants NG_*LEN by the new
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.
2003-11-15 15:26:35 +00:00
julian
12a28a5774 fix typos in comments.
Submitted by: Vincent Jardin <vjardin@wanadoo.fr>
2003-09-30 22:39:22 +00:00
julian
3816c42ae4 This file just didn't want to commit in the last batch of bluetooth files.
Approved by: re@
2003-05-10 21:53:43 +00:00
des
4d6b787d2d Usage style sweep: spell "usage" with a small 'u'.
Also change one case of blatant __progname abuse (several more remain)
This commit does not touch anything in src/{contrib,crypto,gnu}/.
2002-04-22 13:44:47 +00:00
julian
8fd9529d1e Change the script a bit to allow the creation of 'brouted' bridges.
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).
2002-04-12 04:44:53 +00:00
dd
3bfab48c8c Correct a brain-o in the stats output.
PR:		24839
Submitted by:	AMAKAWA Shuhei <amakawa@sf.t.u-tokyo.ac.jp>
2001-06-30 21:39:31 +00:00
archie
752ee38893 Script showing how to setup Ethernet bridging using ng_bridge(4). 2000-10-01 21:14:14 +00:00
archie
8d6158347d Add another netgraph example. This one shows how to set up a simple
UDP tunnel between two subnets.
2000-01-28 00:44:30 +00:00
archie
81fceb37a9 Add two new generic control messages, NGM_ASCII2BINARY and
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
1999-11-30 02:45:32 +00:00
julian
391b6293c5 Add an example of how to run raw IP across a sync port. 1999-11-19 07:04:36 +00:00
julian
b02336e915 Add an example of how to set up a frame relay link using netgraph and
the 'sr' sync card.
1999-11-19 06:56:34 +00:00