In Net::PCap::FindDevice, I spawn netstat -r to find the device IP and the default gateway. Surprisingly, the regular expression only seems to differ between Windows and "Unix", or nobodyy uses that module or complained about it. Maybe the code in that module is helpful.