original files of m241
This commit is contained in:
@@ -0,0 +1,352 @@
|
||||
/* 00comp_ipnet_rip.cdf - IPNet RIP configuration file */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2006-2007 Wind River Systems, Inc.
|
||||
*
|
||||
* The right to copy, distribute or otherwise make use of this software
|
||||
* may be licensed only pursuant to the terms of an applicable Wind River
|
||||
* license agreement. No license to Wind River intellectual property rights
|
||||
* is granted herein. All rights not licensed by Wind River are reserved
|
||||
* by Wind River.
|
||||
*/
|
||||
|
||||
/*
|
||||
modification history
|
||||
--------------------
|
||||
01i,29jun10,xhs cdf modification
|
||||
01h,23sep08,rme Misspelled words corrected
|
||||
01g,19sep07,rme Added missing backslashes
|
||||
01f,23jan07,tlu Add RIPng configlette file to INCLUDE_RIPNG (defect 86183)
|
||||
01e,03jan07,kch Changed IPRIP_FLASH_DELAY default value from 180 to 3.
|
||||
01d,23sep06.kch Moved INCLUDE_IPRIP_CTRL_CMD and INCLUDE_RIPNG_CTRL_CMD here.
|
||||
01c,01sep06,tlu rename IPRIPNG to RIPNG for the backward compatiblity
|
||||
01b,28jul06,tlu clean up and move ipripng_ctrl_show.o to IPNET Shell cmds
|
||||
01a,22jul06,kch created.
|
||||
*/
|
||||
|
||||
#ifdef _WRS_CONFIG_COMPONENT_IPRIP
|
||||
|
||||
Folder FOLDER_RIP {
|
||||
NAME RIP Components
|
||||
SYNOPSIS RIP Components
|
||||
CHILDREN INCLUDE_IPRIP \
|
||||
SELECT_IPRIP_IFCONFIG \
|
||||
SELECT_IPRIP_STATIC_ROUTES \
|
||||
INCLUDE_IPRIP_CTRL_CMD
|
||||
_CHILDREN FOLDER_NET_L5_APPLICATIONS
|
||||
}
|
||||
|
||||
Component INCLUDE_IPRIP {
|
||||
NAME RIPv1/v2
|
||||
SYNOPSIS RIPv1/v2
|
||||
MODULES iprip.o
|
||||
REQUIRES INCLUDE_IPCOM INCLUDE_IPCOM_USE_INET \
|
||||
INCLUDE_IPNET_USE_SOCK_COMPAT SELECT_IPRIP_IFCONFIG
|
||||
CONFIGLETTES iprip_config.c
|
||||
CFG_PARAMS IPRIP_UPDATE_INTERVAL IPRIP_UPDATE_DELTA \
|
||||
IPRIP_EXPIRE_INTERVAL IPRIP_GARBAGE_INTERVAL \
|
||||
IPRIP_FLASH_DELAY IPRIP_AUTH_ENABLED \
|
||||
IPRIP_DROP_HOSTROUTE
|
||||
}
|
||||
|
||||
Component INCLUDE_IPRIP_CTRL_CMD {
|
||||
NAME IPCOM RIPv1/v2 commands
|
||||
SYNOPSIS IPCOM commands for RIP daemon control
|
||||
MODULES iprip_cmd_ripctrl.o
|
||||
REQUIRES INCLUDE_IPCOM_SHELL_CMD INCLUDE_IPRIP
|
||||
}
|
||||
|
||||
Selection SELECT_IPRIP_IFCONFIG {
|
||||
NAME IPRIP interface configurations
|
||||
SYNOPSIS IPRIP interface configurations
|
||||
COUNT 1-
|
||||
CHILDREN INCLUDE_IPRIP_IFCONFIG_1 \
|
||||
INCLUDE_IPRIP_IFCONFIG_2 \
|
||||
INCLUDE_IPRIP_IFCONFIG_3 \
|
||||
INCLUDE_IPRIP_IFCONFIG_4
|
||||
DEFAULTS INCLUDE_IPRIP_IFCONFIG_1
|
||||
}
|
||||
|
||||
Component INCLUDE_IPRIP_IFCONFIG_1 {
|
||||
NAME IPRIP interface #1 configuration
|
||||
SYNOPSIS IPRIP interface configuration
|
||||
REQUIRES INCLUDE_IPRIP
|
||||
CFG_PARAMS IPRIP_IFCONFIG_1
|
||||
}
|
||||
|
||||
Component INCLUDE_IPRIP_IFCONFIG_2 {
|
||||
NAME IPRIP interface #2 configuration
|
||||
SYNOPSIS IPRIP interface configuration
|
||||
REQUIRES INCLUDE_IPRIP
|
||||
CFG_PARAMS IPRIP_IFCONFIG_2
|
||||
}
|
||||
|
||||
Component INCLUDE_IPRIP_IFCONFIG_3 {
|
||||
NAME IPRIP interface #3 configuration
|
||||
SYNOPSIS IPRIP interface configuration
|
||||
REQUIRES INCLUDE_IPRIP
|
||||
CFG_PARAMS IPRIP_IFCONFIG_3
|
||||
}
|
||||
|
||||
Component INCLUDE_IPRIP_IFCONFIG_4 {
|
||||
NAME IPRIP interface #4 configuration
|
||||
SYNOPSIS IPRIP interface configuration
|
||||
REQUIRES INCLUDE_IPRIP
|
||||
CFG_PARAMS IPRIP_IFCONFIG_4
|
||||
}
|
||||
|
||||
Selection SELECT_IPRIP_STATIC_ROUTES {
|
||||
NAME Static RIP routes configuration
|
||||
SYNOPSIS Configures initial static RIP routes which may be useful \
|
||||
before the system has configured the network using RIP.
|
||||
COUNT 0-
|
||||
CHILDREN INCLUDE_IPRIP_STATIC_ROUTE_1 \
|
||||
INCLUDE_IPRIP_STATIC_ROUTE_2 \
|
||||
INCLUDE_IPRIP_STATIC_ROUTE_3
|
||||
}
|
||||
|
||||
Component INCLUDE_IPRIP_STATIC_ROUTE_1 {
|
||||
NAME Static RIP route #1 configuration
|
||||
SYNOPSIS Specifies static RIP route configuration
|
||||
REQUIRES INCLUDE_IPRIP
|
||||
CFG_PARAMS IPRIP_STATIC_ROUTE_1
|
||||
}
|
||||
|
||||
Component INCLUDE_IPRIP_STATIC_ROUTE_2 {
|
||||
NAME Static RIP route #2 configuration
|
||||
SYNOPSIS Specifies static RIP route configuration
|
||||
REQUIRES INCLUDE_IPRIP
|
||||
CFG_PARAMS IPRIP_STATIC_ROUTE_2
|
||||
}
|
||||
|
||||
Component INCLUDE_IPRIP_STATIC_ROUTE_3 {
|
||||
NAME Static RIP route #3 configuration
|
||||
SYNOPSIS Specifies static RIP route configuration
|
||||
REQUIRES INCLUDE_IPRIP
|
||||
CFG_PARAMS IPRIP_STATIC_ROUTE_3
|
||||
}
|
||||
|
||||
/******************** Configuration Parameters *****************************/
|
||||
/* INCLUDE_IPRIP configuration parameters */
|
||||
Parameter IPRIP_UPDATE_INTERVAL {
|
||||
NAME RIP Update Interval
|
||||
SYNOPSIS RIP regular update timeout in seconds (minimum interval)
|
||||
TYPE char *
|
||||
DEFAULT "20"
|
||||
}
|
||||
|
||||
Parameter IPRIP_UPDATE_DELTA {
|
||||
NAME RIP Update delta Interval
|
||||
SYNOPSIS Variation to RIP updates in seconds (20-40 sec)
|
||||
TYPE char *
|
||||
DEFAULT "20"
|
||||
}
|
||||
|
||||
Parameter IPRIP_EXPIRE_INTERVAL {
|
||||
NAME RIP Expire Interval
|
||||
SYNOPSIS Seconds until a RIP route expires. Default value accordingly \
|
||||
to RFC 2453.
|
||||
TYPE char *
|
||||
DEFAULT "180"
|
||||
}
|
||||
|
||||
Parameter IPRIP_GARBAGE_INTERVAL {
|
||||
NAME RIP Garbage Interval
|
||||
SYNOPSIS Seconds until a garbage RIP route is removed. Default value \
|
||||
accordingly to RFC 2453.
|
||||
TYPE char *
|
||||
DEFAULT "120"
|
||||
}
|
||||
|
||||
Parameter IPRIP_FLASH_DELAY {
|
||||
NAME RIP Flash Interval
|
||||
SYNOPSIS RIP flash delay in seconds.
|
||||
TYPE char *
|
||||
DEFAULT "3"
|
||||
}
|
||||
|
||||
Parameter IPRIP_AUTH_ENABLED {
|
||||
NAME Authenticate RIP requests
|
||||
SYNOPSIS Set to 1 to authenticate RIP requests
|
||||
TYPE char *
|
||||
DEFAULT "0"
|
||||
}
|
||||
|
||||
Parameter IPRIP_DROP_HOSTROUTE {
|
||||
NAME Drop host route
|
||||
SYNOPSIS Set to 1 to drop host route
|
||||
TYPE char *
|
||||
DEFAULT "0"
|
||||
}
|
||||
|
||||
/* SELECT_IPRIP_IFCONFIG configuration parameters */
|
||||
Parameter IPRIP_IFCONFIG_1 {
|
||||
NAME RIP interface configuration
|
||||
SYNOPSIS Specifies parameters to configure RIP on an interface. The \
|
||||
syntax must begin with the name of the interface followed \
|
||||
by options and their values if required. The wildcard \
|
||||
interface name any is used to match any interface, \
|
||||
effectively starting RIP on all interfaces. If a specific \
|
||||
entry is find, that entry is used instead of the any entry, \
|
||||
e.g. eth0 is chosen before any. \
|
||||
Example #1 - "all multicast input-multicast" \
|
||||
Example #2 - "eth0 multicast input-multicast input=v2" \
|
||||
Example #3 - "ppp0 silent metric=2 input=no" \
|
||||
The following options are available to configure RIP on an \
|
||||
interface: \
|
||||
(1) broadcast - Use subnet broadcast output. \
|
||||
(2) multicast - Use multicast output (224.0.0.9). \
|
||||
(3) silent - Do not output RIP requests/responses. \
|
||||
(4) auth-md5=<password> - Enable GateD style md5 \
|
||||
authentication with <password>. \
|
||||
(5) auth-simple=<password] - Enable simple authentication \
|
||||
with <password>. \
|
||||
(6) input=<no|v1|v2> - Change input mode (no,v1 or v2 only). \
|
||||
No means that no input RIP packets are parsed. \
|
||||
(7) input-multicast - Accept multicast input (224.0.0.9). \
|
||||
(8) metric=<num> - Change default metric from 1 to <num>. \
|
||||
(9) version-1 - Enable RIPv1 (default is RIPv2) \
|
||||
(10) nopoison - Use simple Split Horizon instead of \
|
||||
poisonous. \
|
||||
Note - Only use one of broadcast, multicast or silent options.
|
||||
TYPE char *
|
||||
DEFAULT "all multicast input-multicast"
|
||||
}
|
||||
|
||||
Parameter IPRIP_IFCONFIG_2 {
|
||||
NAME RIP interface configuration
|
||||
SYNOPSIS Specifies parameters to configure RIP on an interface. The \
|
||||
syntax must begin with the name of the interface followed \
|
||||
by options and their values if required. The wildcard \
|
||||
interface name any is used to match any interface, \
|
||||
effectively starting RIP on all interfaces. If a specific \
|
||||
entry is find, that entry is used instead of the any entry, \
|
||||
e.g. eth0 is chosen before any. \
|
||||
Example #1 - "all broadcast input-multicast" \
|
||||
Example #2 - "eth0 broadcast input-multicast input=v2" \
|
||||
Example #3 - "ppp0 silent metric=2 input=no" \
|
||||
The following options are available to configure RIP on an \
|
||||
interface: \
|
||||
(1) broadcast - Use subnet broadcast output. \
|
||||
(2) multicast - Use multicast output (224.0.0.9). \
|
||||
(3) silent - Do not output RIP requests/responses. \
|
||||
(4) auth-md5=<password> - Enable GateD style md5 \
|
||||
authentication with <password>. \
|
||||
(5) auth-simple=<password] - Enable simple authentication \
|
||||
with <password>. \
|
||||
(6) input=<no|v1|v2> - Change input mode (no,v1 or v2 only). \
|
||||
No means that no input RIP packets are parsed. \
|
||||
(7) input-multicast - Accept multicast input (224.0.0.9). \
|
||||
(8) metric=<num> - Change default metric from 1 to <num>. \
|
||||
(9) version-1 - Enable RIPv1 (default is RIPv2) \
|
||||
(10) nopoison - Use simple Split Horizon instead of \
|
||||
poisonous. \
|
||||
Note - Only use one of broadcast, multicast or silent options.
|
||||
TYPE char *
|
||||
DEFAULT NULL
|
||||
}
|
||||
|
||||
Parameter IPRIP_IFCONFIG_3 {
|
||||
NAME RIP interface configuration
|
||||
SYNOPSIS Specifies parameters to configure RIP on an interface. The \
|
||||
syntax must begin with the name of the interface followed \
|
||||
by options and their values if required. The wildcard \
|
||||
interface name any is used to match any interface, \
|
||||
effectively starting RIP on all interfaces. If a specific \
|
||||
entry is find, that entry is used instead of the any entry, \
|
||||
e.g. eth0 is chosen before any. \
|
||||
Example #1 - "all broadcast input-multicast" \
|
||||
Example #2 - "eth0 broadcast input-multicast input=v2" \
|
||||
Example #3 - "ppp0 silent metric=2 input=no" \
|
||||
The following options are available to configure RIP on an \
|
||||
interface: \
|
||||
(1) broadcast - Use subnet broadcast output. \
|
||||
(2) multicast - Use multicast output (224.0.0.9). \
|
||||
(3) silent - Do not output RIP requests/responses. \
|
||||
(4) auth-md5=<password> - Enable GateD style md5 \
|
||||
authentication with <password>. \
|
||||
(5) auth-simple=<password] - Enable simple authentication \
|
||||
with <password>. \
|
||||
(6) input=<no|v1|v2> - Change input mode (no,v1 or v2 only). \
|
||||
No means that no input RIP packets are parsed. \
|
||||
(7) input-multicast - Accept multicast input (224.0.0.9). \
|
||||
(8) metric=<num> - Change default metric from 1 to <num>. \
|
||||
(9) version-1 - Enable RIPv1 (default is RIPv2) \
|
||||
(10) nopoison - Use simple Split Horizon instead of \
|
||||
poisonous. \
|
||||
Note - Only use one of broadcast, multicast or silent options.
|
||||
TYPE char *
|
||||
DEFAULT NULL
|
||||
}
|
||||
|
||||
Parameter IPRIP_IFCONFIG_4 {
|
||||
NAME RIP interface configuration
|
||||
SYNOPSIS Specifies parameters to configure RIP on an interface. The \
|
||||
syntax must begin with the name of the interface followed \
|
||||
by options and their values if required. The wildcard \
|
||||
interface name any is used to match any interface, \
|
||||
effectively starting RIP on all interfaces. If a specific \
|
||||
entry is find, that entry is used instead of the any entry, \
|
||||
e.g. eth0 is chosen before any. \
|
||||
Example #1 - "all broadcast input-multicast" \
|
||||
Example #2 - "eth0 broadcast input-multicast input=v2" \
|
||||
Example #3 - "ppp0 silent metric=2 input=no" \
|
||||
The following options are available to configure RIP on an \
|
||||
interface: \
|
||||
(1) broadcast - Use subnet broadcast output. \
|
||||
(2) multicast - Use multicast output (224.0.0.9). \
|
||||
(3) silent - Do not output RIP requests/responses. \
|
||||
(4) auth-md5=<password> - Enable GateD style md5 \
|
||||
authentication with <password>. \
|
||||
(5) auth-simple=<password] - Enable simple authentication \
|
||||
with <password>. \
|
||||
(6) input=<no|v1|v2> - Change input mode (no,v1 or v2 only). \
|
||||
No means that no input RIP packets are parsed. \
|
||||
(7) input-multicast - Accept multicast input (224.0.0.9). \
|
||||
(8) metric=<num> - Change default metric from 1 to <num>. \
|
||||
(9) version-1 - Enable RIPv1 (default is RIPv2) \
|
||||
(10) nopoison - Use simple Split Horizon instead of \
|
||||
poisonous. \
|
||||
Note - Only use one of broadcast, multicast or silent options.
|
||||
TYPE char *
|
||||
DEFAULT NULL
|
||||
}
|
||||
|
||||
/* SELECT_IPRIP_STATIC_ROUTES configuration parameters */
|
||||
/*
|
||||
* Don't specify default value so that workbench can prompt user to enter the
|
||||
* proper static route configuration if the component is explicitly included.
|
||||
*/
|
||||
|
||||
Parameter IPRIP_STATIC_ROUTE_1 {
|
||||
NAME RIP static route configuration
|
||||
SYNOPSIS RIP static route configuration. The syntax is: \
|
||||
"dst=<a.b.c.d> mask=<a.b.c.d> gw=<a.b.c.d> metric=<num>". \
|
||||
Example: \
|
||||
"dst=136.35.0.0 mask=255.255.0.0 gw=10.1.2.100 metric=3"
|
||||
TYPE char *
|
||||
DEFAULT NULL
|
||||
}
|
||||
|
||||
Parameter IPRIP_STATIC_ROUTE_2 {
|
||||
NAME RIP static route configuration
|
||||
SYNOPSIS RIP static route configuration. The syntax is: \
|
||||
"dst=<a.b.c.d> mask=<a.b.c.d> gw=<a.b.c.d> metric=<num>". \
|
||||
Example: \
|
||||
"dst=136.35.0.0 mask=255.255.0.0 gw=10.1.2.100 metric=3"
|
||||
TYPE char *
|
||||
DEFAULT NULL
|
||||
}
|
||||
|
||||
Parameter IPRIP_STATIC_ROUTE_3 {
|
||||
NAME RIP static route configuration
|
||||
SYNOPSIS RIP static route configuration. The syntax is: \
|
||||
"dst=<a.b.c.d> mask=<a.b.c.d> gw=<a.b.c.d> metric=<num>". \
|
||||
Example: \
|
||||
"dst=136.35.0.0 mask=255.255.0.0 gw=10.1.2.100 metric=3"
|
||||
TYPE char *
|
||||
DEFAULT NULL
|
||||
}
|
||||
|
||||
|
||||
#endif /* _WRS_CONFIG_COMPONENT_IPRIP*/
|
||||
@@ -0,0 +1,13 @@
|
||||
# Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: common.vxconfig,v $ $Revision: 1.7 $
|
||||
# $Source: /home/interpeak/CVSRoot/iprip/config/common.vxconfig,v $
|
||||
# $Author: myakan $
|
||||
# $State: Exp $ $Locker: $
|
||||
#
|
||||
# INTERPEAK_COPYRIGHT_STRING
|
||||
|
||||
#hidden option that enables IPRIP
|
||||
config SUPPORTS_RIP
|
||||
bool
|
||||
default y
|
||||
|
||||
|
||||
@@ -0,0 +1,205 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* INTERPEAK CONFIGURATION SOURCE FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: iprip_config.c,v $ $Revision: 1.12.12.2 $
|
||||
* $Source: /home/interpeak/CVSRoot/iprip/config/iprip_config.c,v $
|
||||
* $Author: hxie $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Lennart Bang <lob@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include "iprip_config.h"
|
||||
|
||||
#include "ipcom_cstyle.h"
|
||||
#include "ipcom_err.h"
|
||||
#include "ipcom_sysvar.h"
|
||||
#include <ipcom_shell.h>
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 TYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 5 EXTERN PROTOTYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
IP_PUBLIC int iprip_cmd_ripctrl(int argc, char **argv);
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 6 LOCAL PROTOTYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
IP_PUBLIC Ip_err iprip_configure(void);
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 7 DATA
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* SYSVAR CONFIGURATION
|
||||
*===========================================================================
|
||||
*/
|
||||
|
||||
IP_STATIC IP_CONST Ipcom_sysvar iprip_conf_sysvar[] =
|
||||
{
|
||||
/* RIP regular update timeout in seconds (minium interval). */
|
||||
IP_SYSVAR("iprip.update.seconds", "20", IPRIP_UPDATE_INTERVAL),
|
||||
|
||||
/* Variation to RIP updates in seconds (20-40 sec) */
|
||||
IP_SYSVAR("iprip.update.deltaseconds", "20", IPRIP_UPDATE_DELTA),
|
||||
|
||||
/* Seconds til a RIP route expires. Default value accordingly to RFC 2453. */
|
||||
IP_SYSVAR("iprip.expire.seconds", "180", IPRIP_EXPIRE_INTERVAL),
|
||||
|
||||
/* Seconds til a garbage RIP route is removed. Default value accordingly to RFC 2453. */
|
||||
IP_SYSVAR("iprip.garbage.seconds", "120", IPRIP_GARBAGE_INTERVAL),
|
||||
|
||||
/* RIP flash delay in seconds. */
|
||||
IP_SYSVAR("iprip.flash.seconds", "3", IPRIP_FLASH_DELAY),
|
||||
|
||||
/* Set to 1 if you require RIP requests to be authenticated as well. */
|
||||
IP_SYSVAR("iprip.auth.requests", "0", IPRIP_AUTH_ENABLED),
|
||||
|
||||
/* Set to 1 if you want to drop host route. */
|
||||
IP_SYSVAR("iprip.drop.hostroute", "0", IPRIP_DROP_HOSTROUTE),
|
||||
|
||||
{ IP_NULL, IP_NULL }
|
||||
};
|
||||
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* INTERFACES
|
||||
*===========================================================================
|
||||
* Description: Interface configuration.
|
||||
* Syntax: "[all | ifname] [options] ...
|
||||
* Options:
|
||||
* broadcast - Use subnet broadcast output.
|
||||
* multicast - Use multicast output (224.0.0.9).
|
||||
* input-multicast - Accept multicast input (224.0.0.9).
|
||||
* silent - Do not output RIP requests/responses.
|
||||
* auth-md5=<pw> - Enable GateD style md5 authentication with <pw>
|
||||
* auth-simple=<pw] - Enable simple authentication with <pw>.
|
||||
* input=<no|v1|v2> - Change input mode (no,v1 or v2 only).
|
||||
* metric=<num> - Change default metric from 1 to <num>.
|
||||
* version-1 - Enable RIPv1 (default is RIPv2)
|
||||
* nopoison - Use simple Split Horizon instead of poisonous.
|
||||
*
|
||||
* Note: Only use one of broadcast, multicast or silent options.
|
||||
*/
|
||||
IP_CONST char *iprip_interface_config[] =
|
||||
{
|
||||
#ifdef IPTESTENGINE
|
||||
#elif defined(IP_PORT_VXWORKS)
|
||||
#ifdef INCLUDE_IPRIP_IFCONFIG_1
|
||||
IPRIP_IFCONFIG_1,
|
||||
#endif /* INCLUDE_IPRIP_IFCONFIG_1 */
|
||||
|
||||
#ifdef INCLUDE_IPRIP_IFCONFIG_2
|
||||
IPRIP_IFCONFIG_2,
|
||||
#endif /* INCLUDE_IPRIP_IFCONFIG_2 */
|
||||
|
||||
#ifdef INCLUDE_IPRIP_IFCONFIG_3
|
||||
IPRIP_IFCONFIG_3,
|
||||
#endif /* INCLUDE_IPRIP_IFCONFIG_3 */
|
||||
|
||||
#ifdef INCLUDE_IPRIP_IFCONFIG_4
|
||||
IPRIP_IFCONFIG_4,
|
||||
#endif /* INCLUDE_IPRIP_IFCONFIG_4 */
|
||||
#else /* IP_PORT_VXWORKS */
|
||||
"all broadcast input-multicast",
|
||||
"eth0 broadcast input-multicast input=v2",
|
||||
"ppp0 silent metric=2 input=no",
|
||||
#endif
|
||||
IP_NULL
|
||||
};
|
||||
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* STATIC RIP ROUTES
|
||||
*===========================================================================
|
||||
* Description: Static RIP routes.
|
||||
* Syntax: "dst=a.b.c.d mask=a.b.c.d gw=a.b.c.d"
|
||||
* Options:
|
||||
* metric=<num> - Change default metric from 1 to <num>.
|
||||
*/
|
||||
IP_CONST char *iprip_staticroute_config[] =
|
||||
{
|
||||
"dst=136.35.0.0 mask=255.255.0.0 gw=10.1.2.100 metric=3",
|
||||
IP_NULL
|
||||
};
|
||||
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* AUTHENTICATION
|
||||
*===========================================================================
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
*===========================================================================
|
||||
* iprip_configure
|
||||
*===========================================================================
|
||||
* Description:
|
||||
* Parameters:
|
||||
* Returns:
|
||||
*
|
||||
*/
|
||||
IP_PUBLIC Ip_err
|
||||
iprip_configure(void)
|
||||
{
|
||||
/* Initialize IPRIP system variables. */
|
||||
(void)ipcom_sysvar_setv(iprip_conf_sysvar, 0);
|
||||
|
||||
(void)ipcom_shell_add_cmd("ripctrl", "ripctrl <command> [-options] [args]",
|
||||
"RIP daemon control", iprip_cmd_ripctrl,
|
||||
IPCOM_SHELL_PRIO_SAME, IPCOM_PROC_STACK_DEFAULT);
|
||||
|
||||
return IPCOM_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
******************************************************************************
|
||||
* INTERPEAK CONFIGURATION HEADER FILE
|
||||
*
|
||||
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: iprip_config.h,v $ $Revision: 1.12 $
|
||||
* $Source: /home/interpeak/CVSRoot/iprip/config/iprip_config.h,v $
|
||||
* $Author: lob $ $Date: 2006-12-27 16:42:01 $
|
||||
* $State: Exp $ $Locker: $
|
||||
*
|
||||
* INTERPEAK_COPYRIGHT_STRING
|
||||
* Design and implementation by Lennart Bang <lob@interpeak.se>
|
||||
******************************************************************************
|
||||
*/
|
||||
#ifndef IPRIP_CONFIG_H
|
||||
#define IPRIP_CONFIG_H
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 1 DESCRIPTION
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 2 INCLUDE FILES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
#include <ipcom_type.h>
|
||||
#include <ipcom_cstyle.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 3 DEFINES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/* Define to include support for gated-style MD5 authentication. */
|
||||
#ifdef IPCOM_USE_MD5
|
||||
#define IPRIP_INCLUDE_MD5
|
||||
#endif
|
||||
|
||||
/* Syslog priority */
|
||||
#ifdef IP_DEBUG
|
||||
#define IPRIP_SYSLOG_PRIORITY IPCOM_LOG_DEBUG
|
||||
#else
|
||||
#define IPRIP_SYSLOG_PRIORITY IPCOM_LOG_WARNING
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 4 TYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* 5 PROTOTYPES
|
||||
****************************************************************************
|
||||
*/
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
****************************************************************************
|
||||
* END OF FILE
|
||||
****************************************************************************
|
||||
*/
|
||||
Reference in New Issue
Block a user