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