diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-12-16 18:11:18 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-12-16 18:11:18 +0000 |
commit | c8d3249ec765e54c505087d0db5b8f18c40f43c7 (patch) | |
tree | 32c08a1fd08d8b08962558e9e92b6dedb0e7fd71 /usr | |
parent | dd69a151ec1e5609b6f585e74c5a3f37a71e0e9d (diff) | |
download | pfsense-c8d3249ec765e54c505087d0db5b8f18c40f43c7.zip pfsense-c8d3249ec765e54c505087d0db5b8f18c40f43c7.tar.gz |
handle all protocols
Ticket #734
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/diag_logs_filter.php | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/usr/local/www/diag_logs_filter.php b/usr/local/www/diag_logs_filter.php index 0952457..ee54888 100755 --- a/usr/local/www/diag_logs_filter.php +++ b/usr/local/www/diag_logs_filter.php @@ -76,8 +76,22 @@ function conv_clog($logfile, $tail = 50) { $flent['proto'] = "TCP"; if(stristr($logent, "UDP") == true) $flent['proto'] = "UDP"; - if(stristr($logent, "ICMP") == true) + else if(stristr($logent, "ICMP") == true) $flent['proto'] = "ICMP"; + else if(stristr($logent, "HSRP") == true) + $flent['proto'] = "HSRP"; + else if(stristr($logent, "ESP") == true) + $flent['proto'] = "ESP"; + else if(stristr($logent, "AH") == true) + $flent['proto'] = "AH"; + else if(stristr($logent, "GRE") == true) + $flent['proto'] = "GRE"; + else if(stristr($logent, "IGMP") == true) + $flent['proto'] = "IGMP"; + else if(stristr($logent, "CARP") == true) + $flent['proto'] = "CARP"; + else if(stristr($logent, "PFSYNC") == true) + $flent['proto'] = "PFSYNC"; $flent['time'] = $log_split[1]; $flent['act'] = $log_split[3]; |