Bug 2269

Summary: port numbers are not correctly interpreted (ntohs/l).
Product: ns-3 Reporter: Tommaso Pecorella <tommaso.pecorella>
Component: openflowAssignee: ns-bugs <ns-bugs>
Status: PATCH WANTED ---    
Severity: major CC: ovidiu.poncea, tomh
Priority: P5    
Version: ns-3-dev   
Hardware: All   
OS: All   

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