Hi All,
Does anybody know how to get whether a particular Adapter is
working in bridged mode or not by querying NDIS?
Jus like we can check for connected/disconnected state of the
adapter through IOCTL(OIDs). trough NDIS.sys.
–
I believe in Karma. That means I can do bad things to people all day long
and I assume they deserve it.
Anand C. Iyer
Gsec1 Limited
Chennai, India | Manchester, UK
Mobile:0-9840250767
Fax: 91 44 5202 2606
www.gsec1.com
Anand,
Do you mean promiscuous mode? OID_GEN_CURRENT_PACKET_FILTER is managed by
NDIS on a per-binding basis so querying through a binding will only get what
the binding asked for in response. Using IOCTL_NDIS_QUERY_GLOBAL_STATS on
the device object created by NDIS to represent the miniport instance would
allow you to query for OID_GEN_CURRENT_PACKET_FILTER directly from the
Miniport (and thus see the ‘combined’ version from all MOPENs on NIC).
You can get a much better idea of how this can work by looking at Thomas’
FAQ. Indeed, get his OIDSCOPE utility and see if it demonstrates what you
need!
http://www.ndis.com/faq/QA10290101.htm#IOCTL_NDIS_QUERY_GLOBAL_STATISTICS
If you really are asking if the NIC has been bound to to the Windows XP
bridge, then, you would need to query the bindings and note that the XP
bridge is just one possible bridge prototol driver and also note that being
in promiscuous mode does not mean the NIC is ‘bridging’.
Good Luck,
Dave Cattley
Consulting Engineer
Systems Software Development
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Anand Iyer
Sent: Friday, December 08, 2006 5:15 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Adapters Bridged Mode
Hi All,
Does anybody know how to get whether a particular Adapter is
working in bridged mode or not by querying NDIS?
Jus like we can check for connected/disconnected state of the
adapter through IOCTL(OIDs). trough NDIS.sys.
–
I believe in Karma. That means I can do bad things to people all day long
and I assume they deserve it.
Anand C. Iyer
Gsec1 Limited
Chennai, India | Manchester, UK
Mobile:0-9840250767
Fax: 91 44 5202 2606
www.gsec1.com — Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256 To unsubscribe, visit the List
Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer