/*
* 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 2010 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _NDPD_DEFS_H
#define _NDPD_DEFS_H
#include <stdio.h>
#include <stdlib.h>
#include <strings.h>
#include <errno.h>
#include <fcntl.h>
#include <signal.h>
#include <poll.h>
#include <unistd.h>
#include <time.h>
#include <stdarg.h>
#include <syslog.h>
#include <netdb.h>
#include <string.h>
#include <ctype.h>
#include <netinet/in_systm.h>
#include <netinet/if_ether.h>
#include <libipadm.h>
#include <ipadm_ndpd.h>
#include "tables.h"
#ifdef __cplusplus
extern "C" {
#endif
#define CURHOP_UNSPECIFIED 0
extern int debug, no_loopback;
extern struct in6_addr all_nodes_mcast;
extern struct in6_addr all_routers_mcast;
extern int rtsock;
extern struct sockaddr_in6 *rta_gateway;
extern struct sockaddr_dl *rta_ifp;
/* Debug flags */
/* Return a random number from a an range inclusive of the endpoints */
/*
* Used by 2 hour rule for stateless addrconf
*/
/*
* Control how often pi_ReachableTime gets re-randomized
*/
/*
* Parsing constants
*/
extern int poll_remove(int fd);
#ifdef __cplusplus
}
#endif
#endif /* _NDPD_DEFS_H */