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