the open method won't recognize device on XP
Brought to you by:
pcharles
The following device information was returned on an XP
machine:
\Device\NPF_{D3860E53-A16D-421C-B371-335
75CC23708}
Broadcom NetXtreme Gigabit Ethernet Driver
findDevice returns the full string (including the '\n' and
two spaces followed by the friendly name). Calling the
open method with the full string causes an exception.
net.sourceforge.jpcap.capture.CaptureDeviceOpenExcept
ion: Error opening adapter:
The system cannot find the file specified.
If only the string prior to the '\n' is sent, then no error
occurs.
Logged In: YES
user_id=1151430
The problem seems to be:
the file jpcap.c in src\java\net\sourceforge\jpcap\capture
has been changed, so that findDevice() now returns human-
readable descriptions placed after the device names, using
a '\n' and a space as a separator (lines 217 to 230).
Two possibles solutions:
1) undo the change and get device descriptions using a
diferent method; or
2) drop everything after a '\n' in open() method.
I chose to use version 0.01.15 until solution is provided.
Logged In: YES
user_id=1036033
Sorry, the changes to lookupDevices() and findDevice()
should not have been incorported into 0.01.16. Use the
0.01.15 versions. The next release will incorporate a way to
return windows device descriptions without the clumsy "\n "
in the same string as the device name. That was just a hack
I used to make sure descriptions were being returned
correctly, and was accidentally committed into CVS.
Logged In: YES
user_id=1262793
Originator: NO
This issue has been addressed in the forthcoming 2.0 release.
It would be more helpful if the device name strings used were actually the device name strings, eg: "Local Area Connection".