Re: [tcpdump-workers] to recognize incoming and outgoing packets

2006-11-23 Thread Hannes Gredler
Juan Pedro Muñoz Gea wrote: > Hi all, > > I'm using pcap library to capture live packets. > I want to distinguish incoming and outgoing captured packets > in an interface in promiscuous mode, without examining the payload, but I > don't know the way to do it. > > Using the PF_PACKET sockets fam

[tcpdump-workers] to recognize incoming and outgoing packets with pcap library

2006-11-23 Thread Juan Pedro Muñoz Gea
Hi all, I'm using pcap library to capture live packets. I want to distinguish incoming and outgoing captured packets in an interface in promiscuous mode, without examining the payload, but I don't know the way to do it. Using the PF_PACKET sockets family, if we use the "recvfrom" function and a "