HomeFreeBSD

Fix /sbin/route to never look up (invalid) interface names through DNS

Description

Fix /sbin/route to never look up (invalid) interface names through DNS

/sbin/route has a bug where if it is passed an interface name that does
not exist, it falls through and winds up interpreting it as a hostname.
It fails out eventually, but on a system where DNS lookup is broken you
can end up waiting for up to 60 seconds waiting for the DNS lookup to
timeout. I'm not quite sure what happens if the DNS lookup somehow
succeeds but I doubt that can end well.

Reviewed by: markj, cem
MFC after: 2 weeks
Sponsored by: EMC/Isilon Storage Division

Details

Provenance
rstoneAuthored on
Reviewer
markj
Parents
rS287919: Fix makeman creating obj directories due to turning on WITH_AUTO_OBJ.
Branches
Unknown
Tags
Unknown