Subject: | test 5 broken for multiple IFF_LOOPBACK interfaces |
On Linux 2.6:
Specifically in our case, aliases on loopback:
lo:4 Link encap:Local Loopback
inet addr:128.101.0.3 Mask:255.255.255.255
UP LOOPBACK RUNNING MTU:16436 Metric:1
Simplistic patch which perhaps undesirably merges tests 4 and 5:
- $loopback = $_ if $s->if_flags($_) & IFF_LOOPBACK;
+ $loopback = $_ if $s->if_flags($_) & IFF_LOOPBACK &&
$s->if_addr($_) eq '127.0.0.1';