Re: sending MAC packets --- again, and again
From: Jon Simola (jsimola_at_gmail.com)
Date: 05/21/05
- Previous message: Darren Pilgrim: "RE: iwi(4) not working"
- In reply to: Daniel Valencia: "Re: sending MAC packets --- again, and again"
- Next in thread: Daniel Valencia: "Re: sending MAC packets --- again, and again"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 20 May 2005 21:15:47 -0700 To: Daniel Valencia <fetrovsky@yahoo.com>
On 5/20/05, Daniel Valencia <fetrovsky@yahoo.com> wrote:
> my sniffer just stalls and eventually will report a totally unrelated message.
...
> handle = pcap_open_live( "xl0", BUFSIZ, 1, 0, errbuf );
Uh, you're asking it to wait forever to see a packet. I don't see a
#define in there for BUFSIZ, so you might be asking it to catch zero
bytes. And what is the "totally unrelsated message"?
I'd try using pcap_loop() or friends so you can catch and examine more
than a single packet.
And don't forget to call pcap_close() at the end, I'm not sure how
polite pcap is about leaving dangling bpf devices.
-- Jon Simola Systems Administrator ABC Communications _______________________________________________ freebsd-net@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"
- Previous message: Darren Pilgrim: "RE: iwi(4) not working"
- In reply to: Daniel Valencia: "Re: sending MAC packets --- again, and again"
- Next in thread: Daniel Valencia: "Re: sending MAC packets --- again, and again"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]