#!/usr/local/bin/php -f $friendly) { /* point to this interface's config */ $ifconf = $config['interfaces'][$ifname]; /* look for 'special cases' */ switch($ifconf['ipaddr']) { case "carpdev-dhcp": $class = "(CarpDEV)"; break; case "dhcp": $class = "(DHCP)"; break; case "pppoe": $class = "(PPPoE)"; break; case "pptp": $class = "(PPTP)"; break; default: $class = ""; break; } $ipaddr = get_interface_ip($ifname); $realif = get_real_interface($ifname); $tobanner = "{$friendly} ({$ifname})"; printf("\n %-25s -> %-10s -> %s %s", $tobanner, $realif, $ipaddr ? $ipaddr : "NONE", $class ); } ?>