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) 20 #define BRP_Eth_ErrNotConnected BRP_ERR_STATUS(0x4500, 0x02) 24 #define BRP_Eth_ErrDisabled BRP_ERR_STATUS(0x4500, 0x03) 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);
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.
struct brp_protocol_t * brp_protocol
This is a generic handle of a protocol.
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.
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.
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.
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.
brp_errcode brp_Eth_GetMacAdr(brp_protocol protocol, brp_buf *MAC, brp_mempool *mempool)
Retrieve the MAC address of the device.