original files of m241

This commit is contained in:
neelimap
2026-07-30 11:19:44 +05:30
parent 170c2b3f3a
commit afc7070c1f
12254 changed files with 7655111 additions and 0 deletions
@@ -0,0 +1,537 @@
/* 00comp_ipcom.cdf - IPCom Component configuration file */
/*
* Copyright (c) 2006-2010,2012 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
--------------------
02a,13mar08,rjq Detach INCLUDE_SHELL from TELNETS and SSH
01z,12nov22,j_y Added IPCOM_USER_SHELL_FUNCTION
01y,12nov12,rjq Change the default user ID to be 0xFFFFFFFF.
01x,02feb12,lzq Added INCLUDE_USE_WAITIF
01w,19aug10,ggz Added SHA256 hash and salt support
01v,08jun09,ggz Fix for defect WIND00167365
01u,01may09,ggz Added hashing capability for ipcom auth
01t,17apr09,rme Removed INCLUDE_USE_NATIVE_SHELL dependency on
INCLUDE_SHELL_INTERP_CMD.
01s,03Sep08,brg Added ipcom_drv_mux.o for custom ARP hook support.
01r,10sep07,mze INCLUDE_IPCOM_FS_SELECTION changed to SELECT_IPCOM_FS
01q,04jul07,rme Replaced INCLUDE_IPCOM_SHELL_SELECTION with FOLDER_SHELLS
Also updated 00comp_ipnet_apps.cdf INCLUDE_IPTELNETS
01p,07feb07,tkf Added INCLUDE_USE_NATIVE_SHELL dependency on
INCLUDE_SHELL_INTERP_CMD.
01o,29jan07,tkf Added INCLUDE_USE_NATIVE_SHELL and
INCLUDE_IPCOM_SHELL_SELECTION. Also changed some component
attributes of INCLUDE_USE_IPCOM_SHELL.
01n,20jan07,tkf Remove dependency on INCLUDE_XBD_RAMDRV Not required (WIND00085813).
01m,19jan07,tkf Add INCLUDE_IPCOM_USE_RAM_DISK (WIND00085813).
01l,08jan07,kch Added ipcom_ipd_config.c configlette to INCLUDE_IPCOM.
01k,08jan07,kch Removed duplicate ipcom_config.c configlette from
INCLUDE_IPCOM_USE_AUTH.
01j,07jan07,tkf Adjust INCLUDE_IPCOM_USE_VXSHELL_CMD component to accomodate
changes in latest code drop.
01i,13dec06,tkf INCLUDE_IPCOM_USE_VXSHELL_CMD.
01h,23sep06,kch Moved INCLUDE_IPCOM_USE_AUTH_RADIUS to 02comp_ipnet_radius.cdf.
01g,28aug06,kch Added SELECT_IPCOM_AUTHENTICATION to corrected IPCom
authentication configuration support.
01f,11aug06,tkf Remove INCLUDE_USE_IPCOM_SHELL dependency requirement on
INCLUDE_IPTELNETS.
01e,10aug06,kch Moved syslogd to 'IPNet Shell Commands' folder.
01d,02jul06,kch Added ipcom_drv_eth.o module to INCLUDE_IPCOM component.
01c,30jun06,dlk Added INCLUDE_IPCOM_USE_SYSLOGD.
01b,25jun06,dlk Make INCLUDE_IPCOM require INCLUDE_SOCKLIB and
INCLUDE_COMMON_NET. Specify initialization order for
INCLUDE_IPCOM in 00init_usernetwork.cdf, not here.
01a,22may06,kch created.
*/
Component INCLUDE_IPCOM {
NAME VxWorks IPCOM
SYNOPSIS VxWorks IPCOM
MODULES ipcom_vxworks.o ipcom_drv_eth.o ipcom_drv_mux.o
CONFIGLETTES ipcom_config.c ipcom_ipd_config.c
LINK_SYMS ipcom_register_dev_name_mapping
INIT_RTN ipcom_create ();
REQUIRES INCLUDE_IPCOM_USR
CFG_PARAMS IPCOM_ENABLE_USER_SHELL \
IPCOM_START_SHELL
}
Parameter IPCOM_ENABLE_USER_SHELL {
NAME Enable IPCOM user shell
SYNOPSIS Enable IPCOM user shell
TYPE BOOL
DEFAULT FALSE
}
Parameter IPCOM_START_SHELL {
NAME IPCOM user start shell function
SYNOPSIS IPCOM user start shell function
TYPE FUNCPTR
DEFAULT NULL
}
Component INCLUDE_IPCOM_USE_AUTH {
NAME Use Authentication
SYNOPSIS Use Authentication
MODULES ipcom_auth.o ipcom_auth_login.o
REQUIRES INCLUDE_IPCOM_USR
}
Component INCLUDE_CUSTOM_PW_HASH {
NAME Use Custom Password Hash Function
SYNOPSIS Use Custom Password Hash Function
REQUIRES INCLUDE_IPCOM_USE_AUTH
CFG_PARAMS IPCOM_AUTH_HASH_HOOK
}
Selection SELECT_IPCOM_AUTHENTICATION {
NAME IPCOM authentication configurations
SYNOPSIS IPCOM authentication configurations
COUNT 0-
CHILDREN INCLUDE_IPCOM_AUTH_1 \
INCLUDE_IPCOM_AUTH_2 \
INCLUDE_IPCOM_AUTH_3 \
INCLUDE_IPCOM_AUTH_4 \
INCLUDE_IPCOM_AUTH_5 \
INCLUDE_IPCOM_AUTH_6
}
Component INCLUDE_IPCOM_AUTH_1 {
NAME Auth configuration #1
SYNOPSIS Auth configuration #1
REQUIRES INCLUDE_IPCOM_USE_AUTH
CFG_PARAMS AUTH_USER_NAME1 AUTH_USER_PASSWD1 AUTH_USER_PASSWD1_SALT \
AUTH_USER_ID1 AUTH_USER_PASSWD1_HASH
}
Component INCLUDE_IPCOM_AUTH_2 {
NAME Auth configuration #2
SYNOPSIS Auth configuration #2
REQUIRES INCLUDE_IPCOM_USE_AUTH
CFG_PARAMS AUTH_USER_NAME2 AUTH_USER_PASSWD2 AUTH_USER_PASSWD2_SALT \
AUTH_USER_ID2 AUTH_USER_PASSWD2_HASH
}
Component INCLUDE_IPCOM_AUTH_3 {
NAME Auth configuration #3
SYNOPSIS Auth configuration #3
REQUIRES INCLUDE_IPCOM_USE_AUTH
CFG_PARAMS AUTH_USER_NAME3 AUTH_USER_PASSWD3 AUTH_USER_PASSWD3_SALT \
AUTH_USER_ID3 AUTH_USER_PASSWD3_HASH
}
Component INCLUDE_IPCOM_AUTH_4 {
NAME Auth configuration #4
SYNOPSIS Auth configuration #4
REQUIRES INCLUDE_IPCOM_USE_AUTH
CFG_PARAMS AUTH_USER_NAME4 AUTH_USER_PASSWD4 AUTH_USER_PASSWD4_SALT \
AUTH_USER_ID4 AUTH_USER_PASSWD4_HASH
}
Component INCLUDE_IPCOM_AUTH_5 {
NAME Auth configuration #5
SYNOPSIS Auth configuration #5
REQUIRES INCLUDE_IPCOM_USE_AUTH
CFG_PARAMS AUTH_USER_NAME5 AUTH_USER_PASSWD5 AUTH_USER_PASSWD5_SALT \
AUTH_USER_ID5 AUTH_USER_PASSWD5_HASH
}
Component INCLUDE_IPCOM_AUTH_6 {
NAME Auth configuration #6
SYNOPSIS Auth configuration #6
REQUIRES INCLUDE_IPCOM_USE_AUTH
CFG_PARAMS AUTH_USER_NAME6 AUTH_USER_PASSWD6 AUTH_USER_PASSWD6_SALT \
AUTH_USER_ID6 AUTH_USER_PASSWD6_HASH
}
Component INCLUDE_USE_IPCOM_SHELL {
NAME Uses IPCOM-specific shell
SYNOPSIS Uses IPCOM-specific shell
MODULES ipcom_shell.o
LINK_SYMS ipcom_start_shell
REQUIRES INCLUDE_IPCOM
CFG_PARAMS IPCOM_SHELL_PROMPT
}
Component INCLUDE_USE_NATIVE_SHELL {
NAME Uses native VxWorks shell
SYNOPSIS Uses native VxWorks shell
MODULES ipcom_pshell.o
LINK_SYMS ipcom_start_shell_native
REQUIRES INCLUDE_IPCOM INCLUDE_SHELL INCLUDE_SHELL_INTERP_CMD
CFG_PARAMS IPCOM_SHELL_PROMPT
}
Component INCLUDE_IPCOM_USE_VXSHELL_CMD {
NAME IPCOM VxShell Command
SYNOPSIS IP shell command to enter the VxWorks shell. The command blocks \
until the VxWorks shell exits.
MODULES ipcom_cmd_vxshell.o
LINK_SYMS ipcom_cmd_vxshell
REQUIRES INCLUDE_SHELL
}
Selection SELECT_IPCOM_SHELL {
NAME Select the shell type to use
SYNOPSIS Select the shell type to use
COUNT 1-1
CHILDREN INCLUDE_USE_IPCOM_SHELL \
INCLUDE_USE_NATIVE_SHELL
DEFAULTS INCLUDE_USE_NATIVE_SHELL
}
Component INCLUDE_IPCOM_USE_RAM_DISK {
NAME IPCOM RAM Disk Support
SYNOPSIS Initialize VxWorks RAM Disk.
MODULES ipcom_ramdisk.o
LINK_SYMS vxfs_ramdisk_init
}
Component INCLUDE_IPCOM_FS_IPCOM {
NAME IPCOM uses IPCOM-specific file system
SYNOPSIS IPCOM uses IPCOM-specific file system
MODULES ipcom_file.o
LINK_SYMS ipcom_file_proc_exit
}
Component INCLUDE_IPCOM_FS_NATIVE {
NAME IPCOM uses native VxWorks file system
SYNOPSIS IPCOM uses native VxWorks file system
REQUIRES INCLUDE_IPCOM_USE_RAM_DISK
}
Selection SELECT_IPCOM_FS {
NAME IPCOM File System
SYNOPSIS Select the IPCOM File System Type to use
COUNT 1-1
CHILDREN INCLUDE_IPCOM_FS_NATIVE \
INCLUDE_IPCOM_FS_IPCOM
DEFAULTS INCLUDE_IPCOM_FS_NATIVE
}
Component INCLUDE_IPTELNETS {
NAME TELNET Server
SYNOPSIS TELNET Server
MODULES ipcom_telnet.o
REQUIRES INCLUDE_IPCOM INCLUDE_IPNET
_CHILDREN FOLDER_TELNET
CONFIGLETTES ipcom_telnets_config.c
CFG_PARAMS IPCOM_TELNET_PORT \
IPCOM_TELNET_MAX_CLIENTS \
IPCOM_TELNET_IDLE_TIMEOUT
}
Component INCLUDE_IPCOM_USR {
NAME IPCOM user side functions
SYNOPSIS IPCOM user side functions
INIT_RTN ipcom_usr_create ();
_CHILDREN FOLDER_NOT_VISIBLE
}
Component INCLUDE_USE_WAITIF {
NAME Wait for an address available
SYNOPSIS Wait for an address at VxWorks startup
MODULES ipcom_waitif.o
INIT_RTN ipcom_waitif_address ();
REQUIRES INCLUDE_IPCOM
_CHILDREN FOLDER_NET_CORE
}
/******************** Configuration Parameters *****************************/
/* INCLUDE_IPCOM_AUTH_1 configuration parameters */
Parameter AUTH_USER_NAME1 {
NAME User name #1
SYNOPSIS User name
TYPE char *
DEFAULT NULL
}
Parameter AUTH_USER_PASSWD1 {
NAME Password #1
SYNOPSIS Password
TYPE char *
DEFAULT NULL
}
Parameter AUTH_USER_PASSWD1_SALT {
NAME Password salt #1
SYNOPSIS Password salt
TYPE char *
DEFAULT NULL
}
Parameter AUTH_USER_ID1 {
NAME Userid #1
SYNOPSIS Userid. If userid is 0xFFFFFFFF then next available \
user ID will automatically be allocated.
TYPE uint
DEFAULT 0xFFFFFFFF
}
Parameter AUTH_USER_PASSWD1_HASH {
NAME Password #1 format
SYNOPSIS Use this parameter to specify the type of the entred password. \
Set to TRUE if the password is hashed. Set to FALSE if the password \
is in a cleartext format.
TYPE BOOL
DEFAULT FALSE
}
/* INCLUDE_IPCOM_AUTH_2 configuration parameters */
Parameter AUTH_USER_NAME2 {
NAME User name #2
SYNOPSIS User name
TYPE char *
DEFAULT NULL
}
Parameter AUTH_USER_PASSWD2 {
NAME Password #2
SYNOPSIS Password
TYPE char *
DEFAULT NULL
}
Parameter AUTH_USER_PASSWD2_SALT {
NAME Password salt #2
SYNOPSIS Password salt
TYPE char *
DEFAULT NULL
}
Parameter AUTH_USER_ID2 {
NAME Userid #2
SYNOPSIS Userid. If userid is 0xFFFFFFFF then next available \
user ID will automatically be allocated.
TYPE uint
DEFAULT 0xFFFFFFFF
}
Parameter AUTH_USER_PASSWD2_HASH {
NAME Password #2 format
SYNOPSIS Use this parameter to specify the type of the entred password. \
Set to TRUE if the password is hashed. Set to FALSE if the password \
is in a cleartext format.
TYPE BOOL
DEFAULT FALSE
}
/* INCLUDE_IPCOM_AUTH_3 configuration parameters */
Parameter AUTH_USER_NAME3 {
NAME User name #3
SYNOPSIS User name
TYPE char *
DEFAULT NULL
}
Parameter AUTH_USER_PASSWD3 {
NAME Password #3
SYNOPSIS Password
TYPE char *
DEFAULT NULL
}
Parameter AUTH_USER_PASSWD3_SALT {
NAME Password salt #3
SYNOPSIS Password salt
TYPE char *
DEFAULT NULL
}
Parameter AUTH_USER_ID3 {
NAME Userid #3
SYNOPSIS Userid. If userid is 0xFFFFFFFF then next available \
user ID will automatically be allocated.
TYPE uint
DEFAULT 0xFFFFFFFF
}
Parameter AUTH_USER_PASSWD3_HASH {
NAME Password #3 format
SYNOPSIS Use this parameter to specify the type of the entred password. \
Set to TRUE if the password is hashed. Set to FALSE if the password \
is in a cleartext format.
TYPE BOOL
DEFAULT FALSE
}
/* INCLUDE_IPCOM_AUTH_4 configuration parameters */
Parameter AUTH_USER_NAME4 {
NAME User name #4
SYNOPSIS User name
TYPE char *
DEFAULT NULL
}
Parameter AUTH_USER_PASSWD4 {
NAME Password #4
SYNOPSIS Password
TYPE char *
DEFAULT NULL
}
Parameter AUTH_USER_PASSWD4_SALT {
NAME Password salt #4
SYNOPSIS Password salt
TYPE char *
DEFAULT NULL
}
Parameter AUTH_USER_ID4 {
NAME Userid #4
SYNOPSIS Userid. If userid is 0xFFFFFFFF then next available \
user ID will automatically be allocated.
TYPE uint
DEFAULT 0xFFFFFFFF
}
Parameter AUTH_USER_PASSWD4_HASH {
NAME Password #4 format
SYNOPSIS Use this parameter to specify the type of the entred password. \
Set to TRUE if the password is hashed. Set to FALSE if the password \
is in a cleartext format.
TYPE BOOL
DEFAULT FALSE
}
/* INCLUDE_IPCOM_AUTH_5 configuration parameters */
Parameter AUTH_USER_NAME5 {
NAME User name #5
SYNOPSIS User name
TYPE char *
DEFAULT NULL
}
Parameter AUTH_USER_PASSWD5 {
NAME Password #5
SYNOPSIS Password
TYPE char *
DEFAULT NULL
}
Parameter AUTH_USER_PASSWD5_SALT {
NAME Password salt #5
SYNOPSIS Password salt
TYPE char *
DEFAULT NULL
}
Parameter AUTH_USER_ID5 {
NAME Userid #5
SYNOPSIS Userid. If userid is 0xFFFFFFFF then next available \
user ID will automatically be allocated.
TYPE uint
DEFAULT 0xFFFFFFFF
}
Parameter AUTH_USER_PASSWD5_HASH {
NAME Password #5 format
SYNOPSIS Use this parameter to specify the type of the entred password. \
Set to TRUE if the password is hashed. Set to FALSE if the password \
is in a cleartext format.
TYPE BOOL
DEFAULT FALSE
}
/* INCLUDE_IPCOM_AUTH_6 configuration parameters */
Parameter AUTH_USER_NAME6 {
NAME User name #6
SYNOPSIS User name
TYPE char *
DEFAULT NULL
}
Parameter AUTH_USER_PASSWD6 {
NAME Password #6
SYNOPSIS Password
TYPE char *
DEFAULT NULL
}
Parameter AUTH_USER_PASSWD6_SALT {
NAME Password salt #6
SYNOPSIS Password salt
TYPE char *
DEFAULT NULL
}
Parameter AUTH_USER_ID6 {
NAME Userid #6
SYNOPSIS Userid. If userid is 0xFFFFFFFF then next available \
user ID will automatically be allocated.
TYPE uint
DEFAULT 0xFFFFFFFF
}
Parameter AUTH_USER_PASSWD6_HASH {
NAME Password #6 format
SYNOPSIS Use this parameter to specify the type of the entred password. \
Set to TRUE if the password is hashed. Set to FALSE if the password \
is in a cleartext format.
TYPE BOOL
DEFAULT FALSE
}
Parameter IPCOM_AUTH_HASH_HOOK {
NAME User defined hash routine
SYNOPSIS Use this pointer to define a user defined hashing function. \
The default function is ipcom_auth_default_hash_rtn, the \
same function used when INCLUDE_CUSTOM_PW_HASH is not \
included.
TYPE Ipcom_auth_hash_hook
DEFAULT ipcom_auth_default_hash_rtn
}
/* INCLUDE_USE_IPCOM_SHELL configuration parameters */
Parameter IPCOM_SHELL_PROMPT {
NAME IPCOM Shell Prompt
SYNOPSIS The prompt displayed by the shell when it is waiting for \
commands. Supported special characters are: \
"\p" - shell process name \
"\P" - shell process id \
"\i" - the IP address of the target \
"\w" - the current working directory \
"\W" - the basename of the current working directory \
"\V" - ipcom_getenv("VR")
TYPE char *
DEFAULT "\\i$\\w>"
}
/* INCLUDE_IPTELNETS configuration parameters */
Parameter IPCOM_TELNET_PORT {
NAME IPCOM TELNET port
SYNOPSIS IPCOM TELNET server port in host endian.
TYPE char *
DEFAULT "23"
}
Parameter IPCOM_TELNET_MAX_CLIENTS {
NAME Maximum number of simultaneous TELNET clients
SYNOPSIS IPCOM_TELNET_MAX_CLIENTS controls the maximum number of simultaneous \
telnet clients. If set to 0, the number is unlimited.
TYPE char *
DEFAULT "0"
}
Parameter IPCOM_TELNET_IDLE_TIMEOUT {
NAME Idle timeout for telnet client
SYNOPSIS Idle timeout(in minutes) for telnet client. If no any input during \
this period, the telnet client will be auto logout. If set to 0, the \
telnet client won't be logout.
TYPE char *
DEFAULT "360"
}
@@ -0,0 +1,67 @@
/* 01comp_sec_key_db.cdf - Secure Key DB configuration file */
/*
* Copyright (c) 2006-2009 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
--------------------
*/
Folder KEY_DATABASE {
NAME Key Database
SYNOPSIS Key Database
CHILDREN INCLUDE_IPCOM_USE_KEY_DB \
INCLUDE_IPCRYPTO_USE_KEY_DB_EXAMPLE_KEYS \
INCLUDE_IPCOM_KEY_DB_CMD
}
Component INCLUDE_IPCOM_USE_KEY_DB {
NAME IPCOM key database support
SYNOPSIS The IPCOM key database stores keys in encrypted format. \
Please note that the IPCOM_KEY_DB_KEY_ENCRYPTING_KEY parameter \
must be explicitly set.
MODULES ipcom_key_db.o
LINK_SYMS ipcom_key_db_buf_get
CFG_PARAMS IPCOM_KEY_DB_KEY_ENCRYPTING_KEY IPCOM_KEY_DB_FILE_ROOT
}
Component INCLUDE_IPCRYPTO_USE_KEY_DB_EXAMPLE_KEYS {
NAME IPCOM key database example keys
SYNOPSIS Example RSA and DSA keys to use for demos and testing. Must not be \
used in deployed systems.
REQUIRES INCLUDE_IPCOM_USE_KEY_DB
}
Component INCLUDE_IPCOM_KEY_DB_CMD {
NAME IPCOM key database shell command
SYNOPSIS Shell command to manipulate the IPCOM key database.
REQUIRES INCLUDE_IPCOM_USE_KEY_DB INCLUDE_IPCOM_SHELL_CMD
}
Parameter IPCOM_KEY_DB_KEY_ENCRYPTING_KEY {
NAME Key Encrypting Key
SYNOPSIS Key used to encrypt keys in the IPCOM key database. \
This parameter should be set to a random string of at least 40 characters, \
containing both lower and upper case, numbers and special characters. \
IPCOM_KEY_DB_KEY_ENCRYPTING_KEY has no default value on purpose. This \
will force each customer to set a unique value.
TYPE char *
}
Parameter IPCOM_KEY_DB_FILE_ROOT {
NAME Key DB file root
SYNOPSIS Top directory where the key DB directory structure shall be created. \
For backwards compatibility reasons the default \
value is set to /ram. In deployed systems the key db file root would
be set to a directory in a persistent file system, e.g. /flash
TYPE char *
DEFAULT "/ram"
}
@@ -0,0 +1,80 @@
/*
DESCRIPTION
This file contains updated descriptions for some vxWorks components
defined in 00Forwarder.cdf. It updates those definitions with new ones needed
to support the coprocessor abstraction.
*/
Component INCLUDE_P4080_VXB_FORWARDER {
NAME P4080 VxBus Driver forwarder support
SYNOPSIS Enables forwarding offload support. This is required when \
libraries are built with IPCOM_USE_FORWARDER defined. This component \
requires either the INCLUDE_P4080_VXB_END VxBus network driver.
CONFIGLETTES ipcom_config.c
_CHILDREN FOLDER_DRIVERS
INIT_RTN ipcom_reserve_fw_cpu();
_INIT_ORDER usrInit
INIT_AFTER INCLUDE_BASE_KERNEL
INIT_BEFORE INCLUDE_KERNEL
LINK_SYMS ipcom_forwarder_create
_DEFAULTS FOLDER_DRIVERS
}
Component INCLUDE_P4080_FORWARDER_AMP_DATAPLANE {
NAME P4080 S-AMP forwarder acceleration core
SYNOPSIS Enable for a VB image that runs a forwarder acceleration \
engine task in the P4080 supervised AMP system. Requires libaries built with \
IPCOM_USE_FORWARDER, IPCOM_FORWARDER_AMP, and IPCOM_USE_P4080_FORWARDER \
defined.
CONFIGLETTES ipcom_config.c
_CHILDREN FOLDER_DRIVERS
INIT_RTN ipcom_forwarder_core_start();
_INIT_ORDER usrRoot
INIT_BEFORE usrNetworkInit
PROTOTYPE extern void ipcom_forwarder (void);
LINK_SYMS ipcom_forwarder
_DEFAULTS FOLDER_DRIVERS
}
Parameter P4080_FORWARDER_CACHE_SIZE {
NAME Forwarder flow cache size
SYNOPSIS Number of entries in the FW cache. Allowed values are 256 \
to 65536. This value is rounded upwards to the nearest power of 2; for \
example, 4000 is rounded upwards to 4096.
TYPE UINT
_CFG_PARAMS INCLUDE_P4080_VXB_FORWARDER
DEFAULT 4000
}
Parameter P4080_FORWARDER_MTU {
NAME Nominal MTU for forwarder-capable network ports (1500 or 9000)
SYNOPSIS All network ports in the system that support forwarding \
acceleration use this value as the nominal maximum MTU. \
The value should be 1500 or 9000.
TYPE UINT
_CFG_PARAMS INCLUDE_P4080_VXB_FORWARDER
DEFAULT 1500
}
Parameter P4080_FORWARDER_NUMA_POOL_BASE {
NAME Base Address of shared memory pool NUMA
SYNOPSIS Base Address of the shared memory pool named NUMA \
used among the forwarders.
_CFG_PARAMS INCLUDE_P4080_VXB_FORWARDER INCLUDE_P4080_FORWARDER_AMP_DATAPLANE
DEFAULT 0xFC000000
}
Parameter P4080_FORWARDER_NUMA_POOL_SIZE {
NAME Size of shared memory pool NUMA
SYNOPSIS Base Address of the shared memory pool named NUMA \
used among the forwarders.
_CFG_PARAMS INCLUDE_P4080_VXB_FORWARDER INCLUDE_P4080_FORWARDER_AMP_DATAPLANE
DEFAULT 0x00800000
}
@@ -0,0 +1,12 @@
# Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: common.vxconfig,v $ $Revision: 1.4 $
# $Source: /home/interpeak/CVSRoot/ipcom/config/common.vxconfig,v $
# $Author: rboden $
# $State: Exp $ $Locker: $
#
# INTERPEAK_COPYRIGHT_STRING
#hidden option that enables IPFORWARDER
config SUPPORTS_FORWARDER
bool
default y
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,806 @@
/*
******************************************************************************
* INTERPEAK CONFIGURATION HEADER FILE
*
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: ipcom_config.h,v $ $Revision: 1.211.10.2 $
* $Source: /home/interpeak/CVSRoot/ipcom/config/ipcom_config.h,v $
* $Author: svc-cmnet $ $Date: 2013-03-13 07:45:13 $
* $State: Exp $ $Locker: $
*
* INTERPEAK_COPYRIGHT_STRING
* Design and implementation by Lennart Bang <lob@interpeak.se>
******************************************************************************
*/
#ifndef IPCOM_CONFIG_H
#define IPCOM_CONFIG_H
/*
****************************************************************************
* 1 DESCRIPTION
****************************************************************************
* Generic IPCOM Configuration. Also see config/ipcom_config.c.
*
* Also see port/<rtos>/config/ipcom_pconfig.h for RTOS port specific config.
*/
/*
****************************************************************************
* 2 PORT CONFIGURATION
****************************************************************************
* Port configuration reside in port/<rtos>/config/ipcom_pconfig.h.
* Note:
* Do not EDIT the macros in this section, they only reside here because
* they must be defined before including ipcom_pconfig.h
*/
/* Valid IPCOM_USE_FILE, IPCOM_USE_SOCK, IPCOM_USE_SHELL #if values: */
#define IPCOM_FILE_NONE 1
#define IPCOM_FILE_IPCOM 2
#define IPCOM_FILE_NATIVE 3
#define IPCOM_SOCK_IPLITE 1
#define IPCOM_SOCK_IPNET 2
#define IPCOM_SOCK_IPCOM 3 /* IPNET or IPLITE */
#define IPCOM_SOCK_NATIVE 4
#define IPCOM_SOCK_NONE 5
#define IPCOM_SHELL_NONE 1
#define IPCOM_SHELL_MINI 2
#define IPCOM_SHELL_IPCOM 3
#define IPCOM_SHELL_NATIVE 4
#define IPCOM_NETIF_IPCOM 1
#define IPCOM_NETIF_NATIVE 2
#define IPCOM_ENV_NONE 1
#define IPCOM_ENV_IPCOM 2
#define IPCOM_ENV_NATIVE 3
/* Port specific configuration. */
#include "ipcom_pconfig.h"
#ifndef IPCOM_NO_SA_LEN
#define IPCOM_USE_SA_LEN 1
#endif
#ifndef IPCOM_USE_FILE
#define IPCOM_USE_FILE IPCOM_FILE_NATIVE
#endif
#if defined(IP_SIZE) && !defined(IPCRYPTO) && !defined(IPTFTPC) && !defined(IPTFTPS) && !defined(IPFTPC) && !defined(IPFTPS)
#undef IPCOM_USE_FILE
#define IPCOM_USE_FILE IPCOM_FILE_NONE
#endif
#ifndef IPCOM_USE_SOCK
#if defined(IPNET) && defined(IPLITE)
#error cant_define_IPNET_and_IPLITE___choose_one
#elif defined(IPNET)
#define IPCOM_USE_SOCK IPCOM_SOCK_IPNET
#elif defined(IPLITE)
#define IPCOM_USE_SOCK IPCOM_SOCK_IPLITE
#elif defined(IP_PORT_OSE5)
#define IPCOM_USE_SOCK IPCOM_SOCK_IPCOM
#else
#define IPCOM_USE_SOCK IPCOM_SOCK_NATIVE
#endif
#endif
#ifdef IP_PORT_LKM
#define IPCOM_USE_SHELL IPCOM_SHELL_NONE
#else
/* Remove shell if IPBUILD=size and IPSSH is not included in the build */
#if defined(IP_SIZE) && !defined(IPSSH)
#ifdef IPCOM_USE_SHELL
#undef IPCOM_USE_SHELL
#endif
#define IPCOM_USE_SHELL IPCOM_SHELL_NONE
#endif /* defined(IP_SIZE) && !defined(IPSSH) */
#ifndef IPCOM_USE_SHELL
#define IPCOM_USE_SHELL IPCOM_SHELL_IPCOM
#endif
#endif
/*
****************************************************************************
* 3 INCLUDE FILES
****************************************************************************
*/
#ifdef __cplusplus
extern "C" {
#endif
/*
****************************************************************************
* 4 FEATURES
****************************************************************************
*/
/* #define IP_ASSERT */
/*
*===========================================================================
* IP_LW_DEBUG
*===========================================================================
* Define to include Light Weight debug features
#define IP_LW_DEBUG
*/
#ifdef IP_LW_DEBUG
#define IPCOM_FWD_PKT_POOL_DEBUG
#endif
/*
*===========================================================================
* IPCOM_NAE_HW_TX_CHKSUM
*===========================================================================
* Define when hardware has the ability to calculate TCP chksum on transmit
#define IPCOM_NAE_HW_TX_CHKSUM
*/
#if defined(IPCOM_NAE_HW_TX_CHKSUM) && !defined(IPCOM_FORWARDER_NAE)
#define IPCOM_FORWARDER_NAE
#endif
/*
*===========================================================================
* IPCOM_MAX_NAE
*===========================================================================
* Maximum number of NAE:s that is supported.
*/
#ifndef IPCOM_MAX_NAE
#define IPCOM_MAX_NAE 8
#endif
/*
*===========================================================================
* IPCOM_NAE_UTIL
*===========================================================================
* Define to include nae utility functions:
* nae_ping
* nae_util
* nae_topple
* nae_enable
* nae_disable
*/
#ifndef IP_PORT_UNIX
#define IPCOM_NAE_UTIL
#endif
/*
*===========================================================================
* IPCOM_NAE_RAMLOG
*===========================================================================
* Define to enable "per NAE" ramlog. Use 'nae_ramlog <nae id>' to display log
#define IPCOM_NAE_RAMLOG
*/
/*
*===========================================================================
* MIPC_POW_DEBUG
*===========================================================================
* Define to enable MIPC over Cavium POW debug printouts
#define MIPC_POW_DEBUG
*/
/*
*===========================================================================
* IPCOM_MIPS_CALLSTACK
*===========================================================================
* Define to enable callstack evaluator for MIPS targets
#define IPCOM_MIPS_CALLSTACK
*/
/* Automatically define IPCOM_NAE_DEBUG if sub-defines are set */
#if defined(IPCOM_NAE_RAMLOG) || defined(IPCOM_MIPS_CALLSTACK)
#ifndef IPCOM_NAE_DEBUG
#define IPCOM_NAE_DEBUG
#endif
#endif
/*
*===========================================================================
* IPCOM_USE_FORWARDER
*===========================================================================
* Define to include Multi-core polling forwarders.
#define IPCOM_USE_FORWARDER
*/
/* Enable automatically if a forwarder type's been defined */
#if defined(IPCOM_FORWARDER_NAE) || defined(IPCOM_FORWARDER_AMP) || defined(IPCOM_FORWARDER_SMP)
#define IPCOM_USE_FORWARDER
#define IPCOM_USE_FORWARDER_CACHE_WAYS
#endif
/*
*===========================================================================
* IPCOM_USE_FORWARDER_VLAN
*===========================================================================
* Define to include VLAN (Virtual LAN) support for Multi-core polling forwarders
#define IPCOM_USE_FORWARDER_VLAN
*/
/*
*===========================================================================
* IPCOM_USE_FORWARDER_VLAN_STACKING
*===========================================================================
* Define to include VLAN stacking support for Multi-core polling forwarders
#define IPCOM_USE_FORWARDER_VLAN_STACKING
*/
#ifdef _WRS_CONFIG_COMPONENT_VLAN_STACKING_FORWARDER
#define IPCOM_USE_FORWARDER_VLAN_STACKING
#endif
/*
*===========================================================================
* SVLAN_SC_FWD_TABLE
*===========================================================================
* Define to enable establishing fast forward table on a SC VLAN port
#define SVLAN_SC_FWD_TABLE
*/
#ifdef IPCOM_USE_FORWARDER_VLAN_STACKING
#define SVLAN_SC_FWD_TABLE
#endif
/*
*===========================================================================
* IPCOM_USE_FORWARDER_CACHE_WAYS
*===========================================================================
* Define to use ways in the forwarding cache.
*
* Cache ways are used to handle collisions, i.e. when two or more flows use
* the same cache entry. When more than one cache way is configured there are
* alternative entries for colliding flows. Three definitions control how
* cache ways are used. Only one of these should typically be defined.
*
* IPCOM_USE_FORWARDER_CACHE_WAYS
* When defined 6 consecutive cache entries are avalaible to colliding flows
* This works for most application. The other defines are available for
* experimental use only.
*
* IPCOM_FORWARDER_CACHE_WAYS
* Define when more or less entries should be available to colliding flows.
*
* IPCOM_FORWARDER_TRUE_CACHE_WAYS_SHIFT
* A variant of cache ways is called "true cache ways". This reserves a number
* of cache entries for a set of flows. This is just a variant the would potentially
* allow a larger forwarding cache.
Define one of the three below to use cache ways
#define IPCOM_USE_FORWARDER_CACHE_WAYS
#define IPCOM_FORWARDER_CACHE_WAYS (4)
#define IPCOM_FORWARDER_TRUE_CACHE_WAYS_SHIFT (2)
Define this to use upper bits rather than lower bits (experimental use only)
#define IPCOM_FORWARDER_USE_UPPER_TAG_BITS
*/
/* #define IPCOM_USE_FORWARDER_CACHE_WAYS */
/* #define IPCOM_FORWARDER_CACHE_WAYS (3) */
/* #define IPCOM_FORWARDER_TRUE_CACHE_WAYS_SHIFT (2) */
/* FIXME:
- Move parts of this to autoconf?
- Move _WRS_CONFIG switch to port/vxworks?
*/
#if defined(IPCOM_FORWARDER_CACHE_WAYS) && defined(IPCOM_FORWARDER_TRUE_CACHE_WAYS_SHIFT)
#if IPCOM_FORWARDER_CACHE_WAYS != (1<<IPCOM_FORWARDER_TRUE_CACHE_WAYS_SHIFT)
#error "IPCOM_FORWARDER_CACHE_WAYS != (1<<IPCOM_FORWARDER_TRUE_CACHE_WAYS_SHIFT)"
#endif
#endif
#if defined(IPCOM_USE_FORWARDER_CACHE_WAYS) && !defined(IPCOM_FORWARDER_CACHE_WAYS)
#define IPCOM_FORWARDER_CACHE_WAYS (6)
#endif
#if defined(IPCOM_FORWARDER_CACHE_WAYS) && !defined(IPCOM_USE_FORWARDER_CACHE_WAYS)
#define IPCOM_USE_FORWARDER_CACHE_WAYS
#endif
#ifndef IPCOM_FORWARDER_TRUE_CACHE_WAYS_SHIFT
#define IPCOM_FORWARDER_TRUE_CACHE_WAYS_SHIFT (0)
#endif
#if IPCOM_FORWARDER_TRUE_CACHE_WAYS_SHIFT > 0
#ifndef IPCOM_USE_FORWARDER_CACHE_WAYS
#define IPCOM_USE_FORWARDER_CACHE_WAYS
#undef IPCOM_FORWARDER_CACHE_WAYS
#define IPCOM_FORWARDER_CACHE_WAYS (1 << IPCOM_FORWARDER_TRUE_CACHE_WAYS_SHIFT)
#endif
#endif
#define IPCOM_FORWARDER_TRUE_CACHE_WAYS (1 << IPCOM_FORWARDER_TRUE_CACHE_WAYS_SHIFT)
/* The multi-core polling forwarders are supported only in MSP installations */
#if !defined (IPNET_MSP_DISTRIBUTION)
#undef IPCOM_USE_FORWARDER
#undef IPCOM_USE_FORWARDER_VLAN
#undef IPCOM_USE_FORWARDER_IPSEC
#undef IPCOM_USE_FORWARDER_CACHE_WAYS
#undef IPCOM_USE_FORWARDER_VLAN_STACKING
#endif
#ifndef IPCOM_USE_FORWARDER
#if defined(IPCOM_USE_FORWARDER_VLAN) || \
defined(IPCOM_USE_FORWARDER_IPSEC) || \
defined(IPCOM_USE_FORWARDER_CACHE_WAYS) || \
defined(IPCOM_USE_FORWARDER_VLAN_STACKING)
#define IPCOM_USE_FORWARDER
#endif
#endif
#ifdef IPCOM_USE_FORWARDER
#if defined(IP_PORT_VXWORKS)
#if defined (__i386) || defined (__386)
#define IPCOM_USE_NEHALEM_FORWARDER
#define IPCOM_USE_NEHALEM_HYPERTHREAD
/* Use a common transmit routine for both forwarder and NAE */
#define ipcom_forwarder_tx_fw ipcom_forwarder_tx
/* The selective invalidation mechanism doesn't support VLAN forwarding */
#ifndef IPCOM_USE_FORWARDER_VLAN
#define IPCOM_FORWARDER_SELECTIVE_INVAL
#endif
#elif defined(_WRS_MIPS_N32_ABI)
#define IPCOM_USE_OCTEON_FORWARDER
#else
/* else, assume p4080 */
#define IPCOM_USE_P4080_FORWARDER
#define IPCOM_PORTABLE_IPC_SPINLOCK
#endif /* defined (__i386) || defined (__386) */
#endif /* defined(IPCOM_PORT_VXWORKS) */
/*
* For now, we assume an AMP forwarder in uniprocessor builds,
* and a non-AMP forwarder in SMP builds.
*/
#if !defined(IPCOM_FORWARDER_SMP) && !defined(IPCOM_FORWARDER_AMP) && !defined(IPCOM_FORWARDER_NAE)
#ifdef IPCOM_USE_SMP
#define IPCOM_FORWARDER_SMP
#else /* IPCOM_USE_SMP */
#define IPCOM_FORWARDER_AMP
#endif /* IPCOM_USE_SMP */
#endif /* !defined(IPCOM_FORWARDER_SMP) && !defined(IPCOM_FORWARDER_AMP) && !defined(IPCOM_FORWARDER_NAE) */
#if defined(IPCOM_USE_NEHALEM_FORWARDER) || defined(IPCOM_USE_P4080_FORWARDER)
#define IPCOM_FORWARDER_AMP
#endif
#define IPCOM_USE_HW_CHECKSUM_TX_DISABLED
#ifndef IPCOM_USE_FORWARDER_CACHE_WAYS
#define IPCOM_USE_FORWARDER_CACHE_WAYS
#define IPCOM_FORWARDER_CACHE_WAYS (6)
#define IPCOM_FORWARDER_TRUE_CACHE_WAYS_SHIFT (0)
#define IPCOM_FORWARDER_TRUE_CACHE_WAYS (1 << IPCOM_FORWARDER_TRUE_CACHE_WAYS_SHIFT)
#endif /* IPCOM_USE_FORWARDER_CACHE_WAYS */
#endif /* IPCOM_USE_FORWARDER */
#ifdef IPCOM_USE_FORWARDER
/* #define IPCOM_USE_STANDARD_MIPC */
#endif /* IPCOM_USE_FORWARDER */
/*
*===========================================================================
* IPCOM_NAE_MULTICAST_MULTISEG
*===========================================================================
* Define to include multi-segment multi-port packet transmission on
* Intel Nehalem/Westmere forwarder
#define IPCOM_NAE_MULTICAST_MULTISEG
*/
#if defined(IPCOM_USE_FORWARDER_VLAN_STACKING) && defined(IPCOM_USE_NEHALEM_FORWARDER)
#define IPCOM_NAE_MULTICAST_MULTISEG
#endif
/*
*===========================================================================
* IPCOM_USE_FLOAT
*===========================================================================
* Define if want to support floating point and math operations.
*/
#if defined(IPSSL) || \
defined(IPCRYPTO) || \
defined(IPSSLPROXY) || \
defined(IPIKE) || \
defined(IPNTP) || \
defined(IPNGC) || \
defined(IPNETSNMP) || \
defined(IPNETPERF) || \
defined(ZEBOS)
#define IPCOM_USE_FLOAT
#endif
/*
*===========================================================================
* IPCOM_USE_TIME
*===========================================================================
* Define if your RTOS port has implemented port/<rtos>/src/ipcom_time.c.
*/
#define IPCOM_USE_TIME
/*
*===========================================================================
* IPCOM_USE_INET
*===========================================================================
* Define if your stack supports IPv4 and you want IPCOM IPv4 support.
*/
#ifndef IPCOM_EXCLUDE_INET
#define IPCOM_USE_INET
#endif
/*
*===========================================================================
* IPCOM_USE_INET6
*===========================================================================
* Define if your stack supports IPv6 and you want IPCOM IPv6 support.
* Note: IPNET and IPLITE set this define in the makefile if IPv6 is
* included in the release (e.g. see ipnet2/make/ipnet6.mk)
*
*/
#if defined(IP_PORT_UNIX) && IPCOM_USE_SOCK == IPCOM_SOCK_NATIVE \
&& defined(IP_PORT_LINUX)
#define IPCOM_USE_INET6
#endif
/*
*===========================================================================
* IPCOM_USE_SYSVAR
*===========================================================================
* Define for system variables.
*/
#define IPCOM_USE_SYSVAR
/*
*===========================================================================
* IPCOM_USE_MD5
*===========================================================================
* Define for MD5 support to IPRIP, IPTCP, IPPPP and IPNET.
*/
#ifndef IP_PORT_LKM
# if defined(IPCRYPTO) || defined(IPMCRYPTO) || \
(defined(IP_PORT_VXWORKS) && IP_PORT_VXWORKS >= 65) || \
defined(IP_PORT_OSE5)
# define IPCOM_USE_MD5
# endif
#endif /* #ifndef IP_PORT_LKM */
/*
*===========================================================================
* IPCOM_USE_MIB2
*===========================================================================
* Define for mib-2 support
#define IPCOM_USE_MIB2
*/
#if defined(VXCOMPAT) || (defined(IPSNMP) || defined(IPEMANATE) || defined(WRSNMP)) && (defined(IPNET) || defined(IPLITE))
#define IPCOM_USE_MIB2
#endif
/*===========================================================================
* IPCOM_USE_MIB2_NEW
*===========================================================================
* Define to include support for the new IP version independent MIBs:
* RFC4022, RFC4113, RFC4292 and RFC4293
#define IPCOM_USE_MIB2_NEW
*/
#if defined(VXCOMPAT) || defined(WRSNMP) && defined(IPNET)
#define IPCOM_USE_MIB2_NEW
#endif
/* IPCOM_USE_MIB2_NEW requires IPCOM_USE_MIB2 */
#if defined(IPCOM_USE_MIB2_NEW) && !defined(IPCOM_USE_MIB2)
#undef IPCOM_USE_MIB2_NEW
#endif
/*
*===========================================================================
* IPCOM_USE_MIB2_CMD
*===========================================================================
* Define to include MIB-2 test command
*/
#ifdef IPCOM_USE_MIB2_NEW
#define IPCOM_USE_MIB2_CMD
#endif
/* IPCOM_USE_MIB2_CMD requires IPCOM_USE_MIB2_NEW */
#if defined(IPCOM_USE_MIB2_CMD) && !defined(IPCOM_USE_MIB2_NEW)
#undef IPCOM_USE_MIB2_CMD
#endif
/*
*===========================================================================
* IPCOM_USE_SMPTEST_CMD
*===========================================================================
* Define to include SMP test command
#define IPCOM_USE_SMPTEST_CMD
*/
/*
*===========================================================================
* IPCOM_VR_MAX
*===========================================================================
* Maximum number of virtualized entries, e.g. sysvars, routes etc.
* Not relevant on the LKM port.
*/
#if defined(_WRS_CONFIG_COMPONENT_VIRTUAL_ROUTER) || !defined(IP_PORT_VXWORKS)
#define IPCOM_VR_MAX 8
#else
#define IPCOM_VR_MAX 1
#endif
/*
*===========================================================================
* IPCOM_USE_ENV
*===========================================================================
* Define for process specific environment variables. If set to IPCOM_ENV_NONE,
* environment variables are implemented using sysvars, i.e. global.
*/
#if !defined(IPCOM_USE_ENV)
#if defined(IP_PORT_VXWORKS) || defined(IP_PORT_OSE) || defined(IP_PORT_OSE5)
#define IPCOM_USE_ENV IPCOM_ENV_NATIVE
#else
#define IPCOM_USE_ENV IPCOM_ENV_IPCOM
#endif
#endif
/*
*===========================================================================
* IPCOM_USE_KEY_DB
*===========================================================================
* Define to enable a key database that provides basic protection for public
* keys and pre-shared keys.
*/
#if defined(IPCRYPTO) || defined(IPMCRYPTO)
# define IPCOM_USE_KEY_DB
# define IPCOM_USE_KEY_DB_CMD
# define IPCOM_USE_KEY_DB_CMD_VERIFY
#endif
/*
****************************************************************************
* 5 SERVICES
****************************************************************************
*/
/*
*===========================================================================
* IPCOM EGD
*===========================================================================
* Interpeak Entropy Gathering Daemon used for ipcom_random().
* If not defined, a simplistic pseudo-random routine is used
* to generate the random numbers in ipcom_random().
* For code, see ipcom/port/src/ipcom_random.c
*/
#if defined(IPSSL) || defined(IPCRYPTO) || defined(IPMCRYPTO)
#define IPCOM_USE_EGD
#endif
/*
*===========================================================================
* IPCOM_SYSLOG_PRIO_DEFAULT
*===========================================================================
* Initial syslog system build-time priority. Changing these levels change
* the compiled in log level for all products.
*/
#if defined(_WRS_CONFIG_IPCOM_DEFAULT_SYSLOG_PRIORITY)
# define IPCOM_SYSLOG_PRIO_DEFAULT _WRS_CONFIG_IPCOM_DEFAULT_SYSLOG_PRIORITY
#elif defined(IP_DEBUG)
# define IPCOM_SYSLOG_PRIO_DEFAULT 7 /* IPCOM_LOG_DEBUG2 */
#else
# define IPCOM_SYSLOG_PRIO_DEFAULT 3 /* IPCOM_LOG_WARNING */
#endif
/*
*===========================================================================
* IPCOM_SYSLOG_IPCOM_PRIORITY
*===========================================================================
* Initial IPCOM syslog build-time priority.
*/
#define IPCOM_SYSLOG_IPCOM_PRIORITY IPCOM_SYSLOG_PRIO_DEFAULT
/*
*===========================================================================
* IPCOM_LOG_USE_OF_DEPRECATED_API
*===========================================================================
* Log use of deprecated APIs. Only first call will be logged.
*/
#ifdef IP_DEBUG
#define IPCOM_LOG_USE_OF_DEPRECATED_API
#endif
/*
*===========================================================================
* IPCOM SYSLOG
*===========================================================================
* Define to enable use of syslogs using the syslog daemon.
*/
#if !defined(IPCOM_SYSLOG) \
&& !defined(IP_PORT_OSECK) \
&& !defined(IP_PORT_LKM) \
&& !defined(IP_SIZE) \
&& !defined(IPBASIC) \
&& !defined(IPCOM_FORWARDER_NAE) \
&& !defined(IPCOM_FORWARDER_AMP) \
&& !defined(IPLITE)
#define IPCOM_USE_SYSLOG
#endif
/*
*===========================================================================
* IPCOM AUTH
*===========================================================================
* Enable IPCOM authentication - ipcom_auth.h
*/
#if defined(IPSSH) /* So IPSSH can use the default AUTH function */ \
|| (!defined(IP_PORT_OSECK) \
&& !defined(IP_PORT_LKM) \
&& !defined(IPBASIC) \
&& !defined(IPCOM_FORWARDER_NAE) \
&& !defined(IPCOM_FORWARDER_AMP))
#define IPCOM_USE_AUTH
#endif
/* Use RADIUS client to lookup user & password. */
#if defined(IPCOM_USE_AUTH) && defined(IPRADIUS) && (defined(IPNET) || defined(IPLITE))
#define IPCOM_USE_AUTH_RADIUS
#endif
/*
*===========================================================================
* IPCOM TELNET
*===========================================================================
* IPCOM telnet server. Also see ipcom_telnets_config.c for telnet port.
*/
/* Define to start the interpeak telnet server. */
#if (IPCOM_USE_SHELL == IPCOM_SHELL_IPCOM || IPCOM_USE_SHELL == IPCOM_SHELL_NATIVE) \
&& (defined(IPTCP) || IPCOM_USE_SOCK == IPCOM_SOCK_NATIVE || defined(IPLITE)) \
&& !defined(IP_PORT_OSE5) \
&& !defined(OSE_REFSYS) \
&& !defined(IP_PORT_INTEGRITY)
#define IPTELNETS
#endif
/*
*===========================================================================
* IPCOM FILE
*===========================================================================
* Interpeak memory file system.
*/
/* Maximum number of open files with IPCOM memory filesystem: ipcom_file.c.
* (used if compiled with IPCOM_USE_FILE == IPCOM_FILE_IPCOM
* Note: the actual max is three lower due to unused 0-2 slots.
*/
#define IPCOM_FILE_FD_SETSIZE 64
/*
*===========================================================================
* IPCOM_DRV
*===========================================================================
* Generic IPCOM PPP and Ethernet driver configuration.
*/
/* Default PPP baudrate in ipcom_drv_ppp.c used by IPNET/IPLITE. */
#define IPCOM_DRV_PPP_BAUDRATE 38400
/*
*===========================================================================
* IPCOM_GETLINE_HISTORY_FILENAME
*===========================================================================
* Filename where the IPCOM getline will save the history when an IPCOM
* shell exits.
*/
#define IPCOM_GETLINE_HISTORY_FILENAME ".ipcom_getline_history"
/*
****************************************************************************
* 6 AUTO configuration
****************************************************************************
*/
#include "ipcom_autoconf.h"
/*
****************************************************************************
* 7 MORE configuration
****************************************************************************
*/
/*
*===========================================================================
* IPCOM_STDIO_BUFSIZE
*===========================================================================
* Maximum I/O bufsize, e.g. for ipcom_prinf(), ipcom_fprintf() etc.
*/
#define IPCOM_STDIO_BUFSIZE 3000
/*
*===========================================================================
* IPCOM SHELL
*===========================================================================
* IPCOM login shell config macro. Also see config/ipcom_config.c for additional
* shell configuration constants.
*/
/* Maximum length of current working directory */
#define IPCOM_SHELL_MAX_PATH 256
/* Define if you want alias expansion in the IPCOM Shell */
#if IPCOM_USE_SHELL == IPCOM_SHELL_IPCOM
/* #define IPCOM_USE_ALIAS 1 */
#endif
#ifdef __cplusplus
}
#endif
/*
*===========================================================================
* IPCOM_USE_BITARRAY
*===========================================================================
* Define for including bitarray.
*/
#define IPCOM_USE_BITARRAY
/*
*===========================================================================
* IPCOM_USE_MUX_DRV
*===========================================================================
* Define for using the mux driver
*/
#define IPCOM_USE_MUX_DRV
/*
*===========================================================================
* IPCOM_USE_NON_ETHERNET
*===========================================================================
* Define for support non-ethernet interface
*/
#if defined(IPCOM_USE_INET) || defined(IPCOM_USE_INET6)
#define IPCOM_USE_NON_ETHERNET
#endif
#endif
/*
****************************************************************************
* END OF FILE
****************************************************************************
*/
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,143 @@
/*
******************************************************************************
* IPCOM CONFIGURATION SOURCE FILE
*
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: ipcom_telnets_config.c,v $ $Revision: 1.10.18.4 $
* $Source: /home/interpeak/CVSRoot/ipcom/config/ipcom_telnets_config.c,v $
* $Author: jren $
* $State: Exp $ $Locker: $
*
* INTERPEAK_COPYRIGHT_STRING
* Design and implementation by Lennart Bang <lob@interpeak.se>
******************************************************************************
*/
/*
****************************************************************************
* 1 DESCRIPTION
****************************************************************************
*/
/*
****************************************************************************
* 2 INCLUDE FILES
****************************************************************************
*/
#include "ipcom_config.h"
#define IPCOM_USE_CLIB_PROTO
#include "ipcom_type.h"
#include "ipcom_cstyle.h"
#include "ipcom_err.h"
#include "ipcom_sysvar.h"
/*
****************************************************************************
* 3 LOCAL PROTOTYPES
****************************************************************************
*/
IP_PUBLIC Ip_err iptelnets_configure(void);
/*
****************************************************************************
* 5 DATA
****************************************************************************
*/
/*
*===========================================================================
* SYSTEM VARIABLES
*===========================================================================
*/
IP_STATIC IP_CONST Ipcom_sysvar iptelnets_conf_sysvar[] =
{
/* Telnet port */
#if defined(IPCOM_TELNET_PORT)
{ "ipcom.telnet.port", IPCOM_TELNET_PORT },
#else
{ "ipcom.telnet.port", "2323" },
#endif
#if IPCOM_USE_SHELL == IPCOM_SHELL_IPCOM
/* Shell greeting. */
{ "ipcom.shell.greeting", "Copyright (c) Interpeak AB 2000-2010. All rights reserved.\n\nWelcome to IPCOM SHELL. Type help for a list of commands.\n\n" },
/* Shell prompt. Supported special characters are:
* \p - shell process name
* \P - shell process id
* \i - the IP address of the target
* \w - the current working directory
* \W - the basename of the current working directory
* \V - ipcom_getenv("VR")
*/
/*{ "ipcom.shell.prompt", "\\i$\\w> " },*/
{ "ipcom.shell.prompt", "\\i#\\V> " },
#endif /* IPCOM_USE_SHELL == IPCOM_SHELL_IPCOM */
#ifndef IP_PORT_VXWORKS
#ifdef IPCOM_USE_AUTH
/* Require telnet users to authenticate (1 = enabled, 0 = disabled) */
{ "ipcom.telnet.authenticate", "0" },
#endif
#endif
#ifdef IPCOM_TELNET_MAX_CLIENTS
{ "ipcom.telnet.max_sessions", IPCOM_TELNET_MAX_CLIENTS },
#endif
#ifdef IPCOM_TELNET_IDLE_TIMEOUT
{ "ipcom.telnet.idle_timeout", IPCOM_TELNET_IDLE_TIMEOUT },
#endif
#ifdef IP_PORT_VXWORKS
/*
* Priority of ipcom_telnetd task, from 1 - 7,
* 1 - IPCOM_PROC_PRIO_1
* 2 - IPCOM_PROC_PRIO_2
* 3 - IPCOM_PROC_PRIO_3
* 4 - IPCOM_PROC_PRIO_4
* 5 - IPCOM_PROC_PRIO_5
* 6 - IPCOM_PROC_PRIO_6
* 7 - IPCOM_PROC_PRIO_7
*/
{ "ipcom.telnet.task_priority", IPCOM_MAKE_STR(IPCOM_PRIORITY_DEFAULT) },
#endif
{ IP_NULL, IP_NULL }
};
/*
****************************************************************************
* 6 FUNCTIONS
****************************************************************************
*/
/*
*===========================================================================
* iptelnets_configure
*===========================================================================
* Description:
* Parameters:
* Returns:
*
*/
IP_PUBLIC Ip_err
iptelnets_configure(void)
{
/* Set IPTELNETS system variables. */
(void)ipcom_sysvar_setv(iptelnets_conf_sysvar, 0);
return IPCOM_SUCCESS;
}
/*
****************************************************************************
* END OF FILE
****************************************************************************
*/