Solved

Ethernet promiscuous mode in VC/MFC

Posted on 1998-08-14
1
360 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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
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.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

762 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now