Deleted Added
full compact
netgraph.h (134057) netgraph.h (137138)
1/*
2 * netgraph.h
3 *
4 * Copyright (c) 1996-1999 Whistle Communications, Inc.
5 * All rights reserved.
6 *
7 * Subject to the following obligations and disclaimer of warranty, use and
8 * redistribution of this software, in source or object code forms, with or

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

30 * SERVICES, LOSS OF USE, DATA OR PROFITS, HOWEVER CAUSED AND UNDER ANY
31 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
32 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
33 * THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY
34 * OF SUCH DAMAGE.
35 *
36 * Author: Julian Elischer <julian@freebsd.org>
37 *
1/*
2 * netgraph.h
3 *
4 * Copyright (c) 1996-1999 Whistle Communications, Inc.
5 * All rights reserved.
6 *
7 * Subject to the following obligations and disclaimer of warranty, use and
8 * redistribution of this software, in source or object code forms, with or

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

30 * SERVICES, LOSS OF USE, DATA OR PROFITS, HOWEVER CAUSED AND UNDER ANY
31 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
32 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
33 * THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY
34 * OF SUCH DAMAGE.
35 *
36 * Author: Julian Elischer <julian@freebsd.org>
37 *
38 * $FreeBSD: head/sys/netgraph/netgraph.h 134057 2004-08-20 01:24:23Z julian $
38 * $FreeBSD: head/sys/netgraph/netgraph.h 137138 2004-11-02 21:24:30Z glebius $
39 * $Whistle: netgraph.h,v 1.29 1999/11/01 07:56:13 julian Exp $
40 */
41
42#ifndef _NETGRAPH_NETGRAPH_H_
43#define _NETGRAPH_NETGRAPH_H_
44
45#ifndef _KERNEL
46#error "This file should not be included in user level programs"

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

1069item_p ng_package_msg_self(node_p here, hook_p hook, struct ng_mesg *msg);
1070void ng_replace_retaddr(node_p here, item_p item, ng_ID_t retaddr);
1071int ng_rmhook_self(hook_p hook); /* if a node wants to kill a hook */
1072int ng_rmnode_self(node_p here); /* if a node wants to suicide */
1073int ng_rmtype(struct ng_type *tp);
1074int ng_snd_item(item_p item, int queue);
1075int ng_send_fn(node_p node, hook_p hook, ng_item_fn *fn,
1076 void *arg1, int arg2);
39 * $Whistle: netgraph.h,v 1.29 1999/11/01 07:56:13 julian Exp $
40 */
41
42#ifndef _NETGRAPH_NETGRAPH_H_
43#define _NETGRAPH_NETGRAPH_H_
44
45#ifndef _KERNEL
46#error "This file should not be included in user level programs"

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

1069item_p ng_package_msg_self(node_p here, hook_p hook, struct ng_mesg *msg);
1070void ng_replace_retaddr(node_p here, item_p item, ng_ID_t retaddr);
1071int ng_rmhook_self(hook_p hook); /* if a node wants to kill a hook */
1072int ng_rmnode_self(node_p here); /* if a node wants to suicide */
1073int ng_rmtype(struct ng_type *tp);
1074int ng_snd_item(item_p item, int queue);
1075int ng_send_fn(node_p node, hook_p hook, ng_item_fn *fn,
1076 void *arg1, int arg2);
1077int ng_untimeout(struct callout_handle handle, node_p node);
1078struct callout_handle
1079 ng_timeout(node_p node, hook_p hook, int ticks,
1077int ng_untimeout(struct callout *c, node_p node);
1078int ng_timeout(struct callout *c, node_p node, hook_p hook, int ticks,
1080 ng_item_fn *fn, void * arg1, int arg2);
1079 ng_item_fn *fn, void * arg1, int arg2);
1080/* We should mark callout mpsafe as soon as we mark netgraph ISR mpsafe */
1081#define ng_callout_init(c) callout_init(c, 0)
1081
1082/*
1083 * prototypes the user should DEFINITELY not use directly
1084 */
1085void ng_free_item(item_p item); /* Use NG_FREE_ITEM instead */
1086int ng_mod_event(module_t mod, int what, void *arg);
1087
1088/*

--- 25 unchanged lines hidden ---
1082
1083/*
1084 * prototypes the user should DEFINITELY not use directly
1085 */
1086void ng_free_item(item_p item); /* Use NG_FREE_ITEM instead */
1087int ng_mod_event(module_t mod, int what, void *arg);
1088
1089/*

--- 25 unchanged lines hidden ---