diff options
author | shin <shin@FreeBSD.org> | 2000-01-28 05:10:56 +0000 |
---|---|---|
committer | shin <shin@FreeBSD.org> | 2000-01-28 05:10:56 +0000 |
commit | 417b54f8df0382bc71e299bb3cf35e74b2579e6c (patch) | |
tree | 4d242bbd1d32138424f41ea1ee419cb9768308bf /usr.sbin/pim6sd/defs.h | |
parent | b223e32eeea5f93619a53d365ddc73c6a3c16bf4 (diff) | |
download | FreeBSD-src-417b54f8df0382bc71e299bb3cf35e74b2579e6c.zip FreeBSD-src-417b54f8df0382bc71e299bb3cf35e74b2579e6c.tar.gz |
IPv6 multicast routing.
kernel IPv6 multicast routing support.
pim6 dense mode daemon
pim6 sparse mode daemon
netstat support of IPv6 multicast routing statistics
Merging to the current and testing with other existing multicast routers
is done by Tatsuya Jinmei <jinmei@kame.net>, who writes and maintainances
the base code in KAME distribution.
Make world check and kernel build check was also successful.
Diffstat (limited to 'usr.sbin/pim6sd/defs.h')
-rw-r--r-- | usr.sbin/pim6sd/defs.h | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/usr.sbin/pim6sd/defs.h b/usr.sbin/pim6sd/defs.h new file mode 100644 index 0000000..b9c3389 --- /dev/null +++ b/usr.sbin/pim6sd/defs.h @@ -0,0 +1,82 @@ +/* + * Copyright (C) 1999 LSIIT Laboratory. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * 3. Neither the name of the project nor the names of its contributors + * may be used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + * $FreeBSD$ + */ +/* + * Questions concerning this software should be directed to + * Mickael Hoerdt (hoerdt@clarinet.u-strasbg.fr) LSIIT Strasbourg. + * + */ +/* + * This program has been derived from pim6dd. + * The pim6dd program is covered by the license in the accompanying file + * named "LICENSE.pim6dd". + */ +/* + * This program has been derived from pimd. + * The pimd program is covered by the license in the accompanying file + * named "LICENSE.pimd". + * + */ + + +#ifndef DEFS_H +#define DEFS_H + +#include <sys/types.h> + +#define TRUE 1 +#define FALSE 0 +#define ELSE else /* To make emacs cc-mode happy */ + +#define max( a , b ) ( ( a )<( b )?( b ):( a ) ) + +typedef void ( *ihfunc_t ) __P( ( int , fd_set * ) ); +typedef void ( *cfunc_t ) __P( ( void * ) ); + +int register_input_handler __P((int fd,ihfunc_t func)); + +/* CONFIGCONFIGCONFIGCONFIG */ + +#define HAVE_ROUTING_SOCKETS +#define HAVE_SA_LEN +#define RANDOM() random() + +#define PRINTF printf +#define ALL_MCAST_GROUPS_LENGTH 8 + + +typedef u_int u_int32; +typedef u_short u_int16; +typedef u_char u_int8; + + +extern char configfilename[]; + +#endif |