Files
2026-07-30 11:19:44 +05:30

152 lines
4.8 KiB
C

/*
******************************************************************************
* INTERPEAK CONFIGURATION SOURCE FILE
*
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: iptftps_config.c,v $ $Revision: 1.7 $
* $Source: /home/interpeak/CVSRoot/ipappl/config/iptftps_config.c,v $
* $Author: jren $
* $State: Exp $ $Locker: $
*
* INTERPEAK_COPYRIGHT_STRING
******************************************************************************
*/
/*
modification history
--------------------
01e,03Aug10,rjq New file for Networking Configuration VSB restructuring.
01d,03jan07,kch Updated CVS revision log entry for Jan 03 code drop.
01c,01dec06,kch Updated CVS revision log entry.
01b,13sep06,kch Refresh with Sept 08, 2006 code drop
01a,28aug06,kch Update based on Aug 22, 2006 code drop.
*/
/*
****************************************************************************
* 1 DESCRIPTION
****************************************************************************
* TFTP server configuration
*/
/*
****************************************************************************
* 2 INCLUDE FILES
****************************************************************************
*/
#include <ipcom_type.h>
#include <ipcom_cstyle.h>
#include <ipcom_err.h>
#include <ipcom_sysvar.h>
/*
****************************************************************************
* 3 DEFINES
****************************************************************************
*/
#define TFTPS_PORT "69 " /* TFTP server listening port */
#define TFTPC_PEER_PORT "69 " /* TFTP port used by client to send packets */
/*
****************************************************************************
* 4 TYPES
****************************************************************************
*/
/*
****************************************************************************
* 5 EXTERN PROTOTYPES
****************************************************************************
*/
/*
****************************************************************************
* 6 LOCAL PROTOTYPES
****************************************************************************
*/
IP_PUBLIC Ip_err iptftps_configure(void);
/*
****************************************************************************
* 7 DATA
****************************************************************************
*/
/*
*===========================================================================
* SYSTEM VARIABLES
*===========================================================================
*/
/*
*===========================================================================
* iptftp_conf_sysvar
*===========================================================================
* TFTP Configuration Variables. Both client and server.
*/
IP_CONST Ipcom_sysvar iptftp_conf_sysvar[] =
{
/* TFTP server working directory */
IP_SYSVAR( "iptftp.dir", IPCOM_FILE_ROOT "tftpdir", TFTPS_DIRS ),
/* TFTP retransmit timeout in seconds */
IP_SYSVAR( "iptftp.timeout", "5", TFTPS_RETRANSMIT_TIMEOUT),
/* TFTP number of retries */
IP_SYSVAR( "iptftp.retries", "2", TFTPS_RETRIES),
/* TFTP server listening port */
IP_SYSVAR( "iptftp.srvPort", TFTPS_PORT, TFTPS_PORT),
/* TFTP port used by client to send packets */
IP_SYSVAR( "iptftp.clntSrvPort", TFTPC_PEER_PORT, TFTPC_PEER_PORT),
{ IP_NULL, IP_NULL }
};
/*
****************************************************************************
* 8 STATIC FUNCTIONS
****************************************************************************
*/
/*
****************************************************************************
* 9 GLOBAL FUNCTIONS
****************************************************************************
*/
/*
****************************************************************************
* 10 PUBLIC FUNCTIONS
****************************************************************************
*/
/*
*===========================================================================
* iptftps_configure
*===========================================================================
* Description: Configure TFTP server
* Parameters: none.
* Returns: nothing.
*/
IP_PUBLIC Ip_err
iptftps_configure(void)
{
(void)ipcom_sysvar_setv(iptftp_conf_sysvar, IPCOM_SYSVAR_FLAG_OVERWRITE);
return IPCOM_SUCCESS;
}
/*
****************************************************************************
* END OF FILE
****************************************************************************
*/