Bug in dpss reported IP addresses?

Document created by cdnadmin on Jan 25, 2014
Version 1Show Document
  • View in full screen mode
This document was generated from CDN thread

Created by: Viktor S. Wold Eide on 27-02-2013 05:57:11 AM
Hi,

There seems to be something wrong with the IP addresses printed out in the DatapathPolicyTutorial. Both the source and the destination addresses seem to always be the same?

Subject: RE: Bug in dpss reported IP addresses?
Replied by: Zach Seils on 27-02-2013 08:35:22 AM
Hi Viktor,
This is a bug in the sample app code.  Please use the attached src file instead.
Regards,
Zach  

Subject: RE: Bug in dpss reported IP addresses?
Replied by: Joseph Clarke on 27-02-2013 08:45:18 AM
Darn it, Zach beat me to it.  So few questions, we end up climbing over each other :-).  The problem here is that inet_ntoa was being used reentrantly, which is not possible.  You need to allocate space for the result before calling inet_ntoa again or you end up overwriting the buffer.

Subject: RE: Bug in dpss reported IP addresses?
Replied by: Viktor S. Wold Eide on 27-02-2013 09:37:00 AM
Thanks a lot, both of you.

Are you considering making updates/fixes available via some version control system? In case, git would be fine :-)

Subject: RE: Bug in dpss reported IP addresses?
Replied by: Joseph Clarke on 28-02-2013 03:26:49 PM
There has been some discussion about this.  Perhaps using github.  I will see if one of our TMEs can shed some light on this.

Subject: RE: Bug in dpss reported IP addresses?
Replied by: Jason Pfeifer on 28-02-2013 04:30:05 PM
Hello,
 
We are considering multiple version control systems.  At this point though I believe we are planning doing releases of updates and fixes directly through the Cisco Developer Network itself.  This process/mechanism will be solidified as we move forward.
Thanks.

Attachments

    Outcomes