projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove arch/${ARCH}/include/asm/errno.h
[oweals/u-boot.git]
/
net
/
bootp.c
diff --git
a/net/bootp.c
b/net/bootp.c
index aa6cdf0a47a5c17a36a711c62e72043890ce2465..42e14eda417436b0b6ef133055185e2ecb895029 100644
(file)
--- a/
net/bootp.c
+++ b/
net/bootp.c
@@
-673,6
+673,15
@@
static int bootp_extended(u8 *e)
*e++ = 255; /* End of the list */
*e++ = 255; /* End of the list */
+ /*
+ * If nothing in list, remove it altogether. Some DHCP servers get
+ * upset by this minor faux pas and do not respond at all.
+ */
+ if (e == start + 3) {
+ printf("*** Warning: no DHCP options requested\n");
+ e -= 3;
+ }
+
return e - start;
}
#endif
return e - start;
}
#endif