As the subject says.
I am using MQX3.4 and CW7.1.2 build 11 52259evb
It wont compile returning "undefined identifier 'pcb' on lines 583 and 598.
Is there something else that needs to be included so ip.c can see 'pcb ' which is defined in pcb.h
user_config.h looks like this
#define RTCSCFG_ENABLE_NAT 1
#define RTCSCFG_ENABLE_ICMP 1
#define RTCSCFG_ENABLE_UDP 1
#define RTCSCFG_ENABLE_TCP 0
#define RTCSCFG_ENABLE_STATS 1
#define RTCSCFG_ENABLE_GATEWAYS 1
#define FTPDCFG_USES_MFS 0
#define RTCSCFG_ENABLE_SNMP 0
I also cannot call
error = setsockopt(sock, SOL_NAT, RTCS_SO_NAT_TIMEOUTS, &nat_touts, sizeof(nat_touts));
the error I get is undefine 'SOL_NAT'
I do have #include <rtcs.h> and #include <nat.h> which holds the SOL_NAT definition
Another question:
Do I really need to hav:
#define RTCSCFG_ENABLE_NAT 1
#define RTCSCFG_ENABLE_IP_STATS 1
Just so I can change UDP timeout using:
setsockopt(sock, SOL_NAT, RTCS_SO_NAT_TIMEOUTS, &nat_touts, sizeof(nat_touts));
I have no indepth understanding of RTCS, or related low level drivers, but it seems we are including a lot of recources that we will never use just to get a UDP to timeout.
PS. None of this would matter if my other thread regarding RTCS_MSG_PEEK was solved. I just need to retry sending UDP if I dont get a response in X time.
Message Edited by CarlFST60L on 2010-02-04 12:11 AM