![Logo](../../RDK-Logo.png) |
RDK Documentation (Open Sourced RDK Components)
|
46 #include "rdk_moca_hal.h"
50 MoCAInterfaceStats::MoCAInterfaceStats(
int _dev_id):
55 m_ulPacketsReceived(0),
57 m_ulErrorsReceived(0),
58 m_ulUnicastPacketsSent(0),
59 m_ulUnicastPacketsReceived(0),
60 m_ulDiscardPacketsSent(0),
61 m_ulDiscardPacketsReceived(0),
62 m_ulMulticastPacketsSent(0),
63 m_ulMulticastPacketsReceived(0),
64 m_ulBroadcastPacketsSent(0),
65 m_ulBroadcastPacketsReceived(0),
66 m_ui32UnknownProtoPacketsReceived(0)
79 RDK_LOG(RDK_LOG_WARN,LOG_TR69HOSTIF,
"Caught exception, not able create MoCA Interface Status instance..\n");
93 stMsgData->
paramtype = hostIf_UnsignedLongType;
94 stMsgData->
paramLen=
sizeof(
unsigned long);
109 stMsgData->
paramtype = hostIf_UnsignedLongType;
110 stMsgData->
paramLen=
sizeof(
unsigned long);
126 stMsgData->
paramtype = hostIf_UnsignedLongType;
127 stMsgData->
paramLen=
sizeof(
unsigned long);
142 stMsgData->
paramtype = hostIf_UnsignedLongType;
143 stMsgData->
paramLen=
sizeof(
unsigned long);
158 stMsgData->
paramtype = hostIf_UnsignedLongType;
159 stMsgData->
paramLen=
sizeof(
unsigned long);
175 stMsgData->
paramtype = hostIf_UnsignedLongType;
176 stMsgData->
paramLen=
sizeof(
unsigned long);
192 stMsgData->
paramtype = hostIf_UnsignedLongType;
193 stMsgData->
paramLen=
sizeof(
unsigned long);
208 stMsgData->
paramtype = hostIf_UnsignedLongType;
209 stMsgData->
paramLen=
sizeof(
unsigned long);
224 stMsgData->
paramtype = hostIf_UnsignedLongType;
225 stMsgData->
paramLen=
sizeof(
unsigned long);
240 stMsgData->
paramtype = hostIf_UnsignedLongType;
241 stMsgData->
paramLen=
sizeof(
unsigned long);
256 stMsgData->
paramtype = hostIf_UnsignedLongType;
257 stMsgData->
paramLen=
sizeof(
unsigned long);
273 stMsgData->
paramtype = hostIf_UnsignedLongType;
274 stMsgData->
paramLen=
sizeof(
unsigned long);
290 stMsgData->
paramtype = hostIf_UnsignedLongType;
291 stMsgData->
paramLen=
sizeof(
unsigned long);
306 stMsgData->
paramtype = hostIf_UnsignedLongType;
307 stMsgData->
paramLen=
sizeof(
unsigned long);
322 stMsgData->
paramtype = hostIf_UnsignedLongType;
323 stMsgData->
paramLen=
sizeof(
unsigned long);
int get_ErrorsReceived(HOSTIF_MsgData_t *stMsgData, bool *pChanged=NULL)
Get the total number of inbound packets that contained errors preventing them from being delivered to...
RMH_Result RMH_Stats_GetRxMulticastPackets(const RMH_Handle handle, uint32_t *response)
Return the number of multicast packets received by this node.
int get_DiscardPacketsSent(HOSTIF_MsgData_t *stMsgData, bool *pChanged=NULL)
Get the total number of outbound packets which were chosen to be discarded even though no errors had ...
RMH_Result RMH_Stats_GetTxBroadcastPackets(const RMH_Handle handle, uint32_t *response)
Return the number of broadcast packets transmitted by this node.
RMH_Result RMH_Stats_GetTxTotalErrors(const RMH_Handle handle, uint32_t *response)
Return the total number of transmit errors by this node.
RMH_Result RMH_Stats_GetTxMulticastPackets(const RMH_Handle handle, uint32_t *response)
Return the number of multicast packets transmitted by this node.
int get_BytesReceived(HOSTIF_MsgData_t *stMsgData, bool *pChanged=NULL)
Get the total number of bytes received on the MoCA interface, including framing characters.
int get_PacketsSent(HOSTIF_MsgData_t *stMsgData, bool *pChanged=NULL)
Get the total number of packets transmitted out of the MoCA interface.
int get_UnknownProtoPacketsReceived(HOSTIF_MsgData_t *stMsgData, bool *pChanged=NULL)
Get the total number of packets received via the MoCA interface which were discarded because of an un...
int get_UnicastPacketsSent(HOSTIF_MsgData_t *stMsgData, bool *pChanged=NULL)
Get the total number of packets requested for transmission which were not addressed to a multicast or...
RMH_Result RMH_Stats_GetRxTotalErrors(const RMH_Handle handle, uint32_t *response)
Return the total number of received errors by this node.
RMH_Result RMH_Stats_GetTxDroppedPackets(const RMH_Handle handle, uint32_t *response)
Return the number of packets this node has dropped before transmitting.
HostIf_ParamType_t paramtype
RMH_Result RMH_Stats_GetTxUnicastPackets(const RMH_Handle handle, uint32_t *response)
Return the number of unicast packets transmitted by this node.
RMH_Result RMH_Stats_GetTxTotalBytes(const RMH_Handle handle, uint32_t *response)
Return the total number of bytes transmitted by this node.
int get_BytesSent(HOSTIF_MsgData_t *stMsgData, bool *pChanged=NULL)
Get the total number of bytes transmitted out of the MoCA interface, including framing characters.
int get_BroadcastPacketsSent(HOSTIF_MsgData_t *stMsgData, bool *pChanged=NULL)
Get the total number of packets that higher-level protocols requested for transmission and which were...
RMH_Result RMH_Stats_GetRxTotalBytes(const RMH_Handle handle, uint32_t *response)
Return the total number of bytes received by this node.
int get_PacketsReceived(HOSTIF_MsgData_t *stMsgData, bool *pChanged=NULL)
Get the total number of packets received on the MoCA interface.
RMH_Result RMH_Stats_GetRxDroppedPackets(const RMH_Handle handle, uint32_t *response)
Return the number of packets this node has dropped after receiving.
int get_UnicastPacketsReceived(HOSTIF_MsgData_t *stMsgData, bool *pChanged=NULL)
Get the total number of received packets, delivered by this layer to a higher layer,...
RMH_Result RMH_Stats_GetTxTotalPackets(const RMH_Handle handle, uint32_t *response)
Return the total number of packets transmitted by this node.
RMH_Result RMH_Stats_GetRxBroadcastPackets(const RMH_Handle handle, uint32_t *response)
Return the number of broadcast packets received by this node.
int get_ErrorsSent(HOSTIF_MsgData_t *stMsgData, bool *pChanged=NULL)
Get the total number of outbound packets that could not be transmitted because of errors.
RMH_Result RMH_Stats_GetRxTotalPackets(const RMH_Handle handle, uint32_t *response)
Return the total number of packets received by this node.
int get_BroadcastPacketsReceived(HOSTIF_MsgData_t *stMsgData, bool *pChanged=NULL)
Get the total number of received packets, delivered by this layer to a higher layer,...
char paramValue[(4 *1024)]
RMH_Result RMH_Stats_GetRxUnknownProtocolPackets(const RMH_Handle handle, uint32_t *response)
Return the number of unknown packets received by this node.
RMH_Result RMH_Stats_GetRxUnicastPackets(const RMH_Handle handle, uint32_t *response)
Return the number of unicast packets received by this node.
int get_MulticastPacketsSent(HOSTIF_MsgData_t *stMsgData, bool *pChanged=NULL)
Get the total number of packets that higher-level protocols requested for transmission and which were...
TR-069 Device.Moca.Interface.Stats object Public API.
int get_DiscardPacketsReceived(HOSTIF_MsgData_t *stMsgData, bool *pChanged=NULL)
Get the total number of inbound packets which were chosen to be discarded even though no errors had b...
void put_int(char *ptr, int val)
This function converts the input data to integer type.
int get_MulticastPacketsReceived(HOSTIF_MsgData_t *stMsgData, bool *pChanged=NULL)
Get the total number of received packets, delivered by this layer to a higher layer,...