diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-03-14 16:41:30 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-03-14 16:41:30 +0000 |
commit | 68d4b725a4fb4c7ad2aadb46dc306ba216f08784 (patch) | |
tree | 64a38d545a60722050309e4bc00ba72965922596 | |
parent | a7f5febb4eb941e91a29a8402a8e8fb9607c0a2b (diff) | |
download | pfsense-68d4b725a4fb4c7ad2aadb46dc306ba216f08784.zip pfsense-68d4b725a4fb4c7ad2aadb46dc306ba216f08784.tar.gz |
Show the interface friendly name and real interface name in interface column.
-rwxr-xr-x | usr/local/www/diag_logs_filter.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr/local/www/diag_logs_filter.php b/usr/local/www/diag_logs_filter.php index 00b22ca..0e1d026 100755 --- a/usr/local/www/diag_logs_filter.php +++ b/usr/local/www/diag_logs_filter.php @@ -105,7 +105,10 @@ function conv_clog($logfile, $tail) { $flent['act'] = ereg_replace(":", "", $flent['act']); $flent['dst'] = ereg_replace(":", "", $flent['dst']); - $flent['interface'] = ereg_replace(":", "", $flent['interface']); + $int = ereg_replace(":", "", $flent['interface']); + $int = ereg_replace(" ", "", $int); + $flent['interface'] = $int . " - " . convert_real_interface_to_friendly_interface_name($int); + if($second_split[11] == "udp" or $second_split[11] == "tcp" or $second_split[11] == "icmp" or $second_split[11] == "igmp") $flent['proto'] = $second_split[11]; |