Configuration Specification
4-27
Initialization and Configuration
4.4.3.3
Individual Configuration Entry Instance Structures
The following is the definition of the instance structures used for each of the
defined configuration entries using the configuration service tag. Note that all
structures contain the previously mentioned CISARGS structure. Some ser-
vices require more information and their configuration entry structure contains
an additional parameter structure as defined in the service’s NETTOOLS API.
Others do not require a parameter structure.
// Telnet Entry Data
typedef struct _ci_service_telnet {
CISARGS cisargs; // Common arguments
NTPARAM_TELNET param; // Telnet parameters
} CI_SERVICE_TELNET;
// HTTP Server Entry Data
typedef struct _ci_service_http {
CISARGS cisargs; // Common arguments
} CI_SERVICE_HTTP;
// NAT Service Entry Data
typedef struct _ci_service_nat {
CISARGS cisargs; // Common arguments
NTPARAM_NAT param; // NAT parameters
} CI_SERVICE_NAT;
// DHCP Server Entry Data
typedef struct _ci_service_dhcps {
CISARGS cisargs; // Common arguments
NTPARAM_DHCPS param; // DHCPS parameters
} CI_SERVICE_DHCPS;
// DHCP Client Service
typedef struct _ci_service_dhcpc {
CISARGS cisargs; // Common arguments
NTPARAM_DHCP param; // DHCP parameters
} CI_SERVICE_DHCPC;
// DNS Server Service
typedef struct _ci_service_dnss {
CISARGS cisargs; // Common arguments
} CI_SERVICE_DNSSERVER;
4.4.3.4
Specifying Network Services
For examples of adding specific network services to the configuration, please
reference the service description in the “Network Tools Library – Services”
section.
4.4.4
IP Network Specification (CFGTAG_IPNET)
The IPNET entry specifies what IP networks are to appear on which physical
interfaces. When specifying an IPNET entry to the configuration, the Tag pa-
rameter is set to CFGTAG_IPNET, and the Item parameter is set to the index
(1 to n) of the physical interface on which the network is to appear.