inetcfg.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2002 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _INETCFG_H
#define _INETCFG_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
/* error codes */
#define ICFG_SUCCESS 0 /* API was successful */
/* valid types for icfg_get_if_list() */
#define ICFG_PLUMBED 0
#define ICFG_INSTALLED 1
typedef struct icfg_if {
} icfg_if_t;
typedef struct icfg_handle {
int ifh_sock; /* socket to interface */
} *icfg_handle_t;
extern const char *icfg_errmsg(int);
extern void icfg_close(icfg_handle_t);
extern int icfg_refresh_tunnel_cache(icfg_handle_t);
extern int icfg_get_tunnel_lower(icfg_handle_t, int *);
extern int icfg_get_tunnel_upper(icfg_handle_t, int *);
extern int icfg_set_metric(icfg_handle_t, int);
extern int icfg_set_index(icfg_handle_t, int);
extern int icfg_set_prefixlen(icfg_handle_t, int);
int);
int *, boolean_t);
extern int icfg_get_metric(icfg_handle_t, int *);
extern int icfg_get_index(icfg_handle_t, int *);
extern int icfg_get_if_list(icfg_if_t **, int *, int, int);
extern void icfg_free_if_list(icfg_if_t *);
extern int icfg_iterate_if(int, int, void *, int (*)(icfg_if_t *, void *));
char *, size_t);
socklen_t *);
#ifdef __cplusplus
}
#endif
#endif /* _INETCFG_H */