Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

net filter

Status
Not open for further replies.

assauei

Programmer
Jun 23, 2005
5
0
0
IT
Hi all,

i am trying to write a c++ net-filter for windows...
on linux i could use libipq and netfilter this way:

"Netfilter provides a mechanism for passing packets
out of the stack for queueing to userspace,
then receiving these packets back into the kernel
with a verdict specifying what to do with the
packets (such as ACCEPT or DROP).
These packets may also be modified in userspace
prior to reinjection back into the kernel."

i am looking for a way to do that on windows: get the packets out of the stack, modify it, an then put it back into the kernel...
which API could i use ? Any help would be appreciated.

Thank you.
 
Could look at WPE for clues. Note that some companies stop you getting to the site that hosts WPE. Also, WPE doesn't work if Norton is switched on.

WPE has 2 modes: one for Winsock and the other for winsock2. It lists the calls you are interested in and you can go from there.

It is basically a packet editor/filter.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top