Project

General

Profile

« Previous | Next » 

Revision 1121b4a7

Added by Jim Pingle about 9 years ago

Clean up the text on diag_sockets.php. Fixes #6708

View differences:

src/usr/local/www/diag_sockets.php
104 104
<div>
105 105
<div class="infoblock">
106 106
<?php
107
print_info_box(gettext('Socket information - explanation.') . '<br /><br />' .
108
gettext('This page shows the output for the commands: "sockstat -4lL" and "sockstat -6lL".' . '<br />' .
109
		'Or in case of showing all sockets the output for: "sockstat -4" and "sockstat -6".' . '<br />' . '<br />' .
110
'The information listed for each socket is:' . '<br /><br />' .
111
' <dl class="dl-horizontal responsive">' .
112
				'<dt>USER</dt>			<dd>The user who owns the socket.</dd>' .
113
				'<dt>COMMAND</dt>		<dd>The command which holds the socket.</dd>' .
114
				'<dt>PID</dt>			<dd>The process ID of the command which holds the socket.</dd>' .
115
				'<dt>FD</dt>				<dd>The file descriptor number of the socket.</dd>' .
116
				'<dt>PROTO</dt>			<dd>The transport protocol associated with the socket for Internet sockets, or the type of socket (stream or data-gram) for UNIX sockets.</dd>' .
117
				'<dt>ADDRESS</dt>		<dd>(UNIX sockets only) For bound sockets, this is the file-name of the socket. For other sockets, it is the name, PID and file descriptor number of the peer, or "(none)" if the socket is neither bound nor connected.</dd>' .
118
				'<dt>LOCAL ADDRESS</dt> <dd>(Internet sockets only) The address the local end of the socket is bound to (see getsockname(2)).</dd>' .
119
				'<dt>FOREIGN ADDRESS</dt><dd>(Internet sockets only) The address the foreign end of the socket is bound to (see getpeername(2)).</dd>' .
120
			'</dl>'), 'info', false);
107
print_info_box(gettext('Socket Information') . '<br /><br />' .
108
gettext('This page shows all listening sockets by default, and shows both listening and outbound connection sockets when <strong>Show all socket connections</strong> is clicked.<br /><br />' .
109
		'The information listed for each socket is:' . '<br /><br />' .
110
		'<dl class="dl-horizontal responsive">' .
111
			'<dt>USER</dt>			<dd>The user who owns the socket.</dd>' .
112
			'<dt>COMMAND</dt>		<dd>The command which holds the socket.</dd>' .
113
			'<dt>PID</dt>			<dd>The process ID of the command which holds the socket.</dd>' .
114
			'<dt>FD</dt>			<dd>The file descriptor number of the socket.</dd>' .
115
			'<dt>PROTO</dt>			<dd>The transport protocol associated with the socket.</dd>' .
116
			'<dt>LOCAL ADDRESS</dt>		<dd>The address the local end of the socket is bound to.</dd>' .
117
			'<dt>FOREIGN ADDRESS</dt>	<dd>The address the foreign end of the socket is bound to.</dd>' .
118
		'</dl>'), 'info', false);
121 119
?>
122 120
</div>
123 121
</div>

Also available in: Unified diff