On Thu, 15 Apr 1999, Chetan Sakhardande wrote:
@>
@>
@>HI!
@>
@> How dos a process register with the kernel to read received ICMP messages
@>?
@>
@>
@>
@>P{lease cc to me as I am not subscribed here
@>
@>
You can create a socket like so:
s = socket(AF_INET, SOCK_RAW, IPPROTO_ICMP); /* receive only icmp */
Reading from it should get you all icmp packets from all devices. (As the
super user). You could probably also use libpcap.
Paul
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]