ndpd.h revision d04ccbb3f3163ae5962a8b7465d9796bff6ca434
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (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 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _NDPD_H
#define _NDPD_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
#define NDPD_SNMP_SOCKET "/var/run/in.ndpd_mib"
#define NDPD_SNMP_INFO_REQ 1
#define NDPD_SNMP_INFO_RESPONSE 2
#define NDPD_PHYINT_INFO 3
#define NDPD_PREFIX_INFO 4
#define NDPD_ROUTER_INFO 5
#define NDPD_SNMP_INFO_VER 1
#define NDPD_PHYINT_INFO_VER 1
#define NDPD_PREFIX_INFO_VER 1
#define NDPD_ROUTER_INFO_VER 1
/*
* Data structures used to handle configuration variables set in ndpd.conf.
* cf_notdefault is set for variables explicitly set in ndpd.conf.
*/
struct confvar {
};
extern struct confvar ifdefaults[];
/*
* Interfaces configuration variable indicies
*/
#define I_DupAddrDetectTransmits 0 /* From RFC 2462 */
#define I_AdvSendAdvertisements 1
#define I_AdvManagedFlag 4
#define I_AdvOtherConfigFlag 5
#define I_AdvLinkMTU 6
#define I_AdvCurHopLimit 9
#define I_StatelessAddrConf 11
#define I_StatefulAddrConf 17
typedef struct ndpd_info_s {
} ndpd_info_t;
typedef struct ndpd_prefix_info_s {
typedef struct ndpd_router_info_s {
typedef struct ndpd_phyint_info_s {
int phyint_index;
#define phyint_DupAddrDetectTransmits \
#define phyint_AdvSendAdvertisements \
#define phyint_MaxRtrAdvInterval \
#define phyint_MinRtrAdvInterval \
#define phyint_AdvOtherConfigFlag \
#define phyint_AdvDefaultLifetime \
#define phyint_StatelessAddrConf \
#define phyint_TmpPreferredLifetime \
#define phyint_TmpMaxDesyncFactor \
#define phyint_StatefulAddrConf \
#ifdef __cplusplus
}
#endif
#endif /* _NDPD_H */