I would like to write a network driver for WINDOWS, above TCP.
In this driver I would like to modify or to check "on the fly" the incoming HTTP traffic.
How can I implement a such module ?
Which development environment ? Which SDK ?
Do you know about an open source project which do that ?
Do you think libpcap can do that ?
Thank you for your help.
Sorry I found ... see "Windows Filtering Platform" documentation.
Related
I am playing around with an application to do some remote connection and I am struggling with understanding the tun/tap. I have installed OpenVPN tuntap driver and can connect/configure it through my application but I need some clarification.
If I use it in TAP mode I need to bridge my network adapters correct??
How would a TUN interface be setup?? I know that I need to call DeviceIoControl with TAP_IOCTL_CONFIG_TUN and I think I understand how but my research leads me to think I also need to add into the windows routing tables??
Can someone layout what a typical TUN Layer3 VPN would look like
Thanks
Matt
I am working to create a wifi connectivity for a windows ce 7 device using connection manager. I am new to wince. Can anyone suggest how to establish a connection with a network. I actually wanted to have a list of available networks and to select a network from that. Please help me out in this situation. Awaiting your valuable responses. Thank you.
You mean listing all the available wi-fi networks and then connecting to one of them?
Do you need to have a UI for this (to enter the wlan password etc.) or you'll provide your own UI and just need low-level function to activate the connection?
Wireshark like tools can capture in coming or out going messages to our machine, is there any tool available which trace packets communication between our own machine. Like if I have client and server on same machine but port is different is it possible to trace packets?
Thanks in advance.
Windows TCP/IP stack does not implement a network loopback lo interface. See this page, for information.
You can instead use RawCap for your purpose, look it up here. You can use the command RawCap.exe 127.0.0.1 dumpfile.pcap
Select interface "lo" in wireshark , for getting the packets in the same pc.
Thanks,
Justin Jose
So I have a bluetooth device, this device uses SPP to transfer data between the PC and itself. It connects fine through Windows as a bluetooth device. I can find it, enter the paring code and assign it to a COM port. Now I want to be able to send data through the com port using Windows API but it is refusing to do so.
I suspect that I need to setup the COMMCONFIG Structure correctly (see below)
http://msdn.microsoft.com/en-us/library/aa363188(VS.85).aspx
Unfortunately I have no idea what is the proper setting. I know SPP is supposed to emulate the RS-232 communication... so maybe I have to study up on that to figure out the right setting? Or is there some automatic way to set the COMMCONFIG structure.
I seriously doubt it. If it would be used then you'll have no chance at guessing at the custom provider data without docs from the driver author. Pay attention to the handshake signals, serial port devices routinely ignore anything sent to them when the DTR signal is turned off. And not send anything back with DTR off. A driver would emulate that. Use EscapeCommFunction() to turn them on. Also try a serial comm program like HyperTerminal or Putty to test this so you can isolate the source of the problem.
Why not use the Bluetooth sockets API? No need for troublesome (virtual) COM ports then.
If you're using managed code then see my library 32feet.NET
If using native code, use SOCKADDR_BTH with Winsock connect etc, see e.g. Bluetooth and connect (Windows) Then you can use the standard Winsock send/recv API
Ok, I found that you can use the
GetCommConfig and GetCommState functions to figure out the settings.
Ive been all over looking for a way to disable the network adapter through M$ IP Helper routines.
For the majority of the code I've been using this api:
http://msdn.microsoft.com/en-us/library/aa366071(v=VS.85).aspx
However, I do not see a way to actually disable the adapters .. If deleting the IP address associated with the adapter disables the adapter I will accept that, but wasn't sure.
Any help is highly appreciated
Thanks
I don't know if there is a simple API to disable it. I think you might have to go through the device manager API. SetupDiSetDeviceRegistryProperty + SPDRP_CONFIGFLAGS + CONFIGFLAG_DISABLED looks promising.
There are also some suggestions here.