C API for BALTECH SDK
eth.h
Go to the documentation of this file.
1 
10 #ifndef __BRP_BALTECH_API_CMDS_ETH_H__
11 #define __BRP_BALTECH_API_CMDS_ETH_H__
12 #include "../typedefs.h"
16 #define BRP_Eth_ErrNoResultYet BRP_ERR_STATUS(0x4500, 0x01)
17 
20 #define BRP_Eth_ErrNotConnected BRP_ERR_STATUS(0x4500, 0x02)
21 
24 #define BRP_Eth_ErrDisabled BRP_ERR_STATUS(0x4500, 0x03)
25 
75 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);
85 brp_errcode brp_Eth_GetMIBCounters(brp_protocol protocol, unsigned Port, unsigned** MIBCounterList, size_t* MIBCounterList_len, brp_mempool *mempool);
107 #endif
108 
brp_errcode brp_Eth_CloseTcpConnection(brp_protocol protocol)
Close the BRP over TCP connection.
unsigned int brp_errcode
This type is used library-wide for passing error codes in the return value of functions.
Definition: errorcodes.h:23
struct brp_protocol_t * brp_protocol
This is a generic handle of a protocol.
Definition: protocol.h:34
brp_errcode brp_Eth_GetMIBCounters(brp_protocol protocol, unsigned Port, unsigned **MIBCounterList, size_t *MIBCounterList_len, brp_mempool *mempool)
Retrieve current MIB counters.
struct brp_mempool_object_t * brp_mempool
mempool handle.
Definition: mempool.h:27
brp_errcode brp_Eth_CreateRecoveryPoint(brp_protocol protocol)
Create a Recovery Point , backing up all relevant Ethernet- and TCP/IP- settings. ...
brp_Eth_GetTcpConnectionStatus_Status
BRP over TCP connection status.
Definition: typedefs.h:945
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.
brp_errcode brp_Eth_GetTcpConnectionStatus(brp_protocol protocol, brp_Eth_GetTcpConnectionStatus_Status *Status)
Retrieve the BRP over TCP connection status.
brp_errcode brp_Eth_OpenTcpConnection(brp_protocol protocol, brp_Eth_OpenTcpConnection_ConnectionReason ConnectionReason)
Open a BRP over TCP connection to the configured host.
unsigned char * brp_buf
represents a pointer to a protocol data buffer.
Definition: common.h:61
brp_errcode brp_Eth_DelRecoveryPoint(brp_protocol protocol)
Remove a Recovery Point which was created via the brp_Eth_CreateRecoveryPoint() command.
brp_errcode brp_Eth_GetConnDevIP(brp_protocol protocol, brp_buf *IP, brp_mempool *mempool)
Retrieve the IP address of the directly connected network device.
brp_Eth_OpenTcpConnection_ConnectionReason
Connection reason bit mask that is sent to the host as soon as a connection is established.
Definition: typedefs.h:964
brp_errcode brp_Eth_GetMacAdr(brp_protocol protocol, brp_buf *MAC, brp_mempool *mempool)
Retrieve the MAC address of the device.