147 lines
4.4 KiB
C
147 lines
4.4 KiB
C
/*
|
|
******************************************************************************
|
|
* INTERPEAK CONFIGURATION SOURCE FILE
|
|
*
|
|
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: ipftpc_config.c,v $ $Revision: 1.4.12.1 $
|
|
* $Source: /home/interpeak/CVSRoot/ipappl/config/ipftpc_config.c,v $
|
|
* $Author: jren $
|
|
* $State: Exp $ $Locker: $
|
|
*
|
|
* INTERPEAK_COPYRIGHT_STRING
|
|
******************************************************************************
|
|
*/
|
|
|
|
/*
|
|
modification history
|
|
--------------------
|
|
01f,03Aug10,rjq New file for Networking Configuration VSB restructuring.
|
|
01e,03jan07,kch Updated CVS revision log entry for Jan 03 code drop.
|
|
01d,01dec06,kch Updated CVS revision log entry.
|
|
01c,13sep06,kch Refresh with Sept 08, 2006 code drop
|
|
01b,28aug06,kch Update based on Aug 22, 2006 code drop.
|
|
01a,03aug06,kch Renamed INCLUDE_FTP_CMD to INCLUDE_IPFTP_CMD.
|
|
*/
|
|
|
|
/*
|
|
****************************************************************************
|
|
* 1 DESCRIPTION
|
|
****************************************************************************
|
|
*/
|
|
|
|
/*
|
|
****************************************************************************
|
|
* 2 INCLUDE FILES
|
|
****************************************************************************
|
|
*/
|
|
|
|
#include <ipcom_type.h>
|
|
#include <ipcom_cstyle.h>
|
|
#include <ipcom_err.h>
|
|
#include <ipcom_sysvar.h>
|
|
#include <ipcom_shell.h>
|
|
|
|
|
|
/*
|
|
****************************************************************************
|
|
* 3 DEFINES
|
|
****************************************************************************
|
|
*/
|
|
|
|
/*
|
|
****************************************************************************
|
|
* 4 TYPES
|
|
****************************************************************************
|
|
*/
|
|
|
|
/*
|
|
****************************************************************************
|
|
* 5 EXTERN PROTOTYPES
|
|
****************************************************************************
|
|
*/
|
|
#if defined(INCLUDE_IPFTP_CMD) || !defined(IP_WB_BUILD)
|
|
IP_EXTERN int ipftpc_cmd_main(int argc, char *argv[]);
|
|
#endif
|
|
|
|
|
|
/*
|
|
****************************************************************************
|
|
* 6 LOCAL PROTOTYPES
|
|
****************************************************************************
|
|
*/
|
|
|
|
IP_PUBLIC Ip_err ipftpc_configure(void);
|
|
|
|
|
|
/*
|
|
****************************************************************************
|
|
* 7 DATA
|
|
****************************************************************************
|
|
*/
|
|
|
|
/*
|
|
*===========================================================================
|
|
* ipftpc_conf_sysvar
|
|
*===========================================================================
|
|
* FTP Client Configuration Variables
|
|
*/
|
|
|
|
IP_CONST Ipcom_sysvar ipftpc_conf_sysvar[] =
|
|
{
|
|
/* The FTP client src IPvX address */
|
|
IP_SYSVAR("ipftpc.bindaddress", IP_NULL, FTPC_BIND_ADDRESS),
|
|
|
|
{IP_NULL, IP_NULL}
|
|
};
|
|
|
|
|
|
/*
|
|
****************************************************************************
|
|
* 8 STATIC FUNCTIONS
|
|
****************************************************************************
|
|
*/
|
|
|
|
/*
|
|
****************************************************************************
|
|
* 9 GLOBAL FUNCTIONS
|
|
****************************************************************************
|
|
*/
|
|
|
|
/*
|
|
****************************************************************************
|
|
* 10 PUBLIC FUNCTIONS
|
|
****************************************************************************
|
|
*/
|
|
|
|
/*
|
|
*===========================================================================
|
|
* ipftpc_configure
|
|
*===========================================================================
|
|
* Description: Configure FTP client.
|
|
* Parameters:
|
|
* Returns:
|
|
*
|
|
*/
|
|
IP_PUBLIC Ip_err
|
|
ipftpc_configure(void)
|
|
{
|
|
Ip_err ret = IPCOM_SUCCESS;
|
|
|
|
(void)ipcom_sysvar_setv(ipftpc_conf_sysvar, 0);
|
|
|
|
#if defined(INCLUDE_IPFTP_CMD) || !defined(IP_WB_BUILD)
|
|
ret = ipcom_shell_add_cmd("ftp", "ftp [options] [host]", "FTP client",
|
|
ipftpc_cmd_main,
|
|
IPCOM_SHELL_PRIO_SAME,
|
|
IPCOM_PROC_STACK_DEFAULT);
|
|
#endif
|
|
|
|
return ret;
|
|
}
|
|
|
|
|
|
/*
|
|
****************************************************************************
|
|
* END OF FILE
|
|
****************************************************************************
|
|
*/
|