Hi all, Is there anyway to extract the Destination address from a UDP package. I've looked at 3 perl modules IO::Socket::Inet and Net::UDP and Net::Inet but can not make any head way with this task.
I am working on an Ubuntu box with perl version 5.8.8 installed. Unfortunately I'm not using BSD as the only information I could find on the web was here at this link: http://www.gsp.com/cgi-bin/man.cgi?section=4&topic=ip The important line being: If the IP_RECVDSTADDR option is enabled on a SOCK_DGRAM socket, the recvmsg(2) call will return the destination IP address for a UDP datagram. I have searched the perl modules mentioned above for IP_RECVDSTADDR in the hope that something similar can be done outside BSD systems. And I did find it under Net::Inet but am not sure how to enable it. Does anyone know how to get the destination address from a UDP datagram without resorting to the RAW packet format. As always any help is greatly appreciated. Thanks Tom -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/
