receiving all udp packets destined for a certain host

From: David Chen (chen@cooper.edu)
Date: Tue Jan 18 2000 - 22:48:20 EST


Hi,

I am working on an application that needs to receive all UDP packets (regardless of
port.) How do I do this? Is it by using:

socket(AF_INET, SOCK_RAW, IPPROTO_UDP)

Do I need to bind() before I recv() ?

Very confused and unsure,

David

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



This archive was generated by hypermail 2b29 : Sun Jan 23 2000 - 21:00:33 EST