This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
RedBoot FIS and BOOTP Patches
- From: Jay Foster <jay at systech dot com>
- To: "'ecos-patches at sources dot redhat dot com'" <ecos-patches at sources dot redhat dot com>
- Date: Tue, 22 Oct 2002 16:44:44 -0700
- Subject: RedBoot FIS and BOOTP Patches
Enclosed are two proposed patches for RedBoot. The first one is a
copy/paste error for the display of the fis delete command. The second one
fixes a bug in bootp that was sending out short bootp request packets, which
would be ignored by the bootp server.
Index: flash.c
===================================================================
RCS file: /cvs/ecos/ecos/packages/redboot/current/src/flash.c,v
retrieving revision 1.41
diff -u -5 -p -r1.41 flash.c
--- flash.c 27 Aug 2002 11:06:48 -0000 1.41
+++ flash.c 22 Oct 2002 23:49:23 -0000
@@ -105,11 +105,11 @@ local_cmd_entry("free",
"",
fis_free,
FIS_cmds
);
local_cmd_entry("delete",
- "Display an image from FLASH Image System [FIS]",
+ "Delete an image from FLASH Image System [FIS]",
"name",
fis_delete,
FIS_cmds
);
Index: net/bootp.c
===================================================================
RCS file: /cvs/ecos/ecos/packages/redboot/current/src/net/bootp.c,v
retrieving revision 1.8
diff -u -5 -p -r1.8 bootp.c
--- net/bootp.c 9 Jul 2002 20:23:48 -0000 1.8
+++ net/bootp.c 22 Oct 2002 23:49:23 -0000
@@ -170,10 +170,12 @@ __bootp_find_local_ip(bootp_header_t *in
AddOption(p,dhcpCookie);
AddOption(p,dhcpRequestOption);
AddOption(p,dhcpEndOption);
+ // The vendor specific section must be at least 64 bytes.
+ if (p < &b.bp_vend[64]) p = &b.bp_vend[64];
txSize = p - (unsigned char*)&b;
#else
txSize = sizeof(b);
#endif
Jay Foster