[Bug 2735] Wrong address family handling for tun devices

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Fri Jul 28 05:13:14 AEST 2017


https://bugzilla.mindrot.org/show_bug.cgi?id=2735

--- Comment #7 from stepe at centaurus.uberspace.de ---
Created attachment 3019
  --> https://bugzilla.mindrot.org/attachment.cgi?id=3019&action=edit
Modified re-re-revised diff to not use htonl()/ntohl() anymore

>From what I understand, data in the ssh buffer should live there in
network byte order (big endian) and the preferred/canonical way to
ensure this is with the PEEK_*()/POKE_*() macros.
However, the original code used ntohl()/htonl() for this purpose
instead.
Doing both messes up the byte order again, so I tried your diff again
without ntohl()/htonl() (see attachment) and it worked fine.

-- 
You are receiving this mail because:
You are watching someone on the CC list of the bug.
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list