xref: /netbsd/external/cddl/osnet/lib/libdtrace/net.d (revision 6550d01e)
1 /*	$NetBSD: net.d,v 1.2 2010/02/21 01:46:35 darran Exp $	*/
2 
3 /*
4  * CDDL HEADER START
5  *
6  * The contents of this file are subject to the terms of the
7  * Common Development and Distribution License (the "License").
8  * You may not use this file except in compliance with the License.
9  *
10  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
11  * or http://www.opensolaris.org/os/licensing.
12  * See the License for the specific language governing permissions
13  * and limitations under the License.
14  *
15  * When distributing Covered Code, include this CDDL HEADER in each
16  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
17  * If applicable, add the following below this CDDL HEADER, with the
18  * fields enclosed by brackets "[]" replaced with your own identifying
19  * information: Portions Copyright [yyyy] [name of copyright owner]
20  *
21  * CDDL HEADER END
22  *
23  * Portions Copyright 2006-2008 John Birrell jb@freebsd.org
24  *
25  * $FreeBSD: src/cddl/lib/libdtrace/net.d,v 1.1.4.1 2009/08/03 08:13:06 kensmith Exp $
26  */
27 
28 /*
29  * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
30  * Use is subject to license terms.
31  */
32 
33 #pragma ident	"%Z%%M%	%I%	%E% SMI"
34 
35 /*
36  * The conninfo_t structure should be used by all application protocal
37  * providers as the first arguments to indicate some basic information
38  * about the connection. This structure may be augmented to accomodate
39  * the particularities of additional protocols in the future.
40  */
41 typedef struct conninfo {
42 	string ci_local;	/* local host address */
43 	string ci_remote;	/* remote host address */
44 	string ci_protocol;	/* protocol (ipv4, ipv6, etc) */
45 } conninfo_t;
46