defs.h revision 0a12cda44900dce580fc40f3acf669818520c3ee
/*
* 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 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _NDPD_DEFS_H
#define _NDPD_DEFS_H
#pragma ident "%Z%%M% %I% %E% SMI"
#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 "tables.h"
#ifdef __cplusplus
extern "C" {
#endif
#define CURHOP_UNSPECIFIED 0
#define PATH_NDPD_CONF "/etc/inet/ndpd.conf"
#define PATH_PID "/var/run/in.ndpd.pid"
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 */
#define D_ALL 0xffff
#define IF_SEPARATOR ':'
#define IPV6_MAX_HOPS 255
#define IPV6_ABITS 128
#define TMP_TOKEN_BITS 64
#define MAX_DAD_FAILURES 5
/* 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
*/
#define MAXLINELEN 4096
#define MAXARGSPERLINE 128
extern int poll_remove(int fd);
#ifdef __cplusplus
}
#endif
#endif /* _NDPD_DEFS_H */