Solved

Ethernet promiscuous mode in VC/MFC

Posted on 1998-08-14
1
396 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How do you programatically show and hide the Windows 10 On-Screen-Keyboard? 3 925
Tab names are off by one 5 54
sameEnds challenge 3 187
sum28 challenge 31 117
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

733 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