For Programmers: Free Programming Magazines  


Home > Archive > Unix Programming > April 2006 > Re: My simple tcp sniffer sniffs only incoming packts and not outgoing









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: My simple tcp sniffer sniffs only incoming packts and not outgoing
Nils O. Selåsdal

2006-04-15, 10:01 pm

Barry Margolin wrote:
> In article <1145114847.133884.43090@v46g2000cwv.googlegroups.com>,
> "The Dark Free Soul" <thedarkfreesoul@gmail.com> wrote:
>
>
> Because read() is used to read things that you receive, and you don't
> receive your own outgoing packets.
>
> If you want to write a sniffer, "man bpf".
>


Or use libpcap which has an easy user interface for packet capturing,
as well as beeing quite portable.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2010 codecomments.com