Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#11 ost::enumNetworkDevices throws exception and dumps core

Common_Libraries
closed
nobody
None
5
2012-11-18
2005-10-18
Scott Bailey
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

  • Scott Bailey
    Scott Bailey
    2005-10-18

    commoncpp2-1.3.20-network.patch

     
  • 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