Re: Using IP-Router Alert Option

kuznet@ms2.inr.ac.ru
Fri, 4 Jun 1999 17:41:18 +0400 (MSK DST)


Hello!

> I am trying to use the IP-router alert option to capture UDP packets that

It is difficult to capture UDP packets.

You will have to create socket(SOCK_RAW, IPPROTO_UDP), to call
setsockopt(SOL_IP,IP_ROUTER_ALERT,1) and to add socket filter
to filter out UDP frames with not desired ports.

Alexey
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.rutgers.edu