Packets
From: Miguel (anonymous_at_discussions.microsoft.com)
Date: 05/17/04
- Next message: William DePalo [MVP VC++]: "Re: SetComputerNameEx"
- Previous message: Carl Daniel [VC++ MVP]: "Re: Function Templates with function Pointers ( ...)"
- Next in thread: Mark Weaver: "Re: Packets"
- Reply: Mark Weaver: "Re: Packets"
- Reply: Jerry Coffin: "Re: Packets"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 17 May 2004 11:11:05 -0700
Hello, I am building an sniffer that captures all packets that go thorugh a NIC. I have used the functions:
socket() with the option SOCK-RAW
and WSA_Ioctl ( )
Everything is OK, I am capturing packets that go to and from my PC. The problem is that I can not capture packets that go between other PCs that ARE ON MY SAME LAN, I am using a HUB to concentrate my PCs so packets must be reaching my NIC, the problem is that iI can not Capture them. I think this is because the WSA-Ioctl() bins the sockets to an specific IP address.
Could you please tell me how I can capture ALL PACKETS IN A LAN?
- Next message: William DePalo [MVP VC++]: "Re: SetComputerNameEx"
- Previous message: Carl Daniel [VC++ MVP]: "Re: Function Templates with function Pointers ( ...)"
- Next in thread: Mark Weaver: "Re: Packets"
- Reply: Mark Weaver: "Re: Packets"
- Reply: Jerry Coffin: "Re: Packets"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
Loading