original files of m241
This commit is contained in:
@@ -0,0 +1,131 @@
|
||||
/*
|
||||
* Copyright 2006 Wind River Systems, Inc.
|
||||
*
|
||||
* The right to copy, distribute, modify or otherwise make use
|
||||
* of this software may be licensed only pursuant to the terms
|
||||
* of an applicable Wind River license agreement.
|
||||
*/
|
||||
|
||||
/*
|
||||
modification history
|
||||
--------------------
|
||||
01a,12jun06,tlu Initial creation
|
||||
*/
|
||||
|
||||
#ifndef IPRIPNG_CONSTANT_H
|
||||
#define IPRIPNG_CONSTANT_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
* Interpeak Routing Information Protocol - IPRIPng
|
||||
* -----------------------------------------------
|
||||
* RTOS and TCP/IP stack portable implementation of Routing Information
|
||||
* Protocol RIPng.
|
||||
*
|
||||
* Compliant with the following RFC:
|
||||
* RFC 2080 RIPng
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 CONFIGURATION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include <ipcom_type.h>
|
||||
#include <ipcom_list.h>
|
||||
#include <ipcom_sock.h>
|
||||
#include <ipcom_inet.h>
|
||||
#include <ipcom_tags.h>
|
||||
#include <ipcom_route.h>
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
#define IPRIPNG_MAXARGS 50
|
||||
#define MAXARGS 40
|
||||
#define RIPTASKPRIDEFAULT 100
|
||||
#define RIPTASKNAME "ipripngd"
|
||||
|
||||
|
||||
/***** protocol constants *****/
|
||||
#define SUPPLY_INTERVAL6 30
|
||||
#define RIP_LIFETIME 180
|
||||
#define RIP_HOLDDOWN 120
|
||||
#define RIP_TRIG_INT6_MAX 5
|
||||
#define RIP_TRIG_INT6_MIN 1
|
||||
#define INIT_INTERVAL6 10 /* Wait to submit a initial riprequest */
|
||||
|
||||
#define IF_POISON 0x1
|
||||
#define IF_SPLITH 0x2
|
||||
#define IF_NOHORZ 0x4
|
||||
|
||||
#define RIP6_VERSION 1
|
||||
|
||||
#define RIP6_REQUEST 1
|
||||
#define RIP6_RESPONSE 2
|
||||
|
||||
#define RIP6_PORT 521
|
||||
#define RIP6_DEST "ff02::9"
|
||||
|
||||
#define LOOPBACK_IF "lo0"
|
||||
#define IFC_CHANGED 1
|
||||
|
||||
|
||||
#define NI_MAXSERV 32
|
||||
|
||||
#define HOPCNT_INFINITY6 16
|
||||
#define NEXTHOP_METRIC 0xff
|
||||
#define RIP6_MAXMTU 1500
|
||||
|
||||
#define IFMINMTU 1280
|
||||
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* IPRIPng_RELEASE
|
||||
*===========================================================================
|
||||
* IPRIPng release version.
|
||||
*/
|
||||
#define IPRIPNG_RELEASE 60000
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* TYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* Global variables
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
|
||||
#endif
|
||||
/*#ifndef IPRIPNG_CONSTANT_H*/
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user