1
2/*
3 * ng_socket.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
--- 22 unchanged lines hidden (view full) ---
31 * SERVICES, LOSS OF USE, DATA OR PROFITS, HOWEVER CAUSED AND UNDER ANY
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@freebsd.org>
38 *
39 * $FreeBSD: head/sys/netgraph/ng_socket.c 69922 2000-12-12 18:52:14Z julian $
40 * $Whistle: ng_socket.c,v 1.28 1999/11/01 09:24:52 julian Exp $
41 */
42
43/*
44 * Netgraph socket nodes
45 *
46 * There are two types of netgraph sockets, control and data.
47 * Control sockets have a netgraph node, but data sockets are
--- 67 unchanged lines hidden (view full) ---
115static int ng_bind(struct sockaddr *nam, struct ngpcb *pcbp);
116
117static int ngs_mod_event(module_t mod, int event, void *data);
118static int ship_msg(struct ngpcb *pcbp, struct ng_mesg *msg,
119 struct sockaddr_ng *addr);
120
121/* Netgraph type descriptor */
122static struct ng_type typestruct = {
123 NG_VERSION,
124 NG_SOCKET_NODE_TYPE,
125 ngs_mod_event,
126 ngs_constructor,
127 ngs_rcvmsg,
128 ngs_rmnode,
129 ngs_newhook,
130 NULL,
131 NULL,
--- 888 unchanged lines hidden ---
2/*
3 * ng_socket.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
--- 22 unchanged lines hidden (view full) ---
31 * SERVICES, LOSS OF USE, DATA OR PROFITS, HOWEVER CAUSED AND UNDER ANY
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@freebsd.org>
38 *
39 * $FreeBSD: head/sys/netgraph/ng_socket.c 69922 2000-12-12 18:52:14Z julian $
40 * $Whistle: ng_socket.c,v 1.28 1999/11/01 09:24:52 julian Exp $
41 */
42
43/*
44 * Netgraph socket nodes
45 *
46 * There are two types of netgraph sockets, control and data.
47 * Control sockets have a netgraph node, but data sockets are
--- 67 unchanged lines hidden (view full) ---
115static int ng_bind(struct sockaddr *nam, struct ngpcb *pcbp);
116
117static int ngs_mod_event(module_t mod, int event, void *data);
118static int ship_msg(struct ngpcb *pcbp, struct ng_mesg *msg,
119 struct sockaddr_ng *addr);
120
121/* Netgraph type descriptor */
122static struct ng_type typestruct = {
123 NG_VERSION,
124 NG_SOCKET_NODE_TYPE,
125 ngs_mod_event,
126 ngs_constructor,
127 ngs_rcvmsg,
128 ngs_rmnode,
129 ngs_newhook,
130 NULL,
131 NULL,
--- 888 unchanged lines hidden ---