Bug 2269 - port numbers are not correctly interpreted (ntohs/l).
port numbers are not correctly interpreted (ntohs/l).
Product: ns-3
Classification: Unclassified
Component: openflow
All All
: P5 major
Assigned To: ns-bugs
Depends on:
  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:


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:

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