[U-Boot-Users] [PATCH] receiving subnet broadcasts

Dubb, Benjamin Benjamin.Dubb at ipc.com
Thu Jun 8 05:26:21 CEST 2006

I noticed that u-boot net.c code drops subnet broadcasts. So I made a small change to get it to accept them.

 - Ben Dubb

--- net.c~      2006-06-08 03:03:22.000000000 +0000
+++ net.c       2006-06-08 03:01:39.000000000 +0000
@@ -1385,7 +1385,8 @@
                tmp = NetReadIP(&ip->ip_dst);
-               if (NetOurIP && tmp != NetOurIP && tmp != 0xFFFFFFFF) {
+               if (NetOurIP && tmp != NetOurIP && tmp != 0xFFFFFFFF &&
+                       (~NetOurSubnetMask & (tmp ^ 0xFFFFFFFF))) {

Important Notice *************************************************
This e-mail may contain information that is confidential, privileged or otherwise protected from disclosure. If you are not an intended recipient of this e-mail, do not duplicate or redistribute it by any means. Please delete it and any attachments and notify the sender that you have received it in error. Unintended recipients are prohibited from taking action on the basis of information in this e-mail.E-mail messages may contain computer viruses or other defects, may not be accurately replicated on other systems, or may be intercepted, deleted or interfered with without the knowledge of the sender or the intended recipient. If you are not comfortable with the risks associated with e-mail messages, you may decide not to use e-mail to communicate with IPC. IPC reserves the right, to the extent and under circumstances permitted by applicable law, to retain, monitor and intercept e-mail messages to and from its systems.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20060607/d1b10c02/attachment.htm 

More information about the U-Boot mailing list