This is the mail archive of the
ecos-patches@sourceware.org
mailing list for the eCos project.
[Bug 1001170] Correct Endianness of DHCP "Seconds Elapsed" field
- From: bugzilla-daemon at bugs dot ecos dot sourceware dot org
- To: ecos-patches at ecos dot sourceware dot org
- Date: Thu, 10 Mar 2011 05:38:28 +0000
- Subject: [Bug 1001170] Correct Endianness of DHCP "Seconds Elapsed" field
- Auto-submitted: auto-generated
- References: <bug-1001170-104@http.bugs.ecos.sourceware.org/>
Please do not reply to this email. Use the web interface provided at:
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001170
--- Comment #3 from Sergei Gavrikov <sergei.gavrikov@gmail.com> 2011-03-10 05:38:22 GMT ---
(In reply to comment #2)
> It also appears in bootp_support.c: show_bootp().
>
> Depending on the implementation of htons(), cyg_current_time() may end
> up getting called twice. Might be better to put the result of
> cyg_current_time() / 100 in a temporary variable and perform htons()
> on that.
>
> Jay
Agreed. Thank you for your point. I will re-submit new patch. Or may be
Kelvin has own one?
Sergei
--
Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.