C API for BALTECH SDK
eth.h
Go to the documentation of this file.
1 
11 #ifndef __BRP_BALTECH_API_CMDS_ETH_H__
12 #define __BRP_BALTECH_API_CMDS_ETH_H__
13 #include "../typedefs.h"
18 #define BRP_Eth_ErrNoResultYet BRP_ERR_STATUS(0x4500, 0x01)
19 
23 #define BRP_Eth_ErrNotConnected BRP_ERR_STATUS(0x4500, 0x02)
24 
28 #define BRP_Eth_ErrDisabled BRP_ERR_STATUS(0x4500, 0x03)
29 
84 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);
95 brp_errcode brp_Eth_GetMIBCounters(brp_protocol protocol, unsigned Port, unsigned** MIBCounterList, size_t* MIBCounterList_len, brp_mempool *mempool);
120 #endif
121 
brp_errcode brp_Eth_CloseTcpConnection(brp_protocol protocol)
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)
struct brp_mempool_object_t * brp_mempool
mempool handle.
Definition: mempool.h:27
brp_errcode brp_Eth_CreateRecoveryPoint(brp_protocol protocol)
brp_Eth_GetTcpConnectionStatus_Status
Definition: typedefs.h:972
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)
brp_errcode brp_Eth_GetTcpConnectionStatus(brp_protocol protocol, brp_Eth_GetTcpConnectionStatus_Status *Status)
brp_errcode brp_Eth_OpenTcpConnection(brp_protocol protocol, brp_Eth_OpenTcpConnection_ConnectionReason ConnectionReason)
unsigned char * brp_buf
represents a pointer to a protocol data buffer.
Definition: common.h:61
brp_errcode brp_Eth_DelRecoveryPoint(brp_protocol protocol)
brp_errcode brp_Eth_GetConnDevIP(brp_protocol protocol, brp_buf *IP, brp_mempool *mempool)
brp_Eth_OpenTcpConnection_ConnectionReason
Definition: typedefs.h:992
brp_errcode brp_Eth_GetMacAdr(brp_protocol protocol, brp_buf *MAC, brp_mempool *mempool)