C API for BALTECH SDK
eth.h File Reference

This command group contains ethernet related commands. More...

#include "../typedefs.h"

Go to the source code of this file.

Macros

#define BRP_Eth_ErrNoResultYet   BRP_ERR_STATUS(0x4500, 0x01)
 No result yet. More...
 
#define BRP_Eth_ErrNotConnected   BRP_ERR_STATUS(0x4500, 0x02)
 Port is not connected. More...
 
#define BRP_Eth_ErrDisabled   BRP_ERR_STATUS(0x4500, 0x03)
 Detection is disabled. More...
 

Functions

brp_errcode brp_Eth_GetMacAdr (brp_protocol protocol, brp_buf *MAC, brp_mempool *mempool)
 Retrieve the MAC address of the device. More...
 
brp_errcode brp_Eth_GetConnDevIP (brp_protocol protocol, brp_buf *IP, brp_mempool *mempool)
 Retrieve the IP address of the directly connected network device. More...
 
brp_errcode brp_Eth_CreateRecoveryPoint (brp_protocol protocol)
 Create a Recovery Point , backing up all relevant Ethernet- and TCP/IP- settings. More...
 
brp_errcode brp_Eth_DelRecoveryPoint (brp_protocol protocol)
 Remove a Recovery Point which was created via the brp_Eth_CreateRecoveryPoint() command. More...
 
brp_errcode brp_Eth_GetNetworkStatus (brp_protocol protocol, unsigned *PortStatus, brp_buf *StaticIPAdr, brp_buf *StaticIPNetmask, brp_buf *StaticIPGateway, brp_buf *DHCPAdr, brp_buf *DHCPNetmask, brp_buf *DHCPGateway, brp_buf *LinkLocalAdr, brp_buf *LinkLocalNetmask, brp_buf *LinkLocalGateway, brp_buf *DNSAdr, brp_buf *HostAdr, unsigned *HostPort, unsigned *AutocloseTimeout, brp_mempool *mempool)
 Retrieve current network status. More...
 
brp_errcode brp_Eth_GetMIBCounters (brp_protocol protocol, unsigned Port, unsigned **MIBCounterList, size_t *MIBCounterList_len, brp_mempool *mempool)
 Retrieve current MIB counters. More...
 
brp_errcode brp_Eth_GetTcpConnectionStatus (brp_protocol protocol, brp_Eth_GetTcpConnectionStatus_Status *Status)
 Retrieve the BRP over TCP connection status. More...
 
brp_errcode brp_Eth_OpenTcpConnection (brp_protocol protocol, brp_Eth_OpenTcpConnection_ConnectionReason ConnectionReason)
 Open a BRP over TCP connection to the configured host. More...
 
brp_errcode brp_Eth_CloseTcpConnection (brp_protocol protocol)
 Close the BRP over TCP connection. More...
 

Detailed Description

This command group contains ethernet related commands.

Definition in file eth.h.