Little patch to enhance network detection on FreeBSD

A little patch to enhance network detection on FreeBSD where iproute2 is not available.