Bug 2269 - port numbers are not correctly interpreted (ntohs/l).
port numbers are not correctly interpreted (ntohs/l).
Status: PATCH WANTED
Product: ns-3
Classification: Unclassified
Component: openflow
ns-3-dev
All All
: P5 major
Assigned To: ns-bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2016-01-18 13:45 EST by Tommaso Pecorella
Modified: 2016-02-07 04:57 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tommaso Pecorella 2016-01-18 13:45:11 EST
The discussion originated here:
https://groups.google.com/forum/#!topic/ns-3-users/vYKw4p5arxI

however I suspect that the problem has its roots elsewhere. In openflow-interface.cc there are many places where htons is used inconsistently, commented and/or used on some variables but not on others.

There is the need for a global check of the ports variables (in, out, etc.) in order to avoid misrepresentations or representation changes in the middle of the code.
Comment 1 Ovidiu Poncea 2016-02-07 04:57:15 EST
May be related to https://www.nsnam.org/bugzilla/show_bug.cgi?id=2158