-
Type:
Enhancement
-
Resolution: Implemented
-
Priority:
Medium
-
Network Development Kit
-
NDK-548
-
NDK_3_71_00
-
NDK_3_80_00
The TCP keepalive timer should be added to the tcp configuration for the NDK.
In ndk/inc/nettools/netcfg.h 3 cfg items are configured for the tcp keepalive timer.
#define CFGITEM_IP_TCPKEEPIDLE 36 /* Idle time before 1st TCP keep probe */
#define CFGITEM_IP_TCPKEEPINTVL 37 /* TCP keep probe interval */
#define CFGITEM_IP_TCPKEEPMAXIDLE 38 /* Max TCP keep probing time before drop */
These values can be used with CfgAddEntry() too configure the timers values setup in ndk/inc/nettools/resif.h.
#define TCP_KEEP_IDLE (_ipcfg.TcpKeepIdle)
#define TCP_KEEP_INTVL (_ipcfg.TcpKeepIntvl)
#define TCP_KEEP_MAXIDLE (_ipcfg.TcpKeepMaxIdle)
Syscfg should generate the CfgAddEntry() command for you. This will also be a good place to document how these timers work.