Robert Klemme
5/15/2007 10:59:00 AM
On 15.05.2007 12:21, ninny wrote:
> I have a project to do in ruby witch consist in recover the ARP requests
> (who-has) on my local network and take the IP address if nobody answer
> to the ARP requests.
> I know identify an ARP request with "pcap" but I don't know how to take
> the IP address.
I am not sure where your problems are but if you want to detect an IP
address you can take this regexp for a start:
/\d{1,3}(?:\.\d{1,3}){3}/
Note that it does not match IPv6 addresses which might or might not be
an issue. Note also, that it might match strings that are not IP addresses.
Kind regards
robert