SourceForge has been redesigned. Learn more.
Close

#11 ost::enumNetworkDevices throws exception and dumps core

Common_Libraries
closed
nobody
None
5
2012-11-18
2005-10-18
No

version: commoncpp2-1.3.20
file: network.h
functon: ost::enumNetworkDevices
platform: solaris 10 x86

After compiling demo file netdevices.cpp:

g++ -ldl -lccgnu2 -lpthread -lccext2 -lz -lxml2
-lsocket -lnsl netdevices.cpp -o n

executing the executable results in the following:

terminate called after throwing an instance of
'ost::IPV4Address*'
Abort (core dumped)

Working solution (see patch):
For whatever reason, simply sending 0 instead of 255
for the mask (as is done for win32) works.

Discussion

  • David Sugar

    David Sugar - 2012-11-18

    I believe this feature is not part of the current library...

     
  • David Sugar

    David Sugar - 2012-11-18
    • status: open --> closed
     

Log in to post a comment.