This is the mail archive of the ecos-bugs@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]

[Issue 1001170] Correct Endianness of DHCP "Seconds Elapsed" field


Please do not reply to this email. Use the web interface provided at:
https://bugzilla.ecoscentric.com/show_bug.cgi?id=1001170

--- Comment #2 from Jay Foster <jay@systech.com> 2011-03-09 23:59:47 GMT ---
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)
 --> (https://bugzilla.ecoscentric.com/attachment.cgi?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.
>

-- 
Configure issuemail: https://bugzilla.ecoscentric.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the issue.


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