/* 02comp_ipnet_dhcp.cdf - IPNet DHCP configuration file */ /* * Copyright (c) 2006-2009 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 -------------------- 01v,11aug10,h_s move from osconfig and split from 02comp_ipnet_dhcp.cdf 01u,05jul10,lzq Added INCLUDE_IPDHCPC6_CMD component 01t,04sep09,h_s Modify the DHCPC,DHCPR,DHCPS related callback function to 0 instead of NULL to make gnu compile correct. 01s,04jun09,ggz Added DHCPC ip address lease time 01r,29may09,spw Add DHCPS_NO_STRICT_SUBNET_MATCH param 01q,11feb08,spw Add support for user defined client options 01p,10oct08,spw Add max message size, ttl, auto enable interface configs 01o,27aug08,spw Add option to remove existing addresses from interface when starting negotiation 01n,27aug08,spw Modify option callback param name, add netmask option 01m,30may08,spw Add bootp mode and some more options 01l,23sep08,rme Misspelled words corrected 01k,19sep07,rme Added missing backslash 01n,07sep07,rme Replaced SELECTION_IPCOM_FS with SELECT_IPCOM_FS in INCLUDE_IPDHCPC6 01m,07sep07,rme Replaced SELECTION_IPCOM_FS with SELECT_IPCOM_FS in INCLUDE_IPDHCPS 01l,10sep07,mze INCLUDE_IPCOM_FS_SELECTION changed to SELECT_IPCOM_FS 01k,21aug07,mze fixed mistake in INCLUDE_IPDHCPS MODULES line continued without "\" 01j,28aug07,ps Add DHCPc6 authentication parameters 01i,07feb07,tkf Add IPDHCPS dependency on SELECT_IPCOM_FS. 01h,22jan07,kch Added DHCPC_RFC2131_INIT_DELAY, DHCPC_RFC2131_EXP_BACKOFF, DHCPC_DISCOVER_RETRIES and DHCPC_OFFER_TIMEOUT configuration macros (WIND00086146). 01g,03jan07,kch Changed DHCPC_SERVER_PORT default value from 68 to 67. Renamed DHCPC_IFLIST_REQ_OPTS and DHCPC_IFLIST_CLIENT_ID macros to DHCPC_IF_REQ_OPTS_LIST and DHCPC_IF_CLIENT_ID_LIST. 01f,19dec06,mwv Correct typos throughout (WIND00083100) 01e,15dec06,kch Corrected typo for DHCPC6_IF_IA_NA_DEFAULT_LIST description. 01d,11dec06,kch Added configuration parameters for DHCP client, relay and server callback hooks. Also added DHCPS_NETCONF_SYSVAR and DHCPR_NETCONF_SYSVAR. Added ipnet/ipDHCPc_example.c configlette to INCLUDE_IPDHCPC as well. 01c,01dec06,kch Added additional configuration parameters for DHCP6 Client. 01b,23sep06.kch Added INCLUDE_IPDHCPS6_CMD. 01a,14sep06,tkf Written */ #ifdef _WRS_CONFIG_COMPONENT_IPDHCPR Component INCLUDE_IPDHCPR { NAME DHCP Relay Agent SYNOPSIS DHCP Relay Agent MODULES ipdhcpr.o ipdhcpr_cmd_dhcpr.o REQUIRES INCLUDE_IPCOM CONFIGLETTES ipdhcpr_config.c CFG_PARAMS DHCPR_SERVER_PORT DHCPR_CLIENT_PORT DHCPR_MAX_PKT_SIZE \ DHCPR_HOPS_THRESHOLD DHCPR_NETCONF_SYSVAR \ DHCPR_INSTALL_CALLBACK_HOOK DHCPR_START_CALLBACK_HOOK _CHILDREN FOLDER_DHCP } /* INCLUDE_IPDHCPR configuration parameters */ Parameter DHCPR_SERVER_PORT { NAME UDP port used by the DHCP server SYNOPSIS Defines the UDP port used for reception by dhcp/bootp \ servers handled by DHCP relay agent TYPE char * DEFAULT "67" } Parameter DHCPR_CLIENT_PORT { NAME UDP port used by the DHCP/bootp clients SYNOPSIS Defines the UDP port used for reception by DHCP/bootp \ clients handled by DHCP relay agent. TYPE char * DEFAULT "68" } Parameter DHCPR_MAX_PKT_SIZE { NAME Max DHCP relay packet size SYNOPSIS Defines the packet size used by DHCP relay agent for \ sending and receiving. The size must never be less than \ 576 bytes, which is the standard DHCP packet size. TYPE char * DEFAULT "576" } Parameter DHCPR_HOPS_THRESHOLD { NAME Maximum number of hops SYNOPSIS Defines the maximum number of relay agents allowed between \ a client and a server. Packets with a hops count greater \ than this threshold value are silently dropped TYPE char * DEFAULT "3" } Parameter DHCPR_NETCONF_SYSVAR { NAME DHCP relay network pre-configuration SYNOPSIS DHCP relay network pre-configuration array is used to \ statically configure the DHCP relay with a pre-configured \ setup of networks and hosts when initiated. Each system \ variable in this array must be named according to the syntax \ ipdhcpr.netconf., where is a unique line \ indicator. The value of each system variable must consist \ of a IPDHCPR shell command (without the preceding dhcpr \ that is used only when executing from a shell). The commands \ are executed in the order they are defined. See \ ipdhcpr_netconf_sysvar Ipcom_sysvar array in ipdhcpr_config.c \ configlette for the example usage. TYPE void * DEFAULT NULL } Parameter DHCPR_INSTALL_CALLBACK_HOOK { NAME Install dhcp relay callback routine SYNOPSIS Determine if the user-defined DHCP relay callback routines \ as specified by the macro DHCPR_START_CALLBACK_HOOK \ should be installed. If FALSE, the DHCPR_START_CALLBACK_HOOK \ configuration is not applicable. TYPE BOOL DEFAULT FALSE } Parameter DHCPR_START_CALLBACK_HOOK { NAME DHCP relay startup callback routine SYNOPSIS DHCP relay startup callback routine. This routine, if \ provided, will be called by DHCP relay at startup. It is \ intended to be used for user supplied startup configuration \ of the DHCP relay. The DHCPR_INSTALL_CALLBACK_HOOK must \ also be set to TRUE in order to install this callback hook. TYPE FUNCPTR DEFAULT 0 } #endif