Solved

Ethernet promiscuous mode in VC/MFC

Posted on 1998-08-14
1
384 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
string initialization in java 11 113
fizzArray2 challenge 1 79
Not needed 13 112
Remove Password Protection from pdf (with password) using an command line executable 5 50
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

770 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