Project

General

Profile

« Previous | Next » 

Revision 38e7c093

Added by Chris Buechler almost 10 years ago

Use the appropriate source and dest IPs for all state types. Ticket #4907

View differences:

usr/local/www/diag_dump_states.php
196 196
	/* break up info and extract $srcip and $dstip */
197 197
	$ends = preg_split("/\<?-\>?/", $info);
198 198
	$parts = explode(":", $ends[0]);
199
	$srcip = trim($parts[0]);
199
	if (strstr($info, "->")) {
200
	    $srcip = trim($parts[0]);    
201
	} else {
202
	    $dstip = trim($parts[0]);
203
	}
200 204
	$parts = explode(":", $ends[count($ends) - 1]);
201
	$dstip = trim($parts[0]);
205
	if (strstr($info, "->")) {
206
	    $dstip = trim($parts[0]);    
207
	} else {
208
	    $srcip = trim($parts[0]);
209
	}
202 210

  
203 211
?>
204 212
	<tr valign="top" id="r:<?= $srcip ?>:<?= $dstip ?>">

Also available in: Unified diff