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