Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000104 [ethersex] Bug major always 2010-06-14 13:39 2010-06-14 16:15
Reporter murdok View Status public  
Assigned To stettberger
Priority normal Resolution fixed  
Status resolved  
Summary 0000104: ip routing without ethernet (aka enc28j60) not working correct
Description router_find_stack function tries to find stack which is allowed to serve target ip address (own or netmask match).
if it fails in first instance it tries again with default gateway address.

With no enc28j60 enabled (and therefore no ETHERNET_SUPPORT enabled) ther is no eeprom configuration and also no default gateway.
This is needed if you try to connect to an ip or route through to an ip that is not in range of any netmask of connected buses(stacks).

Therefor i recommend to at least set a common default gateway address even if no enc28j60 is enabled.

this could be placed in network_init function.

see patch:

--- ethersex/network.c 2010-06-03 15:51:34.000000000 +0200
+++ ethersex_patched/network.c 2010-06-14 13:38:26.000000000 +0200
@@ -138,6 +138,11 @@
 # else
     uip_arp_init();
 # endif
+# else /* ETHERNET_SUPPORT */
+ /* set at least fixed default gateway address
+ * to allow multi stack routing */
+ set_CONF_ETHERRAPE_GATEWAY(&ip);
+ uip_setdraddr(&ip);
 # endif /* ETHERNET_SUPPORT */

 }
Additional Information
Tags No tags attached.
Attached Files

- Relationships

-  Notes
(0000099)
stettberger (manager)
2010-06-14 16:15

Thank you for reporting. Fixed as you proposed.

- Issue History
Date Modified Username Field Change
2010-06-14 13:39 murdok New Issue
2010-06-14 16:15 stettberger Note Added: 0000099
2010-06-14 16:15 stettberger Assigned To => stettberger
2010-06-14 16:15 stettberger Status new => resolved
2010-06-14 16:15 stettberger Resolution open => fixed


Mantis 1.1.6[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker