[Winpcap-bugs] [patch] use friendlier adapter descriptions

Amnon Aaronsohn amnonaar at gmail.com
Thu Aug 20 00:12:24 PDT 2009


Hi,

WinPcap currently returns the adapter's driver description as its
human-readable name.
However, Windows users are used to identify adapters by the names seen in
the "Network Connections" window.

For example, WinPcap describes my wireless network adapter as "Intel(R)
PRO/Wireless 3945BG Network Connection (Microsoft's Packet Scheduler)", but
Windows simply calls  this adapter "Wireless Network Connection".

Apart for being more recognizable to users, this simple name has the
advantage that it's unique. When several adapters of the same type are
installed in a machine they all have the same adapter description, but have
different names in the Network Connections window.

The attached patch (for version 4.1 beta5) makes WinPcap read this interface
name from the registry and return it as the description.
If this fails it falls back on the previous method of querying the network
adapter for the description.

Tested on Windows XP.

Thanks
Amnon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winpcap.org/pipermail/winpcap-bugs/attachments/20090820/fefe757b/attachment.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: AdInfo.c.diff
Type: application/octet-stream
Size: 5643 bytes
Desc: not available
Url : http://www.winpcap.org/pipermail/winpcap-bugs/attachments/20090820/fefe757b/attachment.obj 


More information about the Winpcap-bugs mailing list