From c75fd3db0649110384637402154600d5919e416b Mon Sep 17 00:00:00 2001 From: PiBa-NL Date: Sun, 23 Sep 2012 21:52:55 +0200 Subject: Diagnose\Sockets page renamed and now also has button to show all socket connections, explanation moved to bottom. --- usr/local/www/diag_sockets.php | 67 ++++++++++++++++++++++++++++-------------- usr/local/www/fbegin.inc | 2 +- 2 files changed, 46 insertions(+), 23 deletions(-) (limited to 'usr/local/www') diff --git a/usr/local/www/diag_sockets.php b/usr/local/www/diag_sockets.php index 3c81fc7..cdde4bd 100644 --- a/usr/local/www/diag_sockets.php +++ b/usr/local/www/diag_sockets.php @@ -41,39 +41,46 @@ include('guiconfig.inc'); -$pgtitle = array(gettext("Diagnostics"),gettext("Sockets listening")); +$pgtitle = array(gettext("Diagnostics"),gettext("Sockets")); include('head.inc'); ?> - +
- - - - - - - - - - - +
Socket information explanation
-This page show the output for the commands: "sockstat -4lL" and "sockstat -6lL".
-The information listed for each socket is:
USER The user who owns the socket.
COMMAND The command which holds the socket.
PID The process ID of the command which holds the socket.
FD The file descriptor number of the socket.
PROTO The transport protocol associated with the socket for Internet sockets, or the type of socket (stream or data-gram) for UNIX sockets.
ADDRESS (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.
LOCAL ADDRESS (Internet sockets only) The address the local end of the socket is bound to (see getsockname(2)).
FOREIGN ADDRESS (Internet sockets only) The address the foreign end of the socket is bound to (see getpeername(2)).
+ + + + + + + + +
Information about listening sockets for both IPv4 and IPv6.
For explanation about the meaning of the information listed for each socket click here.
To show information about both listening and connected sockets click this.
- $table) { $elements = ($tabindex == 0 ? 7 : 7); $name = ($tabindex == 0 ? 'IPv4' : 'IPv6'); ?> -
+ } ?>
@@ -107,9 +114,25 @@ The information listed for each socket is:
- +
+ + + + + + + + + + + + +
Socket information explanation
+This page show the output for the commands: "sockstat -4lL" and "sockstat -6lL".
+Or in case of showing all sockets the output for: "sockstat -4" and "sockstat -6".
+
+The information listed for each socket is:
USER The user who owns the socket.
COMMAND The command which holds the socket.
PID The process ID of the command which holds the socket.
FD The file descriptor number of the socket.
PROTO The transport protocol associated with the socket for Internet sockets, or the type of socket (stream or data-gram) for UNIX sockets.
ADDRESS (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.
LOCAL ADDRESS (Internet sockets only) The address the local end of the socket is bound to (see getsockname(2)).
FOREIGN ADDRESS (Internet sockets only) The address the foreign end of the socket is bound to (see getpeername(2)).
- diff --git a/usr/local/www/fbegin.inc b/usr/local/www/fbegin.inc index 17c3185..0ebaa23 100755 --- a/usr/local/www/fbegin.inc +++ b/usr/local/www/fbegin.inc @@ -229,7 +229,7 @@ $diagnostics_menu[] = array(gettext("pfTop"), "/diag_system_pftop.php"); $diagnostics_menu[] = array(gettext("Reboot"), "/reboot.php"); $diagnostics_menu[] = array(gettext("Routes"), "/diag_routes.php"); $diagnostics_menu[] = array(gettext("SMART Status"), "/diag_smart.php"); -$diagnostics_menu[] = array(gettext("Sockets listening"), "/diag_sockets.php" ); +$diagnostics_menu[] = array(gettext("Sockets"), "/diag_sockets.php" ); $diagnostics_menu[] = array(gettext("States"), "/diag_dump_states.php"); $diagnostics_menu[] = array(gettext("States Summary"), "/diag_states_summary.php"); $diagnostics_menu[] = array(gettext("System Activity"), "/diag_system_activity.php"); -- cgit v1.1