Date: Sun, 04 Feb 2007 20:16:13 +0100 From: nocturnal <nocturnal@swehack.se> To: freebsd-questions@freebsd.org Subject: packet destination from pcap Message-ID: <45C630FD.3080801@swehack.se>
next in thread | raw e-mail | index | archive | help
Hi I'm sniffing packets with pcap but i need information about where the packet is going. So far i haven't found any structure or any other way to get this information from looking at the pcap(3) manual and the pcap.h header file. I have not had a chance to go through the source for pcap yet because i have been offline for a while with no source on my laptop. I'm thinking i need to open two pcap sessions with two different filters because the application i'm writing has a need for distinguishing between packets going to a specified ip-address and those going from it. I doubt it should have to come to that though so that's why i ask here first. I could not reach the tcpdump list so i thought i'd ask here since it uses the bpf. Might be a long shot. -- Med vänliga hälsningar Stefan Midjich aka nocturnal [Swehack] http://swehack.se
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?45C630FD.3080801>