• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 411
  • Last Modified:

Ethernet promiscuous mode in VC/MFC

I need to write a little network analyzer in VC++/MFC, so I need to put
ethernet card in promiscuous mode, in linux it's simple: I use ioctl()
with IFF_PROMISC flag, but I don't know how to do that under VC++/NT4,
I'm using MFC CSocket and CAsyncSocket, but I've no problem to use
socket API.
Anyone can help me ?

1 Solution
You need to write a NDIS service driver that opens the ethernet card in promiscous mode. For the sample driver take a look at the DDK's "PACKET" sample.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now