This is the mail archive of the ecos-patches@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Bug 1001170] Correct Endianness of DHCP "Seconds Elapsed" field


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

On 3/9/2011 10:26 AM, bugzilla-daemon@bugs.ecos.sourceware.org wrote:
Please do not reply to this email. Use the web interface provided at:
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001170

--- Comment #1 from Sergei Gavrikov<sergei.gavrikov@gmail.com>  2011-03-09 18:26:22 GMT ---
Created an attachment (id=1167)
  -->  (http://bugs.ecos.sourceware.org/attachment.cgi?id=1167)
Fixed byte order for bp_secs

diffstat /tmp/dhcp_prot.diff
  ChangeLog       |    5 +++++
  src/dhcp_prot.c |    2 +-
  2 files changed, 6 insertions(+), 1 deletion(-)

Grep shows 1 actual place. Hope that's it.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]