Date: Tue, 18 Aug 2020 19:37:36 -0700 From: Julian Elischer <julian@elischer.org> To: "Rodney W. Grimes" <freebsd-rwg@gndrsh.dnsmgr.net> Cc: Ryan Stone <rysto32@gmail.com>, Marko Zec <zec@fer.hr>, freebsd-net <freebsd-net@freebsd.org> Subject: Re: Is anybody using ng_pipe? Message-ID: <CAM4VubWGBuN3%2BcSxtDrK2mBkwvpypsMZntg0nsjEoKw70DYiiA@mail.gmail.com> In-Reply-To: <202008182236.07IMaAo5067447@gndrsh.dnsmgr.net> References: <CAFMmRNyGu-vUgCsDjjDmX9YcEAhCDD-tZHeFJzRtaCOx-bCrgw@mail.gmail.com> <202008182236.07IMaAo5067447@gndrsh.dnsmgr.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Writing a new netgraph node is relatively simple. Take ng_sample.c and ng_sample.h and copy them. Change names to suit, and add your own code in the middle. use one of 50 other nodes as examples. No matter what you want to do one of them already does it. -- +----------------------------------\ ________ _ __ | __--_|\ Julian Elischer \ \\ U \/ / On assignment | / \ julian@elischer.org \ \ USA \ in a very strange | ( OZ ) \-->x____ ___ | country ! +- X_.---._/ Mountain View, California \_/ \\ v sp; \\ v
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAM4VubWGBuN3%2BcSxtDrK2mBkwvpypsMZntg0nsjEoKw70DYiiA>