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,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
****************************************************************************
*/