[En-Nut-Discussion] Checksum problem Patch
NGB
ngbmoreau at yahoo.com.au
Sat Mar 15 01:55:01 CET 2003
Here is a patch for the UDP broadcast checksum probelm, this is against the latest copy. 3.0.1.3
240c240,244
--- route_old.c Sat Mar 15 11:46:00 2003
+++ route.c Sat Mar 15 11:46:16 2003
@@ -237,7 +237,11 @@
if (gate)
*gate = 0;
AtomicInc(&rteLock);
- rte = NutIpRouteRecQuery(ip, gate, 0);
+ // return the first interface if the IP is broardcast
+ if(ip == 0xFFFFFFFF) rte = rteList;
+ else {
+ rte = NutIpRouteRecQuery(ip, gate, 0);
+ }
AtomicDec(&rteLock);
return rte ? rte->rt_dev : 0;
Nic
-------------------------------------------------
More information about the En-Nut-Discussion
mailing list