Patch from Eric Norum <eric@…> to improve parsing of network interface names. This change does not introduce any compatibility problems.