Of course you can use socket packet as someone pointed out.
The other way is to use libpcap -- if you want portability.
I have patches against libpcap for this but have only tested on Linux and
someone else has verified that they work on FreeBSD.
take a look at:
http://www.cyberus.ca/~hadi/pcap.html
Unfortunately, my attempts to send the patches to libpcap owners were
not successful.
cheers,
jamal
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]