Date: Mon, 29 Nov 1999 18:45:33 -0800 (PST) From: Archie Cobbs <archie@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libnetgraph Makefile debug.c internal.h msg.c netgraph.3 netgraph.h src/share/examples/netgraph ngctl src/sys/conf files src/sys/modules/netgraph/cisco ng_cisco.8 src/sys/modules/netgraph/netgraph Makefile netgraph.4 ... Message-ID: <199911300245.SAA75175@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
archie 1999/11/29 18:45:32 PST Modified files: lib/libnetgraph Makefile debug.c internal.h msg.c netgraph.3 netgraph.h sys/conf files sys/modules/netgraph/cisco ng_cisco.8 sys/modules/netgraph/netgraph Makefile netgraph.4 sys/modules/netgraph/pppoe ng_pppoe.8 sys/net if_ethersubr.c sys/netgraph netgraph.h ng_UI.c ng_UI.h ng_async.c ng_async.h ng_base.c ng_cisco.c ng_cisco.h ng_echo.c ng_ether.h ng_frame_relay.c ng_hole.c ng_iface.c ng_ksocket.c ng_ksocket.h ng_lmi.c ng_message.h ng_ppp.c ng_ppp.h ng_pppoe.c ng_rfc1490.c ng_rfc1490.h ng_sample.c ng_socket.c ng_tee.c ng_tty.c ng_vjc.c usr.sbin/ngctl Makefile connect.c list.c main.c ngctl.8 ngctl.h rmhook.c show.c shutdown.c Added files: share/examples/netgraph ngctl sys/netgraph ng_parse.c ng_parse.h usr.sbin/ngctl msg.c Log: 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 Revision Changes Path 1.2 +2 -3 src/lib/libnetgraph/Makefile 1.3 +136 -243 src/lib/libnetgraph/debug.c 1.2 +3 -3 src/lib/libnetgraph/internal.h 1.2 +108 -3 src/lib/libnetgraph/msg.c 1.2 +63 -7 src/lib/libnetgraph/netgraph.3 1.2 +3 -1 src/lib/libnetgraph/netgraph.h 1.290 +2 -1 src/sys/conf/files 1.3 +2 -1 src/sys/modules/netgraph/cisco/ng_cisco.8 1.2 +2 -2 src/sys/modules/netgraph/netgraph/Makefile 1.4 +106 -5 src/sys/modules/netgraph/netgraph/netgraph.4 1.6 +2 -1 src/sys/modules/netgraph/pppoe/ng_pppoe.8 1.66 +3 -2 src/sys/net/if_ethersubr.c 1.4 +22 -6 src/sys/netgraph/netgraph.h 1.5 +3 -2 src/sys/netgraph/ng_UI.c 1.2 +2 -2 src/sys/netgraph/ng_UI.h 1.5 +54 -3 src/sys/netgraph/ng_async.c 1.6 +28 -2 src/sys/netgraph/ng_async.h 1.9 +320 -1 src/sys/netgraph/ng_base.c 1.3 +54 -10 src/sys/netgraph/ng_cisco.c 1.2 +29 -12 src/sys/netgraph/ng_cisco.h 1.3 +3 -2 src/sys/netgraph/ng_echo.c 1.2 +10 -2 src/sys/netgraph/ng_ether.h 1.8 +4 -3 src/sys/netgraph/ng_frame_relay.c 1.3 +3 -2 src/sys/netgraph/ng_hole.c 1.6 +7 -9 src/sys/netgraph/ng_iface.c 1.4 +493 -68 src/sys/netgraph/ng_ksocket.c 1.2 +23 -1 src/sys/netgraph/ng_ksocket.h 1.5 +3 -2 src/sys/netgraph/ng_lmi.c 1.3 +140 -21 src/sys/netgraph/ng_message.h 1.12 +77 -3 src/sys/netgraph/ng_ppp.c 1.5 +49 -1 src/sys/netgraph/ng_ppp.h 1.21 +3 -2 src/sys/netgraph/ng_pppoe.c 1.5 +3 -2 src/sys/netgraph/ng_rfc1490.c 1.2 +2 -2 src/sys/netgraph/ng_rfc1490.h 1.6 +3 -2 src/sys/netgraph/ng_sample.c 1.10 +3 -2 src/sys/netgraph/ng_socket.c 1.5 +3 -2 src/sys/netgraph/ng_tee.c 1.6 +12 -11 src/sys/netgraph/ng_tty.c 1.8 +3 -2 src/sys/netgraph/ng_vjc.c 1.4 +2 -2 src/usr.sbin/ngctl/Makefile 1.2 +3 -2 src/usr.sbin/ngctl/connect.c 1.2 +3 -2 src/usr.sbin/ngctl/list.c 1.3 +194 -25 src/usr.sbin/ngctl/main.c 1.3 +15 -9 src/usr.sbin/ngctl/ngctl.8 1.5 +9 -5 src/usr.sbin/ngctl/ngctl.h 1.2 +3 -2 src/usr.sbin/ngctl/rmhook.c 1.2 +3 -2 src/usr.sbin/ngctl/show.c 1.2 +3 -2 src/usr.sbin/ngctl/shutdown.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199911300245.SAA75175>