Our team is developing a Internet Media device based on Linux 2.6. Currently we detect whether Internet connectivity is established (via a wired Ethernet i/f) by pinging www.google.com
Some networks we have tested the device on do not support ICMP packet forwarding so our application code mistakenly reports the Internet as unavailable in this case.
Does anyone know of a more refined approach to deducing whether Internet connectivity is available through /dev/eth0 without resorting to pinging a well-known service?