Error in rtcs' tcpip/rip.c

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Error in rtcs' tcpip/rip.c

820 Views
PaulClaessen
Contributor II

I'm chasing a problem in the TCP/IP stack, and I ran into this unrelated issue:

When I disabled minimum footprint (hoping for more logging info)

#define RTCS_MINIMUM_FOOTPRINT

0

this resulted in turning on rip

Which in turn resulted in a compilation error in rip.c

Q:/Freescale/CW MCU v10.2/MCU/ColdFire_Tools/Command_Line_Tools/mwccmcf|Compiler|Error

(Q:\Projects\alert_receiver_controller\trunk\MQX\rtcs\source\tcpip\rip.c|932|50|1|30577|1)

=    gate = RTCS_part_alloc(IP_cfg_ptr->GATE_PARTID); 

>'GATE_PARTID' is not a member of class 'struct ip_cfg_struct'

I overcame this by selectively turning off rip, but it's probably a bug that needs fixing.

I'm using MQX 3.8

Labels (1)
4 Replies

532 Views
DavidS
NXP Employee
NXP Employee

Hi Paul.

I tried this with MQX3.8.1 but do not get an error.

I'm assuming your error was when compiling the RTCS library.  Correct?  If not when do you get the error?

Are you truly using MQX3.8 or MQX3.8.1?  If MQX3.8 can up upgrade to MQX3.8.1?

Regards,

David

532 Views
PaulClaessen
Contributor II

David,

I'm fairly sure I'm using 3.8.

While I don't want to upgrade in the midst of a project, I sure can TRY with 3.8.1 (even though it sounds like it has been solved already -- if you don't get the compilation error).

Where can I download 3.8.1? I only see 3.8.0  .. here:

http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=MQX

Thanks for checking this out!

~ Paul

0 Kudos

532 Views
DavidS
NXP Employee
NXP Employee

Good link.  Just click on the Download tab to see the various version to download.

Or Click:

Regards,

David

0 Kudos

532 Views
PaulClaessen
Contributor II

Got it .. not a version issue after all ...

The error stems from the fact that I'm not using gateway support:

See: typedef struct ip_cfg_struct { ... etc in ip_prv.h:

#if RTCSCFG_ENABLE_GATEWAYS

   _rtcs_part        GATE_PARTID;   /* the descriptor of IP_ROUTE_INDIRECTS */

#endif

Of course, then there should also be an #if RTCSCFG_ENABLE_GATEWAYS

in priv.c (932) where GATE_PARTID gets set.