ng_UI.c (bef9dae05a72866e79d97d9bff3fc5a2538b4421) ng_UI.c (74f5c6aa25752d28460c90aefa625ec0f75e3505)
1
2/*
3 * ng_UI.c
4 *
5 * Copyright (c) 1996-1999 Whistle Communications, Inc.
6 * All rights reserved.
7 *
8 * Subject to the following obligations and disclaimer of warranty, use and

--- 23 unchanged lines hidden (view full) ---

32 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
33 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
34 * THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY
35 * OF SUCH DAMAGE.
36 *
37 * Author: Julian Elischer <julian@whistle.com>
38 *
39 * $FreeBSD$
1
2/*
3 * ng_UI.c
4 *
5 * Copyright (c) 1996-1999 Whistle Communications, Inc.
6 * All rights reserved.
7 *
8 * Subject to the following obligations and disclaimer of warranty, use and

--- 23 unchanged lines hidden (view full) ---

32 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
33 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
34 * THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY
35 * OF SUCH DAMAGE.
36 *
37 * Author: Julian Elischer <julian@whistle.com>
38 *
39 * $FreeBSD$
40 * $Whistle: ng_UI.c,v 1.11 1999/01/28 23:54:52 julian Exp $
40 * $Whistle: ng_UI.c,v 1.14 1999/11/01 09:24:51 julian Exp $
41 */
42
43#include <sys/param.h>
44#include <sys/systm.h>
45#include <sys/errno.h>
46#include <sys/kernel.h>
47#include <sys/malloc.h>
48#include <sys/mbuf.h>

--- 20 unchanged lines hidden (view full) ---

69/* Node private data */
70struct private {
71 hook_p downlink;
72 hook_p uplink;
73};
74typedef struct private *priv_p;
75
76/* Netgraph node methods */
41 */
42
43#include <sys/param.h>
44#include <sys/systm.h>
45#include <sys/errno.h>
46#include <sys/kernel.h>
47#include <sys/malloc.h>
48#include <sys/mbuf.h>

--- 20 unchanged lines hidden (view full) ---

69/* Node private data */
70struct private {
71 hook_p downlink;
72 hook_p uplink;
73};
74typedef struct private *priv_p;
75
76/* Netgraph node methods */
77static int ng_UI_constructor(node_p *nodep);
78static int ng_UI_rcvmsg(node_p node, struct ng_mesg *msg,
79 const char *retaddr, struct ng_mesg **resp);
80static int ng_UI_rmnode(node_p node);
81static int ng_UI_newhook(node_p node, hook_p hook, const char *name);
82static int ng_UI_rcvdata(hook_p hook, struct mbuf *m, meta_p meta);
83static int ng_UI_disconnect(hook_p hook);
77static ng_constructor_t ng_UI_constructor;
78static ng_rcvmsg_t ng_UI_rcvmsg;
79static ng_shutdown_t ng_UI_rmnode;
80static ng_newhook_t ng_UI_newhook;
81static ng_rcvdata_t ng_UI_rcvdata;
82static ng_disconnect_t ng_UI_disconnect;
84
85/* Node type descriptor */
86static struct ng_type typestruct = {
87 NG_VERSION,
88 NG_UI_NODE_TYPE,
89 NULL,
90 ng_UI_constructor,
91 ng_UI_rcvmsg,

--- 152 unchanged lines hidden ---
83
84/* Node type descriptor */
85static struct ng_type typestruct = {
86 NG_VERSION,
87 NG_UI_NODE_TYPE,
88 NULL,
89 ng_UI_constructor,
90 ng_UI_rcvmsg,

--- 152 unchanged lines hidden ---