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,60 @@
/* 00comp_net_appl_util.cdf - Component configuration file */
/*
* Copyright 2004, 2010, 2012 Wind River Systems, Inc.
*
* The right to copy, distribute, modify or otherwise make use
* of this software may be licensed only pursuant to the terms
* of an applicable Wind River license agreement.
*/
/*
modification history
--------------------
01d,07feb12,dlk Fix defect WIND00331675.
01c,14sep10,h_x CQ:WIND00141200
01b,18sep04,dlk Remove explicit depencency upon INCLUDE_NBIO_LOG.
01a,12sep04,dlk written
*/
Component INCLUDE_APPL_LOG_UTIL {
NAME Stack/Application Logging Utility
SYNOPSIS Stack and Application Logging Utility
HDR_FILES applUtilLib.h \
private/fioLibP.h
CONFIGLETTES usrNetApplUtil.c
INIT_RTN usrNetApplUtilInit ();
CFG_PARAMS APPL_LOG_FD_CFG \
APPL_LOG_LEVEL_CFG \
APPL_KERN_LOG_FD_CFG \
APPL_KERN_LOG_LEVEL_CFG
MODULES applUtilLib.o
}
Parameter APPL_LOG_FD_CFG {
NAME Default application logging FD
SYNOPSIS Default application logging file descriptor for non-kernel facilities
DEFAULT STD_OUT
TYPE int
}
Parameter APPL_LOG_LEVEL_CFG {
NAME Default application logging mask and flags
SYNOPSIS Default application logging mask and flags for non-kernel facilities
DEFAULT (_LOG_DEC_DFLT | _LOG_LVL_DFLT)
TYPE int
}
Parameter APPL_KERN_LOG_FD_CFG {
NAME Default kernel logging FD
SYNOPSIS Default logging file descriptor for KERN_LOG facility
DEFAULT KERN_LOG_FD
TYPE int
}
Parameter APPL_KERN_LOG_LEVEL_CFG {
NAME Default kernel logging mask and flags
SYNOPSIS Default logging mask and flags for KERN_LOG facility
DEFAULT (_LOG_DEC_DFLT | _LOG_LVL_DFLT)
TYPE int
}
@@ -0,0 +1,24 @@
/* 00comp_net_arplib.cdf - Component configuration file */
/* Copyright 1984 - 2003 Wind River Systems, Inc. */
/*
modification history
--------------------
01f,31aug06,tkf Change INCLUDE_ARP_API so that it depends on
INCLUDE_IPWRAP_ARP. Also removed all configuration
parameters.
01e,12sep03,vvv updated configlette path
01d,14may03,vvv added HDR_FILES
01c,16arp02,rvr removed entry points and PREF_DOMAIN attribute
01b,01apr02,ham added entry points.
01a,06feb02,ham wrote.
*/
Component INCLUDE_ARP_API
{
NAME arpLib
SYNOPSIS Address Resolution Protocol (ARP) table manipulation library
REQUIRES INCLUDE_IPWRAP_ARP
}
@@ -0,0 +1,19 @@
/* 00comp_net_drv.cdf - Component configuration file */
/* Copyright 1984 - 2002 Wind River Systems, Inc. */
/*
modification history
--------------------
01c,13may03,ppp removed inclusion of adv_net.h
01b,16apr02,rvr removed entry points and PREF_DOMAIN attribute
01a,06mar02,ham ported from TOR3_1-FCS (01b).
*/
Component INCLUDE_NET_DRV {
NAME NetDrv for remote IO
SYNOPSIS Allows access to file system on boot host
HDR_FILES netDrv.h
MODULES netDrv.o
REQUIRES INCLUDE_NET_REM_IO
}
@@ -0,0 +1,29 @@
/* 00comp_net_ethernet.cdf - Component configuration file */
/* Copyright 2001-2003, 2006, 2008 Wind River Systems, Inc. */
/*
modification history
--------------------
01j,12may08,dlk Removed explicit dependency on INCLUDE_END/INCLUDE_MUX.
01i,15aug06,tlu modified to port ethernet multicast library to IPNET,
and remove if_ethersubr module, which is replaced by IPCOM
ethernet functions
01h,12sep03,vvv updated configlette path
01g,08sep03,vvv merged from ACCORDION_BASE6_MERGE_BASELINE
01f,14may03,vvv removed adv_net.h
01e,01oct02,ham changed the default value of ARP_MAX_ENTRIES_CFG (SPR#82324).
01d,21may02,ham added ARP sysctl variables.
01c,17may02,ham added arpMaxEntries.
01b,01apr02,ham added entry points.
01a,26nov01,ham wrote.
*/
Component INCLUDE_ETHERNET {
NAME Ethernet multicast library support
SYNOPSIS Ethernet multicast library support
HDR_FILES muxLib.h
MODULES etherMultiLib.o
LINK_SYMS etherMultiAdd
}
@@ -0,0 +1,40 @@
/* 00comp_net_ftp6lib.cdf - Component configuration file */
/*
* Copyright (c) 2002-2006 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
--------------------
01e,28nov06,kch Updated description for INCLUDE_FTP.
01d,22sep06,tkf Cleaned up component names
01c,14may03,vvv removed adv_net.h
01b,06jun02,ant added INIT_RTN ftp6LibInit and CFG_PARAMS FTP6_REPLYTIMEOUT
01a,25jan02,ger new
*/
Component INCLUDE_FTP6 {
NAME FTP6 Client Backend
SYNOPSIS File Transfer Protocol (FTP6) library
REQUIRES INCLUDE_IPCOM_USE_INET6
HDR_FILES ftp6Lib.h
INIT_RTN ftp6LibInit (FTP6_REPLYTIMEOUT);
CFG_PARAMS FTP6_REPLYTIMEOUT
MODULES ftp6Lib.o
LINK_SYMS ftp6Xfer
}
Parameter FTP6_REPLYTIMEOUT {
NAME FTP6_REPLYTIMEOUT
SYNOPSIS value specifies timeout in sec, while waiting for ftp reply from server
DEFAULT 10
TYPE long
}
@@ -0,0 +1,81 @@
/* 00comp_net_ftplib.cdf - Component configuration file */
/*
* Copyright (c) 1999-2006 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
--------------------
01n,14sep10,h_x CQ:WIND00141200
01m,26dec06,kch Changed INCLUDE_FTP init routine to usrFtpInit.
01l,28nov06,kch Updated description for INCLUDE_FTP.
01k,22sep06,tkf Cleaned up component names.
01j,21jul04,spm removed extra initialization routine
01i,25mar04,asr added a parameter for FTP timeout
01h,12sep03,vvv updated configlette path
01g,19jul02,ppp taking the updated version from veloce
01f,06jun02,ant added INIT_RTN ftpLibInit and CFG_PARAMS FTP_REPLYTIMEOUT
01e,25jan02,ger new firectory of header file
01d,31aug00,sbs Added missing header file
01c,04jun00,pad Addition of PREF_DOMAIN attribute
01b,17apr00,ham revised.
01a,01nov99,ham wrote.
*/
Component INCLUDE_FTP {
NAME FTP Client Backend
SYNOPSIS File Transfer Protocol (FTP) library
REQUIRES INCLUDE_IPCOM_USE_INET
HDR_FILES ftpLib.h private/ftpLibP.h
CONFIGLETTES usrFtp.c
MODULES ftpLib.o
LINK_SYMS ftpCommand
INIT_RTN usrFtpInit();
CFG_PARAMS FTP_TRANSIENT_MAX_RETRY_COUNT \
FTP_TRANSIENT_RETRY_INTERVAL \
FTP_TRANSIENT_FATAL \
FTP_DEBUG_OPTIONS \
FTP_TIMEOUT
}
Parameter FTP_DEBUG_OPTIONS {
NAME Debug logging facilities in ftpLib
SYNOPSIS Enable various debugging facilities within ftpLib
TYPE int
DEFAULT 0
}
Parameter FTP_TRANSIENT_MAX_RETRY_COUNT {
NAME FTP Transient response maximum retry limit
SYNOPSIS Maximum number of retries when FTP_TRANSIENT response encountered
TYPE int
DEFAULT 100
}
Parameter FTP_TRANSIENT_RETRY_INTERVAL {
NAME Time delay between retries after FTP_TRANSIENT encountered
SYNOPSIS The time interval (in clock ticks) between reissuing a command
TYPE int
DEFAULT 0
}
Parameter FTP_TRANSIENT_FATAL {
NAME FTP transient fatal function
SYNOPSIS Should a transient response be retried or aborted
DEFAULT ftpTransientFatal
}
Parameter FTP_TIMEOUT {
NAME FTP timeout
SYNOPSIS Specifies timeout in sec, while waiting for FTP reply from server
TYPE long
DEFAULT 0
}
@@ -0,0 +1,43 @@
/* 00comp_net_getaddrinfo.cdf - Component configuration file */
/*
* Copyright (c) 2002-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.
*/
/*
modification history
--------------------
01g,14sep10,h_x CQ:WIND00141200
01f,12feb07,dlk Add INIT_RTN for INCLUDE_GETADDRINFO_SYSCTL.
01e,29sep06,tlu Added INCLUDE_GETADDRINFO_SYSCTL, and configlettes and init
function
01d,31jul06,tkf Made it dependent on INCLUDE_IPWRAP_GETADDRINFO. Removed the
IGNORE_LINKLOCAL parameter.
01c,24jul06,tkf Removed MODULE gethostbyname.o. Replaced INIT_RTN
gethostbynameInit() with getaddrinfoInit().
01b,28jun05,vvv added IGNORE_LINKLOCAL
01a,15jan03,ann re-organized.
*/
Component INCLUDE_GETADDRINFO {
NAME getaddrinfo
SYNOPSIS utility to map host name to address
CONFIGLETTES usrGetaddrinfo.c
REQUIRES INCLUDE_IPWRAP_GETADDRINFO
}
Component INCLUDE_GETADDRINFO_SYSCTL {
NAME RTP getaddrinfo() sysctl support
SYNOPSIS network sysctl tree support for RTP getaddrinfo()
HDR_FILES netdb.h
INIT_RTN rtpGetaddrinfoInit ();
MODULES rtpGetaddrinfo.o
REQUIRES INCLUDE_NET_SYSCTL \
INCLUDE_IPWRAP_GETADDRINFO
INCLUDE_WHEN INCLUDE_RTP \
INCLUDE_IPWRAP_GETADDRINFO
}
@@ -0,0 +1,43 @@
/* 00comp_net_getnameinfo.cdf - Component configuration file */
/*
* Copyright (c) 2003 - 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.
*/
/*
modification history
--------------------
01h,14sep10,h_x CQ:WIND00141200
01g,12feb07,dlk Add INIT_RTN for INCLUDE_GETNAMEINFO_SYSCTL.
01f,28sep06,tlu Restore INCLUDE_GETNAMEINFO_SYSCTL
01e,31jul06,kch Removed the unsupported INCLUDE_GETNAMEINFO_SYSCTL.
01d,31jul06,tkf Make INCLUDE_GETNAMEINFO dependent on
INCLUDE_IPWRAP_GETNAMEINFO.
01c,03mar05,wap handle NET_SYSCTL dependency
01b,05dec03,vvv updated for RTP support
01a,15jan03,ann re-organized.
*/
Component INCLUDE_GETNAMEINFO {
NAME get name info
SYNOPSIS utility to map host address to name
CONFIGLETTES usrGetnameinfo.c
REQUIRES INCLUDE_IPWRAP_GETNAMEINFO
}
Component INCLUDE_GETNAMEINFO_SYSCTL {
NAME RTP getnameinfo() sysctl support
SYNOPSIS network sysctl tree support for RTP getnameinfo()
HDR_FILES netdb.h
INIT_RTN rtpGetnameinfoInit ();
MODULES rtpGetnameinfo.o
REQUIRES INCLUDE_NET_SYSCTL \
INCLUDE_IPWRAP_GETNAMEINFO
INCLUDE_WHEN INCLUDE_RTP \
INCLUDE_IPWRAP_GETNAMEINFO
}
@@ -0,0 +1,16 @@
/* 00comp_net_getnetbyname.cdf - Component configuration file */
/* Copyright 1984-2002 Wind River Systems, Inc. */
/*
modification history
--------------------
01a,20feb03,ann created from 00comp_net_host_tbl.cdf.
*/
Component INCLUDE_GETNETBYNAME {
NAME get net by name
SYNOPSIS get net by name
HDR_FILES hostLib.h
MODULES getnetbyname.o
}
@@ -0,0 +1,26 @@
/* 00comp_net_getservbyname.cdf - Component configuration file */
/* Copyright 1984-2005 Wind River Systems, Inc. */
/*
modification history
--------------------
01c,31jul06,tkf Make INCLUDE_GETSERVBYNAME dependent on
INCLUDE_IPWRAP_GETSERVBYNAME.
01b,10mar05,vvv removed ctrl-M characters (SPR #102504)
01a,20feb03,ann created from 00comp_net_host_tbl.cdf.
*/
Component INCLUDE_GETSERVBYNAME {
NAME get servce by name
SYNOPSIS get servce by name
REQUIRES INCLUDE_IPWRAP_GETSERVBYNAME
INCLUDE_WHEN INCLUDE_GETSERVBYPORT
}
Component INCLUDE_GETSERVBYPORT {
NAME get servce by port
SYNOPSIS get servce by port
REQUIRES INCLUDE_IPWRAP_GETSERVBYPORT
INCLUDE_WHEN INCLUDE_GETSERVBYNAME
}
@@ -0,0 +1,34 @@
/* 00comp_net_host_setup.cdf - Component configuration file */
/*
* Copyright (c) 2001-2007 Wind River Systems, Inc.
*
* The right to copy, distribute, modify or otherwise make use
* of this software may be licensed only pursuant to the terms
*/
/*
modification history
--------------------
01n,22jan07,tkf Add missing comment terminator characters (CQ:WIND00085885).
01m,26dec06,kch Removed usrNetHostCfg.c configlette and changed init
routine to hostnameSetup().
01l,19oct04,syy Fix to SPR# 102505
01k,19sep04,spm cleanup hostname initialization: update virtual stack startup
01j,18nov03,rp updating header file paths
01i,12sep03,vvv updated path for configlette and hostSetup.h
01h,08sep03,vvv merged from ACCORDION_BASE6_MERGE_BASELINE
01g,13may03,ppp removed inclusion of adv_net.h
01f,16apr02,rvr removed entry points and PREF_DOMAIN attribute (teamf1)
01e,28feb02,ham changed usrNetHostSetup's parameters.
01d,06dec01,ham revised from TOR3_1-FCS (01c).
*/
Component INCLUDE_NET_HOST_SETUP {
NAME public hostname setup
SYNOPSIS assign local hostname to target
PROTOTYPE IMPORT STATUS hostnameSetup (char * );
INIT_RTN hostnameSetup (pTgtName);
MODULES hostSetup.o
REQUIRES INCLUDE_NET_BOOT
}
@@ -0,0 +1,21 @@
/* 00comp_net_host_show.cdf - Component configuration file */
/* Copyright 1984 - 2005 Wind River Systems, Inc. */
/*
modification history
--------------------
01b,08apr05,vvv added netShow.h to HDR_FILES (SPR #104973)
01a,07apr03,ann written - SPR# 86899
*/
Component INCLUDE_NET_HOST_SHOW
{
NAME Network host show routines
SYNOPSIS Initializes the Network host show facility.
HDR_FILES netShow.h
INIT_RTN hostShowInit();
MODULES hostShow.o
REQUIRES INCLUDE_HOST_TBL
}
@@ -0,0 +1,56 @@
/* 00comp_net_host_tbl.cdf - Component configuration file */
/*
* Copyright (c) 1999-2006 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
--------------------
01t,14sep10,h_x CQ:WIND00141200
01s,12feb07,dlk Add INIT_RTN to INCLUDE_HOST_TBL_SYSCTL.
01r,26dec06,kch Changed INCLUDE_HOST_TBL init routine to usrNetHostTblSetup().
01q,23sep06,tlu Restore INCLUDE_HOST_TBL_SYSCTL component
01p,24aug06,kch Removed unsupported INCLUDE_HOST_TBL_SYSCTL component.
01o,02mar05,wap handle NET_SYSCTL dependency
01m,19sep04,spm update host table initialization for virtual stack startup
01l,20feb04,vvv removed reference to hostUtils.o
01k,12sep03,vvv updated configlette path
01j,08sep03,vvv merged from ACCORDION_BASE6_MERGE_BASELINE
01i,14mar03,ann renamed hostentUtils.o to hostUtils.o
01h,13aug02,ham removed REQUIRES to be independent from DNS_RESOLVER.
01g,16apr02,rvr removed entry points and PREF_DOMAIN attribute (teamf1)
01f,29jan02,hgo due to IPv6
01e,14jan02,ger due to IPv6
01d,04jun00,pad Addition of PREF_DOMAIN attribute
01c,17apr00,ham revised.
01b,15sep99,jgn add missing entry point information
01a,05may99,cym re-organized.
*/
Component INCLUDE_HOST_TBL {
NAME host table
SYNOPSIS host table support
CONFIGLETTES usrNetHostTblCfg.c
HDR_FILES hostLib.h
INIT_RTN usrNetHostTblSetup ();
MODULES hostLib.o
}
Component INCLUDE_HOST_TBL_SYSCTL {
NAME host table sysctl support
SYNOPSIS network sysctl tree support for host tables
REQUIRES INCLUDE_NET_SYSCTL \
INCLUDE_HOST_TBL
INIT_RTN rtpHostLibInit ();
MODULES rtpHostLib.o
INCLUDE_WHEN INCLUDE_RTP \
INCLUDE_HOST_TBL
}
@@ -0,0 +1,119 @@
/* 00comp_net_ifconfig.cdf - Component configuration file */
/*
* Copyright (c) 2002-2005 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
--------------------
01k,14sep10,h_x CQ:WIND00141200
01j,31jul06,kch Fixed INCLUDE_IFCONFIG for backward compatibility to support
IPNet stack. Removed unsupported INCLUDE_IFCONFIG_PREFIX.
01i,26aug05,spm updated sysctl dependencies (SPR #106702)
01h,21jul05,vvv fixed typos (SPR #108328)
01g,17may05,vvv added dependency on INCLUDE_ROUTING_SOCKET
01f,03mar05,wap Add NET_SYSCTL dependency
01e,12sep03,vvv updated configlette path
01d,14may03,ppp added ifconfig.h
01c,20feb03,ann created a separate component for prefix
01b,16apr02,rvr removed entry points and PREF_DOMAIN attribute (teamf1)
01a,02feb02,ham wrote.
*/
Component INCLUDE_IFCONFIG
{
NAME ifconfig
SYNOPSIS ifconfig
HDR_FILES net/utils/ifconfig.h
CONFIGLETTES usrNetIfconfig.c
INIT_RTN usrNetIfconfigInit ();
CFG_PARAMS IFCONFIG_ENTRY_1 \
IFCONFIG_ENTRY_2 \
IFCONFIG_ENTRY_3 \
IFCONFIG_ENTRY_4 \
IFCONFIG_ENTRY_5 \
IFCONFIG_ENTRY_6 \
IFCONFIG_ENTRY_7 \
IFCONFIG_ENTRY_8 \
IFCONFIG_ENTRY_9 \
IFCONFIG_ENTRY_10
REQUIRES INCLUDE_IPWRAP_IFCONFIG
}
Parameter IFCONFIG_ENTRY_1 {
NAME ifconfig Command String 1
SYNOPSIS ifconfig Command String 1
DEFAULT NULL
TYPE string
}
Parameter IFCONFIG_ENTRY_2 {
NAME ifconfig Command String 2
SYNOPSIS ifconfig Command String 2
DEFAULT NULL
TYPE string
}
Parameter IFCONFIG_ENTRY_3 {
NAME ifconfig Command String 3
SYNOPSIS ifconfig Command String 3
DEFAULT NULL
TYPE string
}
Parameter IFCONFIG_ENTRY_4 {
NAME ifconfig Command String 4
SYNOPSIS ifconfig Command String 4
DEFAULT NULL
TYPE string
}
Parameter IFCONFIG_ENTRY_5 {
NAME ifconfig Command String 5
SYNOPSIS ifconfig Command String 5
DEFAULT NULL
TYPE string
}
Parameter IFCONFIG_ENTRY_6 {
NAME ifconfig Command String 6
SYNOPSIS ifconfig Command String 6
DEFAULT NULL
TYPE string
}
Parameter IFCONFIG_ENTRY_7 {
NAME ifconfig Command String 7
SYNOPSIS ifconfig Command String 7
DEFAULT NULL
TYPE string
}
Parameter IFCONFIG_ENTRY_8 {
NAME ifconfig Command String 8
SYNOPSIS ifconfig Command String 8
DEFAULT NULL
TYPE string
}
Parameter IFCONFIG_ENTRY_9 {
NAME ifconfig Command String 9
SYNOPSIS ifconfig Command String 9
DEFAULT NULL
TYPE string
}
Parameter IFCONFIG_ENTRY_10 {
NAME ifconfig Command String 10
SYNOPSIS ifconfig Command String 10
DEFAULT NULL
TYPE string
}
@@ -0,0 +1,29 @@
/* 00comp_net_inetlib.cdf - Component configuration file */
/*
* Copyright (c) 2002-2006 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
--------------------
01f,28nov06,kch Added INCLUDE_IPWRAP_INETLIB dependency for backward
compatibility.
01e,24aug06,kch Removed unsupported INCLUDE_INETLIB_SYSCTL component.
01d,03mar05,wap Deal with NET_SYSCTL dependency
01c,21nov03,ppp added init routine for inetlib
01b,16apr02,rvr removed entry points and PREF_DOMAIN attribute (teamf1)
01a,01apr02,ham ported from TOR3_1-FCS(01c), added inet_ntop/inet_pton.
*/
Component INCLUDE_INETLIB {
NAME inetLib
SYNOPSIS BSD INET address manipulation routines
REQUIRES INCLUDE_IPWRAP_INETLIB
}
@@ -0,0 +1,64 @@
/* 00comp_net_init.cdf - Component configuration file */
/*
* Copyright (c) 2001-2006 Wind River Systems, Inc.
*
* The right to copy, distribute, modify or otherwise make use
* of this software may be licensed only pursuant to the terms
* of an applicable Wind River license agreement.
*/
/*
modification history
--------------------
01r,06oct06,kch Cleanup INCLUDE_NET_INIT properties.
01q,20sep04,spm updated virtual stack startup: stop packing and unpacking
configuration parameters
01p,30aug04,dlk Make INCLUDE_NET_INIT require INCLUDE_NETWORK (SPR #101382).
01o,09jul04,rae remove REQUIRES INCLUDE_MIB2_IF (scalability bug)
01n,12sep03,vvv updated configlette path
01m,08sep03,vvv merged from ACCORDION_BASE6_MERGE_BASELINE
01l,14may03,vvv removed adv_net.h
01k,26aug02,ham removed MAXHOSTNAMELEN_CFG
01j,13aug02,ham change usrNetInit's API for Veloce merge.
01i,19jul02,ann changed usrNetInitClarinet to usrNetInit
01h,06jun02,rvr removed the parameter INCLUDE_NETWORK (teamf1)
01g,06jun02,rvr added component INCLUDE_NETWORK (teamf1)
01f,03may02,mk renamed usrNetInit to usrNetInitCLarinet
01e,16apr02,rvr removed entry points and PREF_DOMAIN attribute (teamf1)
01d,28feb02,ham reverted 01c
01c,21feb02,ham moved routing stuff here.
01b,15feb02,ham moved GTF stuffs to INCLUDE_GTF.
01a,26nov01,ham wrote.
*/
Component INCLUDE_NET_INIT {
NAME network init
SYNOPSIS Initialize tables for network stack
CFG_PARAMS IP_MAX_UNITS
REQUIRES INCLUDE_NETWORK
}
/*
* In the traditional build, INCLUDE_NETWORK governs whether the
* network stack is included in the image, while INCLUDE_NET_INIT
* governs whether the initialization routine usrNetInit() should run.
* In the project build, INCLUDE_NET_INIT governs both (ugh) and
* INCLUDE_NETWORK needs to be defined whenever INCLUDE_NET_INIT is,
* since many BSPs have conditional code depending on INCLUDE_NETWORK.
*/
Component INCLUDE_NETWORK {
NAME basic network support
SYNOPSIS This should always be included for backward compatibility
}
Parameter IP_MAX_UNITS {
NAME IP Driver Control Limit
SYNOPSIS Maximum number of interfaces attached to IP layer. \
It remains here for backward compatibility since \
BSPs still using it. The IPNet stack does not use \
this parameter.
DEFAULT 4
TYPE uint
}
@@ -0,0 +1,31 @@
/* 00comp_net_netstat.cdf - Component configuration file */
/*
* Copyright (c) 2002-2006 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
--------------------
01e,31jul06,kch Simplified INCLUDE_NETSTAT for backward compatibility to
support IPNet stack.
01d,03mar05,wap Add NET_SYSCTL dependency
01c,03apr03,vvv modified for componentization (SPR #87352)
01b,24apr02,ppp adding the entry point for netstat ,adding netstat_if.o,
netstat_mroute.o , netstat_mroute6.o
01a,02feb02,ham wrote.
*/
Component INCLUDE_NETSTAT
{
NAME netstat
SYNOPSIS netstat
REQUIRES INCLUDE_IPWRAP_NETSTAT
}
@@ -0,0 +1,31 @@
/* 00comp_net_ping6.cdf - Component configuration file */
/*
* Copyright (c) 2002-2006 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
--------------------
01g,02aug06,kch Simplified INCLUDE_PING6 to support IPNet stack.
01f,16apr02,rvr removed entry points and PREF_DOMAIN attribute (teamf1)
01e,04jun00,pad Addition of PREF_DOMAIN attribute
01d,14jan00,ham added missing stuffs
01c,04nov99,ham added ENTRY_POINTS
01b,24aug99,cym adding pingLib.h (tor2_0_x merge)
01a,25jan02,ger new for clarinet
*/
Component INCLUDE_PING6 {
NAME PING6 client
SYNOPSIS ICMP (ping6) client
HDR_FILES ping6Lib.h
REQUIRES INCLUDE_IPWRAP_PING6
}
@@ -0,0 +1,32 @@
/* 00comp_net_ping.cdf - Component configuration file */
/*
* Copyright (c) 1999-2006 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
--------------------
01g,03aug06,kch Simplified INCLUDE_PING to support IPNet stack.
01f,16apr02,rvr removed entry points and PREF_DOMAIN attribute (teamf1)
01e,04jun00,pad Addition of PREF_DOMAIN attribute
01d,14jan00,ham added missing stuffs
01c,04nov99,ham added ENTRY_POINTS
01b,24aug99,cym adding pingLib.h (tor2_0_x merge)
01a,05may99,cym re-organized.
*/
Component INCLUDE_PING {
NAME PING client
SYNOPSIS ICMP (ping) client
HDR_FILES pingLib.h
REQUIRES INCLUDE_IPWRAP_PING
}
@@ -0,0 +1,46 @@
/* 00comp_net_remlib.cdf - Component configuration file */
/* Copyright 1984 - 2005 Wind River Systems, Inc. */
/*
modification history
--------------------
01e,27aug07,tkf Add REM_NUM_CONN_RETRIALS config parameter.
01d,03mar05,wap Add NET_SYSCTL dependency
01c,14may03,vvv removed adv_net.h
01b,16apr02,rvr removed entry points and PREF_DOMAIN attribute (teamf1)
01a,06mar02,ham ported from TOR3_1-FCS (01e)
*/
Component INCLUDE_REMLIB {
NAME Remote Command
SYNOPSIS Remote Command Library
HDR_FILES remLib.h
MODULES remLib.o
CFG_PARAMS RSH_STDERR_SETUP_TIMEOUT REM_NUM_CONN_RETRIALS
INIT_RTN remLibInit(RSH_STDERR_SETUP_TIMEOUT);
}
Component INCLUDE_REMLIB_SYSCTL {
NAME Remote Command sysctl support
SYNOPSIS Network sysctl tree support for remlib
HDR_FILES remLib.h
MODULES remlib_sysctl.o
INIT_RTN remLibSysctlInit();
INCLUDE_WHEN INCLUDE_RTP \
INCLUDE_REMLIB
}
Parameter RSH_STDERR_SETUP_TIMEOUT {
NAME Timeout interval for second RSH connection if any
SYNOPSIS Time limit for optional rcmd() stderr connection
TYPE long
DEFAULT -1
}
Parameter REM_NUM_CONN_RETRIALS {
NAME Number of connect retrials
SYNOPSIS Number of times to retry if connect fails.
TYPE long
DEFAULT 3
}
@@ -0,0 +1,49 @@
/* 00comp_net_rlogin.cdf - Component configuration file */
/*
* Copyright (c) 2002-2006 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
--------------------
01h,27may11,rjq Added new parameter RLOGIN_MAXCLIENTS.
01g,26dec06,kch Removed usrNetRloginCfg.c configlette and changed init
routine to rlogInit().
01f,14aug06,tkf Remove dependecy on host library.
01e,12sep03,vvv updated configlette path
01d,08sep03,vvv merged from ACCORDION_BASE6_MERGE_BASELINE
01c,18jun02,rvr fixed REQUIRES dependency
01b,18jun02,rvr port to tor22 (teamf1)
01a,07jun02,ann ported to clarinet from AE1.1.
*/
Component INCLUDE_RLOGIN {
NAME RLOGIN
SYNOPSIS Allows remote access to and from the target
HDR_FILES rlogLib.h ptyDrv.h
INIT_RTN rlogInit (RLOGIN_MAXCLIENTS); rlogcInit(RLOGIN_CLIENT_NUMBERS);
CFG_PARAMS RLOGIN_MAXCLIENTS RLOGIN_CLIENT_NUMBERS
MODULES rlogLib.o
}
Parameter RLOGIN_MAXCLIENTS {
NAME RLOGIN_MAXCLIENTS
SYNOPSIS value specifies default limit for simultaneous sessions
DEFAULT 2
TYPE long
}
Parameter RLOGIN_CLIENT_NUMBERS {
NAME rlogin client numbers
SYNOPSIS Number of rlogin client to be approved to create
TYPE int
DEFAULT 1
}
@@ -0,0 +1,75 @@
/* 00comp_net_routecmd.cdf - Component configuration file */
/*
* Copyright (c) 2002-2006 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
--------------------
01h,14sep10,h_x CQ:WIND00141200
01g,31jul06,kch Fixed INCLUDE_ROUTECMD for backward compatibility to
support IPNet stack.
01f,03mar05,wap Add NET_SYSCTL dependency
01e,01mar05,spm added routing socket dependency
01d,12sep03,vvv updated configlette path
01c,14may03,ppp added routeCmd.h
01b,16apr02,rvr removed entry points and PREF_DOMAIN attribute (teamf1)
01a,02feb02,ham wrote.
*/
Component INCLUDE_ROUTECMD
{
NAME routec
SYNOPSIS routec command
HDR_FILES net/utils/routeCmd.h
CONFIGLETTES usrNetRouteCmd.c
INIT_RTN usrNetRouteCmdInit ();
CFG_PARAMS ROUTE_ENTRY_1 \
ROUTE_ENTRY_2 \
ROUTE_ENTRY_3 \
ROUTE_ENTRY_4 \
ROUTE_ENTRY_5
REQUIRES INCLUDE_IPWRAP_ROUTECMD
}
Parameter ROUTE_ENTRY_1 {
NAME Route Command String 1
SYNOPSIS Route Command String 1
DEFAULT NULL
TYPE string
}
Parameter ROUTE_ENTRY_2 {
NAME Route Command String 2
SYNOPSIS Route Command String 2
DEFAULT NULL
TYPE string
}
Parameter ROUTE_ENTRY_3 {
NAME Route Command String 3
SYNOPSIS Route Command String 3
DEFAULT NULL
TYPE string
}
Parameter ROUTE_ENTRY_4 {
NAME Route Command String 4
SYNOPSIS Route Command String 4
DEFAULT NULL
TYPE string
}
Parameter ROUTE_ENTRY_5 {
NAME Route Command String 5
SYNOPSIS Route Command String 5
DEFAULT NULL
TYPE string
}
@@ -0,0 +1,22 @@
/* 00comp_socklib.cdf - Component configuration file */
/* Copyright 1984 - 2004 Wind River Systems, Inc. */
/*
modification history
--------------------
01f,29jun04,niq Remove the UNIXLIB component
01e,28may04,dlk removed obsolete SOCK_FD_MAX parameter
01d,20feb04,vvv added dependency on INCLUDE_UNIXLIB
01c,14may03,vvv removed adv_net.h
01b,16apr02,rvr removed entry points and PREF_DOMAIN attribute (teamf1)
01a,26nov01,ham wrote.
*/
Component INCLUDE_SOCKLIB {
NAME Socket API
SYNOPSIS Socket API
INIT_RTN sockLibInit ();
MODULES sockLib.o
}
@@ -0,0 +1,20 @@
/* 00comp_net_telnet_client.cdf - Component configuration file */
/* Copyright 1984-2000 Wind River Systems, Inc. */
/*
modification history
--------------------
01c,30aug06,tkf Removed CONFIGLETTES and used telnetcInit() for INIT_RTN.
01b,20,jul04jwl modified for virtualization
01a,22jan04 zhr organized.
*/
Component INCLUDE_TELNET_CLIENT {
NAME TELNET client
SYNOPSIS telnet client by use of telnet protocol
HDR_FILES telnetLib.h
INIT_RTN telnetcInit ();
MODULES telnetcLib.o
}
@@ -0,0 +1,30 @@
/* 00comp_net_tftp_client.cdf - Component configuration file */
/*
* Copyright (c) 1999-2006 Wind River Systems, Inc.
*
* The right to copy, distribute, modify or otherwise make use
* of this software may be licensed only pursuant to the terms
* of an applicable Wind River license agreement.
*/
/*
modification history
--------------------
01h,02oct06,tkf Remove unnecessary requirement.
01g,22sep06,tkf Cleaned up component names.
01f,29aug06,kch Replaced INCLUDE_BSD_SOCKET dependency with INCLUDE_IPCOM
and INCLUDE_IPNET_USE_SOCK_COMPAT.
01e,22apr02,rvr added LINK_SYMS attribute (teamf1)
01d,16apr02,rvr removed entry points and PREF_DOMAIN attribute (teamf1)
01c,04jun00,pad Addition of PREF_DOMAIN attribute
01b,14jan00,ham added missing stuffs.
01a,05may99,cym re-organized.
*/
Component INCLUDE_TFTP_CLIENT {
NAME TFTP Client APIs
SYNOPSIS Trivial file transfer protocol client
MODULES tftpLib.o
LINK_SYMS tftpCopy
}
@@ -0,0 +1,91 @@
/* 00comp_net_qos.cdf - Component configuration file */
/*
* Copyright (c) 2005-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
--------------------
01h,14sep10,h_x CQ:WIND00141200
01g,05oct07,mze fix for 104829
01f,23aug07,kch Exclude INCLUDE_QOS_INGRESS from SMP (WIND000100105).
01e,27feb07,kch Removed _CHILDREN properties from INCLUDE_QOS_INGRESS
and INCLUDE_QOS_INGRESS_HOOKS. INCLUDE_QOS_INGRESS_HOOKS
should not be visible based on SPR#118834 (WIND00089189).
01d,09mar06,kch Removed _CHILDREN properties. Also corrected the NAME and
SYNOPSIS for INCLUDE_QOS_INGRESS, INCLUDE_QOS_INGRESS_HOOKS
and QOS_JOBQ_PRI to reflect its intended purposes
(SPR#118834).
01c,08sep05,niq Changed parent to NET_LAYER_2
01b,17aug05,kch Fixed build error. Single quotes cannot be used in cdf file.
01a,14aug05,niq written
*/
/*
* The Ingress Qos Component is currently not supported for SMP.
*/
#ifndef _WRS_VX_SMP
Component INCLUDE_QOS_INGRESS {
NAME Ingress Traffic Prioritization
SYNOPSIS Provides Traffic Prioritization on ingress
HDR_FILES dlink/qosIngressLib.h
CONFIGLETTES usrNetQosIngress.c
INIT_RTN usrNetQosIngressLibInit();
MODULES qosIngressLib.o
REQUIRES INCLUDE_MUX
CFG_PARAMS QOS_JOBQ \
QOS_JOBQ_PRI \
QOS_DEFAULT_PRI
}
/*
Component INCLUDE_QOS_INGRESS_HOOKS {
NAME Ingress Traffic Prioritization Init Routine
SYNOPSIS Provides init routine for traffic prioritization \
on ingress.
INIT_RTN qosIngressHooksInit();
MODULES qosIngressHooks.o
REQUIRES INCLUDE_QOS_INGRESS
}
*/
Parameter QOS_JOBQ {
NAME Ingress QoS Job Queue
SYNOPSIS Specifies the Job queue that will be used to schedule \
the deferred queue processing job.
DEFAULT netJobQueueId
TYPE long
}
Parameter QOS_JOBQ_PRI {
NAME Ingress Traffic Prioritization Job Queue Priority
SYNOPSIS Specifies the the priority at which the deferred queue \
processing job will be scheduled on the Job queue \
defined by QOS_JOBQ. Valid values range from 0 to 31. \
For correct operation, this value should be less than \
the priority at which the driver receive routine \
executes.
DEFAULT NET_TASK_QJOB_PRI - 1
TYPE long
}
Parameter QOS_DEFAULT_PRI {
NAME Ingress default deferred Job Queue Priority
SYNOPSIS Specifies the priority queue on which the packet \
is deferred for processing, if the packet \
classification routine returns QOS_DEFER_PKT with -1 \
in the priority field. Valid values range from 0 to 31.
DEFAULT 0
TYPE long
}
#endif /* !_WRS_VX_SMP */
@@ -0,0 +1,5 @@
config COMPONENT_VXCOREIP
bool
default y
help
This configuration option is a placeholder and currently is invisible to the user, non-optional.
@@ -0,0 +1,146 @@
/* usrFtp.c - Support for FTP client */
/*
* Copyright (c) 2002, 2004, 2006 Wind River Systems, Inc.
*
* The right to copy, distribute, modify or otherwise make use
* of this software may be licensed only pursuant to the terms
* of an applicable Wind River license agreement.
*/
/*
modification history
--------------------
01k,29sep10,h_x Fix build and coverity warnings.
01j,26dec06,kch Removed references to the obsolete coreip virtual stack.
01i,15feb06,mwv remove the errnoSet (SPR#117656)
01h,16sep04,vvv fixed warning
01g,22jul04,kc Added missing #endif and fixed warnings.
01f,21jul04,spm added virtual stack support
01e,21apr04,asr fix compile warning
01d,25mar04,asr added ftpLibInit call from usrFtpInit
01c,25feb04,ijm bootrom/runtime starting ports should differ, SPR#93950
01b,23may02,elr ftpLibDebugLevelSet (FTP_DEBUG_LEVEL) is now
ftpLibDebugOptionsSet (FTP_DEBUG_OPTIONS)
01a,20dec06,elr created
*/
/*
DESCRIPTION
This file is used to include support for the ftp client.
NOMANUAL
*/
IMPORT STATUS ftpLibInit (long);
IMPORT UINT32 ftplTransientMaxRetryCount;
IMPORT UINT32 ftplTransientRetryInterval;
IMPORT STATUS ftpTransientFatalInstall();
IMPORT STATUS ftplDebugOptionsSet();
STATUS usrFtpInit (void);
#if (defined(INCLUDE_TCPV4) && defined(INCLUDE_NET_SYM_TBL))
/******************************************************************************
*
* advanceTcpPorts - advance TCP ports for runtime image
*
* This function advances the starting port for the runtime image by 2 to
* avoid delaying the loading of the symbol table.
* The bootrom FTP opens 2 sockets to download the runtime image.
* If the runtime image downloads the symbol table, the starting port,
* must be IPPORT_RESERVED_CFG + 2 or larger since
* IPPORT_RESERVED_CFG and IPPORT_RESERVED_CFG + 1 ports are in
* TIME_WAIT at the boot host.
*
* RETURNS: N/A
*
* NOMANUAL
*/
void advanceTcpPorts (void)
{
int fd;
struct sockaddr_in sockaddr;
int i;
for (i=0; i<=1;++i)
{
if ((fd = socket (AF_INET, SOCK_STREAM, 0)) == ERROR)
return;
bzero ((char *)&sockaddr, sizeof (sockaddr));
sockaddr.sin_family = AF_INET;
sockaddr.sin_port = 0;
sockaddr.sin_addr.s_addr = htonl (INADDR_ANY);
bind (fd, (struct sockaddr *) &sockaddr, sizeof (sockaddr));
close (fd);
}
return;
}
#endif /* INCLUDE_NET_SYM_TBL */
/*******************************************************************************
*
* ftpTransientFatal - example applette to terminate FTP transient host responses
*
* ftpXfer will normally retry a command if the host responds with a 4xx
* reply. If this applette is installed, it can immediately terminate
* the retry sequence.
*
*
* RETURNS : TRUE - Terminate retry attempts
* FALSE - Continue retry attempts
*
*
* SEE ALSO : ftpTransientFatalInstall(), ftpTransientConfigSet()
*
*/
LOCAL BOOL ftpTransientFatal
(
UINT32 reply /* Three digit code defined in RFC #640 */
)
{
switch (reply)
{
case (421): /* Service not available */
case (450): /* File unavailable */
case (451): /* error in processing */
case (452): /* insufficient storage */
{
/* yes, these are actually non-recoverable replies */
return (TRUE);
}
/* attempt to retry the last command */
default:
return (FALSE);
}
}
/******************************************************************************
*
* usrFtpInit - initialize FTP parameters
*
* This routine configures ftp client parameters.
* defined by the user via the project facility.
*
* RETURNS: OK or ERROR
*
* NOMANUAL
*/
STATUS usrFtpInit (void)
{
ftpLibInit (FTP_TIMEOUT);
ftplTransientMaxRetryCount = FTP_TRANSIENT_MAX_RETRY_COUNT;
ftplTransientRetryInterval = FTP_TRANSIENT_RETRY_INTERVAL;
ftpTransientFatalInstall ( FTP_TRANSIENT_FATAL );
ftpLibDebugOptionsSet ( FTP_DEBUG_OPTIONS );
return OK;
}
@@ -0,0 +1,31 @@
/* usrGetnameinfo.c - getnameinfo initialization */
/*
* Copyright (c) 2006 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
--------------------
01b,13feb07,dlk Moved RTP getaddrinfo() initialization to
INCLUDE_GETNAMEINFO_SYSCTL component.
01a,29sep06,tlu initial creation
*/
/*
DESCRIPTION
This file is the configlette for INCLUDE_GETADDRINFO.
NOMANUAL
*/
STATUS usrGetaddrinfoInit (void)
{
return (OK);
}
@@ -0,0 +1,35 @@
/* usrGetnameinfo.c - getnameinfo initialization */
/*
* Copyright (c) 2003-2006 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
--------------------
01f,13feb07,dlk Moved RTP getnameinfo() initialization to
INCLUDE_GETNAMEINFO_SYSCTL component.
01e,26dec06,kch Removed references to the obsolete coreip virtual stack.
01d,02oct06,tlu Remove un-necessary gethostbyaddrInit() and virtual stack
01c,20may05,niq Fix virtual stack initialization error
01b,03mar05,wap Add error to notify user of missing component
01a,05dec03,vvv written
*/
/*
DESCRIPTION
This file is the configlette for INCLUDE_GETNAMEINFO.
NOMANUAL
*/
STATUS usrGetnameinfoInit (void)
{
return (OK);
}
@@ -0,0 +1,86 @@
/* usrNetApplUtil.c - applUtilLib initialization */
/*
* Copyright (c) 2001-2006 Wind River Systems, Inc.
*
* The right to copy, distribute, modify or otherwise make use
* of this software may be licensed only pursuant to the terms
* of an applicable Wind River license agreement.
*/
/*
modification history
--------------------
01d,26dec06,kch Removed references to the obsolete coreip virtual stack.
01c,04may05,dlk Fix SPR #108879. Remove erroneous SEM_Q_FIFO flag
in semMCreate() and semOpen() calls.
01b,09mar05,dlk Initialize the logging semaphore here rather than in
applUtilLib.c for better scalability (SPR #104991).
01a,12sep04,dlk written.
*/
/*
DESCRIPTION
Configlette for applUtilLib (Application/Stack logging facility)
initialization.
Note, this file is included by both usrNetwork.c and bootConfig.c.
Make sure that any changes you make here do not break the command
line vxWorks and bootrom builds.
*/
/* externs */
extern SEM_ID applUtilLogSem; /* non-virtualized */
extern STATUS applUtilInstInit (void *);
/****************************************************************************
*
* usrNetApplUtilInit() - initialize the application/stack logging utility
*
* RETURNS: N/A
*/
void usrNetApplUtilInit (void)
{
APPL_UTIL_CFG * pCfg;
SEM_ID semId;
APPL_UTIL_CFG cfg;
pCfg = &cfg;
pCfg->cfgh.len = sizeof (*pCfg);
pCfg->fd = APPL_LOG_FD_CFG;
pCfg->level = APPL_LOG_LEVEL_CFG;
pCfg->fdKern = APPL_KERN_LOG_FD_CFG;
pCfg->levelKern = APPL_KERN_LOG_LEVEL_CFG;
#if (_WRS_VXWORKS_MAJOR >= 6 && defined (INCLUDE_RTP))
/* create the semaphore */
semId = semOpen ("/applUtilLogSem",
SEM_TYPE_MUTEX,
SEM_FULL, /* ignored */
SEM_Q_PRIORITY | SEM_INVERSION_SAFE | SEM_DELETE_SAFE,
OM_CREATE | OM_EXCL, /* mode; creating */
NULL /* context, not used */);
#else /* _WRS_VXWORKS_MAJOR < 6, or no RTP support */
semId = semMCreate (SEM_Q_PRIORITY | SEM_INVERSION_SAFE | SEM_DELETE_SAFE);
#endif /* _WRS_VXWORKS_MAJOR < 6, or no RTP support */
#ifndef _FREE_VERSION
if (semId == NULL)
{
if (_func_printErr != NULL)
_func_printErr ("usrNetApplUtilInit: can't create semaphore\n");
}
#endif
applUtilLogSem = semId;
applUtilInstInit (pCfg);
}
@@ -0,0 +1,68 @@
/* usrNetArpLib.c - arpLib configuration */
/* Copyright 1984 - 2004 Wind River Systems, Inc. */
/*
modification history
--------------------
01d,07may04,vvv fixed warnings (SPR #96364)
01c,12aug03,niq Merging from Accordion label ACCORDION_BASE6_MERGE_BASELINE
01b,06sep02,ppp making a call to arpLibInit for that module to be included
01a,05feb02,ham wrote.
*/
/*
DESCRIPTION
This configlette contains the initialization routine for the
INCLUDE_ARP_API component.
NOMANUAL
*/
/* includes */
#include <arpLib.h>
extern void arpLibInit(void);
void usrNetArpLibInit (void)
{
char * arpHost;
char * arpAddr;
arpLibInit();
/* Add 5 static arp entries */
arpHost = ARP_ENTRY_1_HOST;
arpAddr = ARP_ENTRY_1_ADDR;
if (((arpHost != NULL)) && ((arpAddr != NULL)))
arpAdd (ARP_ENTRY_1_HOST, ARP_ENTRY_1_ADDR, ATF_PERM);
arpHost = ARP_ENTRY_2_HOST;
arpAddr = ARP_ENTRY_2_ADDR;
if (((arpHost != NULL)) && ((arpAddr != NULL)))
arpAdd (ARP_ENTRY_2_HOST, ARP_ENTRY_2_ADDR, ATF_PERM);
arpHost = ARP_ENTRY_3_HOST;
arpAddr = ARP_ENTRY_3_ADDR;
if (((arpHost != NULL)) && ((arpAddr != NULL)))
arpAdd (ARP_ENTRY_3_HOST, ARP_ENTRY_3_ADDR, ATF_PERM);
arpHost = ARP_ENTRY_4_HOST;
arpAddr = ARP_ENTRY_4_ADDR;
if (((arpHost != NULL)) && ((arpAddr != NULL)))
arpAdd (ARP_ENTRY_4_HOST, ARP_ENTRY_4_ADDR, ATF_PERM);
arpHost = ARP_ENTRY_5_HOST;
arpAddr = ARP_ENTRY_5_ADDR;
if (((arpHost != NULL)) && ((arpAddr != NULL)))
arpAdd (ARP_ENTRY_5_HOST, ARP_ENTRY_5_ADDR, ATF_PERM);
return;
}
@@ -0,0 +1,125 @@
/* usrNetHostTblCfg.c - host table initialization */
/*
* Copyright (c) 2002-2006 Wind River Systems, Inc.
*
* The right to copy, distribute, modify or otherwise make use
* of this software may be licensed only pursuant to the terms
* of an applicable Wind River license agreement.
*/
/*
modification history
--------------------
01m,29sep10,h_x Fix build and coverity warnings.
01l,25aug07,tkf Add support for adding host using IPv6 addresses.
01k,13feb07,dlk RTP host table sysctl initialization is done by
INCLUDE_HOST_TBL_SYSCTL.
01j,26dec06,kch Removed references to the obsolete coreip virtual stack.
01i,12sep05,vvv added definitions to fix build issue (SPR #105297)
01h,03mar05,wap Add error to notify user of missing component
01g,08oct04,kc Fixed compiler error for virtual stack.
01f,20sep04,dlk Return a value from usrNetTblStart().
01e,19sep04,spm cleanup file: added missing comment start
01d,19sep04,spm updated host table initialization for virtual stack startup
01c,05dec03,vvv added RTP support
01b,18nov02,hgo make it an optional component
01a,24jul02,hgo written
*/
/*
DESCRIPTION
This file is configlette for INCLUDE_HOST_TBL.
NOMANUAL
*/
#include <hostLib.h>
#ifndef NETBOOTDEF
#define NETBOOTDEF
char * pAddrString; /* Selects address field for device. */
char * pTgtName; /* Selects name for the target */
#endif
#ifdef INCLUDE_NET_BOOT_IPV6_CFG
IMPORT STATUS usrNetBootIpv6AddrExtract (char * pTgtAddr, char * pHstAddr,
size_t addrLen, BOOL * pHstLinkLocal);
#endif
/*******************************************************************************
*
* usrNetHostTblSetup - assign initial host table entries
*
* This routine initializes the internal host table and adds the
* hostnames and IP addresses for the local vxWorks target and the
* boot host, if available. It also creates a default host entry for
* the loopback address.
*
* The boot host information is required for the installation of any
* network remote I/O device.
*
* RETURNS: OK, or ERROR if setup failed.
*
* NOMANUAL
*/
LOCAL STATUS usrNetHostTblSetup (void)
{
STATUS result = ERROR;
if (hostTblInit () == ERROR)
return (ERROR);
#if defined(INET)
/*
* Create initial host table entries for the loopback address,
* and for the local and remote IP addresses, if available.
* The remote host information is required for the installation
* of any network remote I/O device. The remaining startup sequence
* may use a network I/O device, if it downloads a symbol table.
*/
result = hostTblSetup (sysBootParams.hostName, sysBootParams.had,
pTgtName, pAddrString);
return (result);
#elif INCLUDE_NET_BOOT_IPV6_CFG
{
#ifdef INET6_ADDR_LEN
#define USR_NET_IP6ADDR_LEN (INET6_ADDR_LEN + 18)
#else
#define USR_NET_IP6ADDR_LEN 64
#endif
/*
* Ipv6 Only Stack case: to allow symbol table download we need to
* setup the static host entries using IPv6 addresses.
*/
char * pTgtIpv6Addr;
char * pHstIpv6Addr;
if (((pTgtIpv6Addr = calloc (USR_NET_IP6ADDR_LEN, sizeof(char))) == NULL) ||
((pHstIpv6Addr = calloc (USR_NET_IP6ADDR_LEN, sizeof(char))) == NULL))
return ERROR;
pTgtIpv6Addr [0] = 0;
pHstIpv6Addr [0] = 0;
if (usrNetBootIpv6AddrExtract (pTgtIpv6Addr, pHstIpv6Addr,
USR_NET_IP6ADDR_LEN, NULL) == OK)
result = hostTblSetup (sysBootParams.hostName, pHstIpv6Addr,
pTgtName, pTgtIpv6Addr);
else
result = ERROR;
free (pTgtIpv6Addr);
free (pHstIpv6Addr);
return (result);
}
#else /* INCLUDE_NET_BOOT_IPV6_CFG */
return (result);
#endif
}
@@ -0,0 +1,77 @@
/* usrNetIfconfig.c - Network default configuration */
/*
* Copyright (c) 2002 - 2006 Wind River Systems, Inc.
*
* The right to copy, distribute, modify or otherwise make use
* of this software may be licensed only pursuant to the terms
* of an applicable Wind River license agreement.
*/
/*
modification history
--------------------
01e,01aug06,kch Removed the unsupported call to ifconfigInit().
01d,25aug04,vvv fixed typo
01c,07may04,vvv fixed warnings (SPR #96364)
01b,07mar03,ann added call to ifconfigInit()
01a,05feb02,ham wrote.
*/
/*
DESCRIPTION
This configlette contains the initialization routine for the
INCLUDE_IFCONFIG component.
NOMANUAL
*/
void usrNetIfconfigInit (void)
{
char * ifString;
/* Configure up to 10 interfaces with ifconfig */
ifString = IFCONFIG_ENTRY_1;
if ((ifString != NULL))
ifconfig (IFCONFIG_ENTRY_1);
ifString = IFCONFIG_ENTRY_2;
if ((ifString != NULL))
ifconfig (IFCONFIG_ENTRY_2);
ifString = IFCONFIG_ENTRY_3;
if ((ifString != NULL))
ifconfig (IFCONFIG_ENTRY_3);
ifString = IFCONFIG_ENTRY_4;
if ((ifString != NULL))
ifconfig (IFCONFIG_ENTRY_4);
ifString = IFCONFIG_ENTRY_5;
if ((ifString != NULL))
ifconfig (IFCONFIG_ENTRY_5);
ifString = IFCONFIG_ENTRY_6;
if ((ifString != NULL))
ifconfig (IFCONFIG_ENTRY_6);
ifString = IFCONFIG_ENTRY_7;
if ((ifString != NULL))
ifconfig (IFCONFIG_ENTRY_7);
ifString = IFCONFIG_ENTRY_8;
if ((ifString != NULL))
ifconfig (IFCONFIG_ENTRY_8);
ifString = IFCONFIG_ENTRY_9;
if ((ifString != NULL))
ifconfig (IFCONFIG_ENTRY_9);
ifString = IFCONFIG_ENTRY_10;
if ((ifString != NULL))
ifconfig (IFCONFIG_ENTRY_10);
}
@@ -0,0 +1,39 @@
/* usrNetQosIngress.c - Ingress QoS initialization */
/*
* Copyright (c) 2005 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
--------------------
01a,14aug05,niq written
*/
/*
DESCRIPTION
*/
/* extern */
IMPORT QOS_CONFIG_PARAMS qosDefaultConfigParams;
IMPORT JOB_QUEUE_ID QOS_JOBQ;
STATUS usrNetQosIngressLibInit (void)
{
/* Initialize parameters for the qosIngressLib */
qosDefaultConfigParams.cfg_pJobQueue = QOS_JOBQ;
qosDefaultConfigParams.cfg_jobQPri = QOS_JOBQ_PRI;
qosDefaultConfigParams.cfg_qosDefaultPri = QOS_DEFAULT_PRI;
return (qosIngressLibInit(&qosDefaultConfigParams));
}
@@ -0,0 +1,55 @@
/* usrNetRouteCmd.c - Network route command configuration */
/*
* Copyright (c) 2002 - 2006 Wind River Systems, Inc.
*
* The right to copy, distribute, modify or otherwise make use
* of this software may be licensed only pursuant to the terms
* of an applicable Wind River license agreement.
*/
/*
modification history
--------------------
01d,01aug06,kch Removed the unsupported call to routeCmdInit().
01c,07may04,vvv fixed warnings (SPR #96364)
01b,24mar03,ann added a call to routeCmdInit().
01a,05feb02,ham wrote.
*/
/*
DESCRIPTION
This configlette contains the initialization routine for the
INCLUDE_ROUTECMD component.
NOMANUAL
*/
void usrNetRouteCmdInit (void)
{
char * routeString;
/* Add 5 static routing entries */
routeString = ROUTE_ENTRY_1;
if ((routeString != NULL))
routec (ROUTE_ENTRY_1);
routeString = ROUTE_ENTRY_2;
if ((routeString != NULL))
routec (ROUTE_ENTRY_2);
routeString = ROUTE_ENTRY_3;
if ((routeString != NULL))
routec (ROUTE_ENTRY_3);
routeString = ROUTE_ENTRY_4;
if ((routeString != NULL))
routec (ROUTE_ENTRY_4);
routeString = ROUTE_ENTRY_5;
if ((routeString != NULL))
routec (ROUTE_ENTRY_5);
}