Solved

Ethernet promiscuous mode in VC/MFC

Posted on 1998-08-14
1
392 Views
Last Modified: 2013-11-20
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 ?

Thanks.
0
Comment
Question by:b1s1
1 Comment
 
LVL 4

Accepted Solution

by:
agreen earned 200 total points
ID: 1320789
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.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question