RE: RCM4300 MTU Stuck at 16
"'Mike Moyes' mike-g5W9c/[email protected] [rabbit-semi]" <[email protected]> Thu, 28 Jan 2016 18:03:44 +0200
| Newsgroups | gmane.comp.hardware.rabbit-semiconductor |
|---|---|
| Message-ID | <00e401d159e5$77e78720$67b69560$@com> |
Hi Steve,
Thanks for the reply.
I only set the MTU once right in beginning of my code.
I did as you suggested and added;
“printf("MTU:%d\r\n",ETH_MTU);”
I chose a value of 1400, and when I run it this I get:
“MTU:1400 “.
But if I also add “ip_print_ifs();” then I get this;
“Interface table:
# IP addr. Mask Up Lnk Type MTU Flags Peer/router
-- --------------- --------------- --- --- ---- ---- ------ ---------------
0 192.168.1.10 255.255.255.0 yes yes eth 16 * 192.168.1.254 “
I run this in a loop to see if anything is changing and it provides the same output messages.
To me it appears if the macro value is being set correctly but not being implemented?
Below are the only macros that I set;
//-----------------------------------
#define HTTP_MAXSERVERS 4
#class auto
#define RWEB_ZHTML_MAXVARLEN 1024
#define HTTP_MAXBUFFER 1024
#define USE_RABBITWEB 1
//------------------------------------
The complete system works fine but I must know if the MTU is set to 1500 or some higher value than 16.
Regards,
Mike
From: [email protected] [mailto:[email protected]]
Sent: Thursday, January 28, 2016 5:01 PM
To: [email protected]
Subject: Re: [rabbit-semi] RCM4300 MTU Stuck at 16
If ETH_MTU is not defined in your code, the value is defined in net.lib and is either
1500 or 1489, depending on whether WIFI is used and if the board is a R5000 series.
Are you sure you haven't defined it somewhere? I suggest using a printf() statement
to send the value to the output window of the debugger and verify the value set.
printf("MTU: %d\r\n", ETH_MTU);
Steve
_____
From: "Femto Com mike-g5W9c/[email protected] [rabbit-semi]" <[email protected]>
To: [email protected]
Sent: Thursday, January 28, 2016 4:02 AM
Subject: [rabbit-semi] RCM4300 MTU Stuck at 16
Good day,
I'm hoping that someone could assist me with setting the MTU value for the RCM4300.
On boot-up the interface table reports that "eth MTU 16".
Using the ETH_MTU macro has no effect, no matter which value I chose it remains at 16.
I can change the MTU of my RCM4010 to a value of my choice using the ETH_MTU macro.
Both modules are loaded with the same code.
I'm using DC 10.7.
Any idea where I can go and look?
Regards
Mike