xorp

multicast_defs.h

00001 /* -*- c-basic-offset: 4; tab-width: 8; indent-tabs-mode: t -*- */
00002 /* vim:set sts=4 ts=8: */
00003 
00004 /*
00005  * Copyright (c) 2001-2009 XORP, Inc.
00006  *
00007  * This program is free software; you can redistribute it and/or modify
00008  * it under the terms of the GNU General Public License, Version 2, June
00009  * 1991 as published by the Free Software Foundation. Redistribution
00010  * and/or modification of this program under the terms of any other
00011  * version of the GNU General Public License is not permitted.
00012  * 
00013  * This program is distributed in the hope that it will be useful, but
00014  * WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For more details,
00016  * see the GNU General Public License, Version 2, a copy of which can be
00017  * found in the XORP LICENSE.gpl file.
00018  * 
00019  * XORP Inc, 2953 Bunker Hill Lane, Suite 204, Santa Clara, CA 95054, USA;
00020  * http://xorp.net
00021  */
00022 
00023 /*
00024  * $XORP: xorp/mrt/multicast_defs.h,v 1.11 2008/10/02 21:57:45 bms Exp $
00025  */
00026 
00027 #ifndef __MRT_MULTICAST_DEFS_H__
00028 #define __MRT_MULTICAST_DEFS_H__
00029 
00030 
00031 /*
00032  * Various multicast-related definitions.
00033  */
00034 /* XXX: everything here probably should go somewhere else. */
00035 
00036 
00037 #include "libxorp/xorp.h"
00038 
00039 #ifdef HAVE_NETINET_IN_SYSTM_H
00040 #include <netinet/in_systm.h>
00041 #endif
00042 #ifdef HAVE_NETINET_IP_H
00043 #include <netinet/ip.h>
00044 #endif
00045 
00046 
00047 /*
00048  * Constants definitions
00049  */
00050 enum action_jp_t {
00051     ACTION_JOIN = 0,
00052     ACTION_PRUNE
00053 };
00054 #define ACTION_JP2ASCII(action_flag)            \
00055     (((action_flag) == ACTION_JOIN) ?       \
00056         "JOIN" : "PRUNE")
00057 
00058 #ifndef MINTTL
00059 #define MINTTL      1
00060 #endif
00061 #ifndef IPDEFTTL
00062 #define IPDEFTTL    64
00063 #endif
00064 #ifndef MAXTTL
00065 #define MAXTTL      255
00066 #endif
00067 
00068 
00069 /*
00070  * Structures, typedefs and macros
00071  */
00072 
00073 /*
00074  * Global variables
00075  */
00076 
00077 /*
00078  * Global functions prototypes
00079  */
00080 __BEGIN_DECLS
00081 
00082 __END_DECLS
00083 
00084 
00085 #endif /* __MRT_MULTICAST_DEFS_H__ */
 All Classes Namespaces Functions Variables Typedefs Enumerations