getethstat

(FW >= 1.0)

getethstat - get ethernet connection information

Description

array getethstat()

This will return an array containing information about the ethernet connection

Parameters

none

Return Value

array of data with the following keys:
Key Description
RX number of bytes received
TX number of bytes transmitted
RXPKT number of packets received
TXPKT number of packets transmitted
connected 1 if currently connected, 0 if disconnected
ip_address Current IP address

Examples

<? 
$arr = getethstat();
if ($arr['connected'])
print("Ethernet is currently connected!"); ?>