Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Jun 1999 16:47:23 +0200
From:      Alexander Podoplelov <Alexander.Podoplelov@sth.frontec.se>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Looking for some net sniffer C sources
Message-ID:  <376CFEFB.9C487896@sth.frontec.se>
References:  <376C9813.BF6B778D@prodigy.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Hello.

I have a task which implies to read raw data from the network interface.
I would be more than happy to have a "necessary and sufficient" piece of
C code for proper opening of the network interface (bpf, ioctl?),
reading packets from there (I guess read() is enough :), and having
structure of the packet (detecting that it belongs to IP ones; which
*.h files are to be included). A working example for monitoring IP packets
is wanted mostly.

Also, if you know good sources to read about that (books, url), please,
share that info with me. Any help is Ok.

Thank you in advance, Alexander.




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?376CFEFB.9C487896>