[U-Boot] [patch 0/2] Some minor fixes in the networking layer

2 fixes for the networking layer * 1 fix for a bogus error message when DHCP is used * 1 compile error fix

The option CONFIG_BOOTP_RANDOM_DELAY does not compile, because of a missing extern inside the net/bootp.h header
Signed-off-by: Remy Bohmer linux@bohmer.net
--- net/bootp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Index: u-boot-git-22052008/net/bootp.h =================================================================== --- u-boot-git-22052008.orig/net/bootp.h 2008-05-22 22:30:29.000000000 +0200 +++ u-boot-git-22052008/net/bootp.h 2008-06-03 10:24:19.000000000 +0200 @@ -60,7 +60,7 @@ extern ulong BootpID; /* ID of cur BOOT extern char BootFile[128]; /* Boot file name */ extern int BootpTry; #ifdef CONFIG_BOOTP_RANDOM_DELAY -ulong seed1, seed2; /* seed for random BOOTP delay */ +extern ulong seed1, seed2; /* seed for random BOOTP delay */ #endif

The DHCP handler has 1 state that is not listed in this case, causing a failure message when there is actually no failure.
Signed-off-by: Remy Bohmer linux@bohmer.net --- net/bootp.c | 3 +++ 1 file changed, 3 insertions(+)
Index: u-boot-git-almost-1.3.4/net/bootp.c =================================================================== --- u-boot-git-almost-1.3.4.orig/net/bootp.c 2008-07-21 11:53:23.000000000 +0200 +++ u-boot-git-almost-1.3.4/net/bootp.c 2008-08-04 14:54:21.000000000 +0200 @@ -969,6 +969,9 @@ DhcpHandler(uchar * pkt, unsigned dest, return; } break; + case BOUND: + /* DHCP client bound to address */ + break; default: puts ("DHCP: INVALID STATE\n"); break;
participants (2)
-
Ben Warren
-
Remy Bohmer