Packets

From: Miguel (anonymous_at_discussions.microsoft.com)
Date: 05/17/04


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?



Relevant Pages

  • RE: [inbox] RE: Bogus DNS traffic
    ... The handful of packets I captured all had ID "102" and ... Dave Gillett ... > Do you have any full packet captures? ... most highly-anticipated industry event of the year. ...
    (Incidents)
  • Re: Packet Capture
    ... I am building an sniffer that captures all packets that go thorugh a NIC. ... > socket() con la opcion SOCK-RAW ...
    (microsoft.public.vc.language)
  • Re: tcpslice: cannot accept captures with zero or one packet
    ... tcpslice fails on packet captures with zero or one packet in them. ... Given an arbitrary set of captures, it is entirely possible that some ... of them don't have packets or have small numbers of packets. ... By the way, Gutsy is Ubuntu 7.10. ...
    (Ubuntu)
  • tcpslice: cannot accept captures with zero or one packet
    ... tcpslice fails on packet captures with zero or one packet in them. ... don't have packets or have small numbers of packets. ... Versions of packages tcpslice depends on: ...
    (Ubuntu)
  • Re: Problem with writing fast UDP server
    ... UDP packets per second. ... socket and threads. ... I wrote a simple case test: client and server. ... The maximum theoretical limit is 14,880 frames per ...
    (comp.lang.python)

Loading