https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6645
--- Comment #8 from Guy Harris <guy@xxxxxxxxxxxx> 2012-09-24 19:57:20 PDT ---
Another way might be to dig it straight out of NDIS:
http://msdn.microsoft.com/en-us/library/windows/hardware/ff569584(v=vs.85).aspx
"Supported for NDIS 5.1 and later drivers in Windows Vista and later versions
of Windows and later versions of Windows. Supported for NDIS 5.1 drivers in
Windows XP."
so, the fact that the page is in the NDIS 6 part of the MSDN library, it
*might* work with NDIS 5.1 as well.
To make an NDIS OID request, use wpcap_packet_request(), as defined in
capture_wpcap_packet.c; the arguments are:
adapter handle, as returned by a call to wpcap_packet_open(), which is
passed a string giving the interface name (device name, i.e. the string with
the GUID in it) - it can return NULL on an interface that's not plugged in);
the OID_ code (OID_GEN_FRIENDLY_NAME, in this case);
a Boolean FALSE, meaning "get the OID value", or TRUE, meaning "set the OID
value" (FALSE, in this case);
a "char *" pointing to a buffer into which the value is to be fetched or
containing the value to be set;
an "unsigned int *" pointing to a variable that is:
on a get, initially set to the length of the buffer into which the fetch
is to be done, and set by wpcap_packet_request() to the actual length;
on a set, set to the length of the value to be set.
--
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.