RDK Documentation (Open Sourced RDK Components)
hostIf_MoCAClient_ReqHandler.cpp
Go to the documentation of this file.
1 /*
2  * If not stated otherwise in this file or this component's Licenses.txt file the
3  * following copyright and licenses apply:
4  *
5  * Copyright 2016 RDK Management
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18 */
19 
20 /**
21  * @file hostIf_MoCAClient_ReqHandler.cpp
22  * @brief The header file provides HostIf IP json request handler information APIs.
23  */
24 
25 /**
26 * @defgroup tr69hostif
27 * @{
28 * @defgroup hostif
29 * @{
30 **/
31 
32 #include <cstddef>
33 #include "hostIf_main.h"
34 #include "safec_lib.h"
35 #ifdef USE_MoCA_PROFILE
37 #include "Device_MoCA_Interface.h"
43 
44 
45 MoCAClientReqHandler* MoCAClientReqHandler::pInstance = NULL;
46 updateCallback MoCAClientReqHandler::mUpdateCallback = NULL;
47 int MoCAClientReqHandler::curNumOfDevices[10] = {0,};
48 int MoCAClientReqHandler::numOfMocaMeshEntries = 0;
49 
50 msgHandler* MoCAClientReqHandler::getInstance()
51 {
52 
53  if(!pInstance)
54  pInstance = new MoCAClientReqHandler();
55  return pInstance;
56 }
57 
58 void MoCAClientReqHandler::reset()
59 {
60  MoCAInterface::getLock();
61  memset(curNumOfDevices,0,sizeof(curNumOfDevices));
62  numOfMocaMeshEntries = 0;
63  MoCAInterface::releaseLock();
64 }
65 
66 /**
67  * @brief This function is use to initialize. Currently not implemented.
68  *
69  * @return Returns the status of the operation.
70  *
71  * @retval true if initialization is successfully .
72  * @retval false if initialization is not successful.
73  * @ingroup TR-069HOSTIF_MOCACLIENT_REQHANDLER_CLASSES
74  */
76 {
77  RDK_LOG(RDK_LOG_TRACE1,LOG_TR69HOSTIF,"[%s:%s] Entering..\n", __FUNCTION__, __FILE__);
78  RDK_LOG(RDK_LOG_TRACE1,LOG_TR69HOSTIF,"[%s:%s] Exiting..\n", __FUNCTION__, __FILE__);
79  return true;
80 }
81 
82 /**
83  * @brief This function is used to close all the instances of MoCA interface, MoCA interface stats
84  * MoCA interface QoS, MoCA interface QoSFlowStats and MoCA interface associated device.
85  *
86  * @return Returns the status of the operation.
87  *
88  * @retval true if it is successfully close all the instances.
89  * @retval false if not able to close all the instances.
90  * @ingroup TR-069HOSTIF_MOCACLIENT_REQHANDLER_CLASSES
91  */
93 {
94  RDK_LOG(RDK_LOG_TRACE1,LOG_TR69HOSTIF,"[%s:%s] Entering..\n", __FUNCTION__, __FILE__);
95 
96  MoCAInterface::closeInstance();
97  //MoCAInterfaceStats::closeAllInstances();
98  //MoCAInterfaceQoS::closeAllInstances();
99  //MoCAInterfaceQoSFlowStats::closeAllInstances();
100  //MoCAInterfaceAssociatedDevice::closeAllInstances();
101 
102  MoCADevice::closeInstance();
103 
104  RDK_LOG(RDK_LOG_TRACE1,LOG_TR69HOSTIF,"[%s:%s] Exiting..\n", __FUNCTION__, __FILE__);
105  return true;
106 }
107 
108 /**
109  * @brief This function is use to handle the set message request of MoCA interface
110  * and set the attributes of the components such as "Enable", "Alias", "LowerLayers"
111  * etc..
112  *
113  * @param[out] stMsgData TR-069 Host interface message request.
114  *
115  * @return Returns the status of the operation.
116  *
117  * @retval OK if it is successfully.
118  * @retval ERR_INTERNAL_ERROR if not able to set the data to the device.
119  * @ingroup TR-069HOSTIF_MOCACLIENT_REQHANDLER_CLASSES
120  */
122 {
123  int ret = NOT_HANDLED;
124  const char *pSetting;
125  const char *pSubSetting;
126  int instanceNumber;
127  int subInstanceNumber;
128  RDK_LOG(RDK_LOG_TRACE1,LOG_TR69HOSTIF,"[%s:%s:%d] Found string as %s\n", __FUNCTION__, __FILE__, __LINE__, stMsgData->paramName);
129  if(matchComponent(stMsgData->paramName,
130  "Device.MoCA.Interface",&pSetting,instanceNumber))
131  {
132  stMsgData->instanceNum = instanceNumber;
133  MoCAInterface::getLock();
134 
135  MoCAInterface *pIface = MoCAInterface::getInstance(0);
136 
137  if(!pIface)
138  {
139  MoCAInterface::releaseLock();
140  return NOK;
141  }
142 
143  if (strcasecmp(pSetting,"Enable") == 0)
144  {
145  ret = pIface->set_Enable(stMsgData);
146  }
147  else if (strcasecmp(pSetting,"Alias") == 0)
148  {
149  ret = pIface->set_Alias(stMsgData);
150  }
151  else if (strcasecmp(pSetting,"LowerLayers") == 0)
152  {
153  ret = pIface->set_LowerLayers(stMsgData);
154  }
155  else if (strcasecmp(pSetting,"PreferredNC") == 0)
156  {
157  ret = pIface->set_PreferredNC(stMsgData);
158  }
159  else if (strcasecmp(pSetting,"PrivacyEnabledSetting") == 0)
160  {
161  ret = pIface->set_PrivacyEnabledSetting(stMsgData);
162  }
163  else if (strcasecmp(pSetting,"FreqCurrentMaskSetting") == 0)
164  {
165  ret = pIface->set_FreqCurrentMaskSetting(stMsgData);
166  }
167  else if (strcasecmp(pSetting,"KeyPassphrase") == 0)
168  {
169  ret = pIface->set_KeyPassphrase(stMsgData);
170  }
171  else if (strcasecmp(pSetting,"TxPowerLimit") == 0)
172  {
173  ret = pIface->set_TxPowerLimit(stMsgData);
174  }
175  else if (strcasecmp(pSetting,"PowerCntlPhyTarget") == 0)
176  {
177  ret = pIface->set_PowerCntlPhyTarget(stMsgData);
178  }
179  else if (strcasecmp(pSetting,"BeaconPowerLimit") == 0)
180  {
181  ret = pIface->set_BeaconPowerLimit(stMsgData);
182  }
183  else
184  {
185  ret = NOK;
186  stMsgData->faultCode = fcAttemptToSetaNonWritableParameter;
187  RDK_LOG(RDK_LOG_ERROR,LOG_TR69HOSTIF,"[%s] Failed, since Attempt To Set a NonWritable Parameter \"%s\"\n", __FUNCTION__, stMsgData->paramName);
188  }
189 
190  if(OK == ret) {
191  stMsgData->faultCode = fcNoFault;
192  }
193  }
194  MoCAInterface::releaseLock();
195  return ret;
196 }
197 
198 /**
199  * @brief This function is use to handle the get message request of MoCA interface,
200  * QoS.FlowStats, Associated devices and get the attributes of the components.
201  *
202  * @param[out] stMsgData TR-069 Host interface message request.
203  *
204  * @return Returns the status of the operation.
205  *
206  * @retval OK if it is successfully.
207  * @retval ERR_INTERNAL_ERROR if not able to set the data to the device.
208  * @ingroup TR-069HOSTIF_MOCACLIENT_REQHANDLER_CLASSES
209  */
211 {
212  int ret = NOT_HANDLED;
213  const char *pSetting;
214  const char *pSubSetting;
215  int instanceNumber;
216  int subInstanceNumber;
217  RDK_LOG(RDK_LOG_TRACE1,LOG_TR69HOSTIF,"[%s:%s:%d] Found string as %s\n", __FUNCTION__, __FILE__, __LINE__, stMsgData->paramName);
218  MoCAInterface::getLock();
219  if(strcasecmp(stMsgData->paramName,"Device.MoCA.InterfaceNumberOfEntries") == 0)
220  {
222  }
223  else if(matchComponent(stMsgData->paramName,
224  "Device.MoCA.Interface",&pSetting,instanceNumber))
225  {
226  stMsgData->instanceNum = instanceNumber;
227  MoCAInterface *pIface = MoCAInterface::getInstance(0);
228  MoCAInterfaceStats *pIfaceStats
229  = MoCAInterfaceStats::getInstance();
230  MoCAInterfaceQoS *pIfaceQoS = MoCAInterfaceQoS::getInstance();
231  MoCAInterfaceQoSFlowStats *pIfaceQoSFS
232  = MoCAInterfaceQoSFlowStats::getInstance();
233  MoCAInterfaceAssociatedDevice *pIfaceAsstDev
234  = MoCAInterfaceAssociatedDevice::getInstance();
235 
236  X_RDKCENTRAL_COM_MeshTable *pIfaceMeshTableDev
237  = X_RDKCENTRAL_COM_MeshTable::getInstance(instanceNumber);
238 
239  if(!pIface)
240  {
241  MoCAInterface::releaseLock();
242  return NOK;
243  }
244 
245  if (strcasecmp(pSetting,"Enable") == 0)
246  {
247  ret = pIface->get_Enable(stMsgData);
248  }
249  else if (strcasecmp(pSetting,"Status") == 0)
250  {
251  ret = pIface->get_Status(stMsgData);
252  }
253  else if (strcasecmp(pSetting,"Alias") == 0)
254  {
255  ret = pIface->get_Alias(stMsgData);
256  }
257  else if (strcasecmp(pSetting,"Name") == 0)
258  {
259  ret = pIface->get_Name(stMsgData);
260  }
261  else if (strcasecmp(pSetting,"LastChange") == 0)
262  {
263  ret = pIface->get_LastChange(stMsgData);
264  }
265  else if (strcasecmp(pSetting,"LowerLayers") == 0)
266  {
267  ret = pIface->get_LowerLayers(stMsgData);
268  }
269  else if (strcasecmp(pSetting,"Upstream") == 0)
270  {
271  ret = pIface->get_Upstream(stMsgData);
272  }
273  else if (strcasecmp(pSetting,"MACAddress") == 0)
274  {
275  ret = pIface->get_MACAddress(stMsgData);
276  }
277  else if (strcasecmp(pSetting,"FirmwareVersion") == 0)
278  {
279  ret = pIface->get_FirmwareVersion(stMsgData);
280  }
281  else if (strcasecmp(pSetting,"MaxBitRate") == 0)
282  {
283  ret = pIface->get_MaxBitRate(stMsgData);
284  }
285  else if (strcasecmp(pSetting,"MaxIngressBW") == 0)
286  {
287  ret = pIface->get_MaxIngressBW(stMsgData);
288  }
289  else if (strcasecmp(pSetting,"MaxEgressBW") == 0)
290  {
291  ret = pIface->get_MaxEgressBW(stMsgData);
292  }
293  else if (strcasecmp(pSetting,"HighestVersion") == 0)
294  {
295  ret = pIface->get_HighestVersion(stMsgData);
296  }
297  else if (strcasecmp(pSetting,"CurrentVersion") == 0)
298  {
299  ret = pIface->get_CurrentVersion(stMsgData);
300  }
301  else if (strcasecmp(pSetting,"NetworkCoordinator") == 0)
302  {
303  ret = pIface->get_NetworkCoordinator(stMsgData);
304  }
305  else if (strcasecmp(pSetting,"NodeID") == 0)
306  {
307  ret = pIface->get_NodeID(stMsgData);
308  }
309  else if (strcasecmp(pSetting,"MaxNodes") == 0)
310  {
311  ret = pIface->get_MaxNodes(stMsgData);
312  }
313  else if (strcasecmp(pSetting,"PreferredNC") == 0)
314  {
315  ret = pIface->get_PreferredNC(stMsgData);
316  }
317  else if (strcasecmp(pSetting,"BackupNC") == 0)
318  {
319  ret = pIface->get_BackupNC(stMsgData);
320  }
321  else if (strcasecmp(pSetting,"PrivacyEnabledSetting") == 0)
322  {
323  ret = pIface->get_PrivacyEnabledSetting(stMsgData);
324  }
325  else if (strcasecmp(pSetting,"PrivacyEnabled") == 0)
326  {
327  ret = pIface->get_PrivacyEnabled(stMsgData);
328  }
329  else if (strcasecmp(pSetting,"FreqCapabilityMask") == 0)
330  {
331  ret = pIface->get_FreqCapabilityMask(stMsgData);
332  }
333  else if (strcasecmp(pSetting,"FreqCurrentMaskSetting") == 0)
334  {
335  ret = pIface->get_FreqCurrentMaskSetting(stMsgData);
336  }
337  else if (strcasecmp(pSetting,"FreqCurrentMask") == 0)
338  {
339  ret = pIface->get_FreqCurrentMask(stMsgData);
340  }
341  else if (strcasecmp(pSetting,"CurrentOperFreq") == 0)
342  {
343  ret = pIface->get_CurrentOperFreq(stMsgData);
344  }
345  else if (strcasecmp(pSetting,"LastOperFreq") == 0)
346  {
347  ret = pIface->get_LastOperFreq(stMsgData);
348  }
349  else if (strcasecmp(pSetting,"KeyPassphrase") == 0)
350  {
351  ret = pIface->get_KeyPassphrase(stMsgData);
352  }
353  else if (strcasecmp(pSetting,"TxPowerLimit") == 0)
354  {
355  ret = pIface->get_TxPowerLimit(stMsgData);
356  }
357  else if (strcasecmp(pSetting,"PowerCntlPhyTarget") == 0)
358  {
359  ret = pIface->get_PowerCntlPhyTarget(stMsgData);
360  }
361  else if (strcasecmp(pSetting,"BeaconPowerLimit") == 0)
362  {
363  ret = pIface->get_BeaconPowerLimit(stMsgData);
364  }
365  else if (strcasecmp(pSetting,"NetworkTabooMask") == 0)
366  {
367  ret = pIface->get_NetworkTabooMask(stMsgData);
368  }
369  else if (strcasecmp(pSetting,"NodeTabooMask") == 0)
370  {
371  ret = pIface->get_NodeTabooMask(stMsgData);
372  }
373  else if (strcasecmp(pSetting,"TxBcastRate") == 0)
374  {
375  ret = pIface->get_TxBcastRate(stMsgData);
376  }
377  else if (strcasecmp(pSetting,"TxBcastPowerReduction") == 0)
378  {
379  ret = pIface->get_TxBcastPowerReduction(stMsgData);
380  }
381  else if (strcasecmp(pSetting,"QAM256Capable") == 0)
382  {
383  ret = pIface->get_QAM256Capable(stMsgData);
384  }
385  else if (strcasecmp(pSetting,"PacketAggregationCapability") == 0)
386  {
387  ret = pIface->get_PacketAggregationCapability(stMsgData);
388  }
389  else if (strcasecmp(pSetting,"AssociatedDeviceNumberOfEntries") == 0)
390  {
391  ret = pIface->get_AssociatedDeviceNumberOfEntries(stMsgData);
392  }
393  else if (strcasecmp(pSetting,"X_RDKCENTRAL-COM_MeshTableNumberOfEntries") == 0)
394  {
395  ret = pIface->get_X_RDKCENTRAL_COM_MeshTableNumberOfEntries(stMsgData);
396  }
397  else if (strcasecmp(pSetting,"X_RDKCENTRAL-COM_PrimaryChannelFreq") == 0)
398  {
399  ret = pIface->get_X_RDKCENTRAL_COM_PrimaryChannelFreq(stMsgData);
400  }
401  else if (strcasecmp(pSetting,"X_RDKCENTRAL-COM_SecondaryChannelFreq") == 0)
402  {
403  ret = pIface->get_X_RDKCENTRAL_COM_SecondaryChannelFreq(stMsgData);
404  }
405  else if (strcasecmp(pSetting,"X_RDKCENTRAL-COM_TurboMode") == 0)
406  {
407  ret = pIface->get_X_RDKCENTRAL_COM_TurboMode(stMsgData);
408  }
409  else if (strcasecmp(pSetting,"X_RDKCENTRAL-COM_NodePowerState") == 0)
410  {
411  ret = pIface->get_X_RDKCENTRAL_COM_NodePowerState(stMsgData);
412  }
413  else if (strcasecmp(pSetting,"Stats.BytesSent") == 0)
414  {
415  ret = pIfaceStats->get_BytesSent(stMsgData);
416  }
417  else if (strcasecmp(pSetting,"Stats.BytesReceived") == 0)
418  {
419  ret = pIfaceStats->get_BytesReceived(stMsgData);
420  }
421  else if (strcasecmp(pSetting,"Stats.PacketsSent") == 0)
422  {
423  ret = pIfaceStats->get_PacketsSent(stMsgData);
424  }
425  else if (strcasecmp(pSetting,"Stats.PacketsReceived") == 0)
426  {
427  ret = pIfaceStats->get_PacketsReceived(stMsgData);
428  }
429  else if (strcasecmp(pSetting,"Stats.ErrorsSent") == 0)
430  {
431  ret = pIfaceStats->get_ErrorsSent(stMsgData);
432  }
433  else if (strcasecmp(pSetting,"Stats.ErrorsReceived") == 0)
434  {
435  ret = pIfaceStats->get_ErrorsReceived(stMsgData);
436  }
437  else if (strcasecmp(pSetting,"Stats.UnicastPacketsSent") == 0)
438  {
439  ret = pIfaceStats->get_UnicastPacketsSent(stMsgData);
440  }
441  else if (strcasecmp(pSetting,"Stats.UnicastPacketsReceived") == 0)
442  {
443  ret = pIfaceStats->get_UnicastPacketsReceived(stMsgData);
444  }
445  else if (strcasecmp(pSetting,"Stats.DiscardPacketsSent") == 0)
446  {
447  ret = pIfaceStats->get_DiscardPacketsSent(stMsgData);
448  }
449  else if (strcasecmp(pSetting,"Stats.DiscardPacketsReceived") == 0)
450  {
451  ret = pIfaceStats->get_DiscardPacketsReceived(stMsgData);
452  }
453  else if (strcasecmp(pSetting,"Stats.MulticastPacketsSent") == 0)
454  {
455  ret = pIfaceStats->get_MulticastPacketsSent(stMsgData);
456  }
457  else if (strcasecmp(pSetting,"Stats.MulticastPacketsReceived") == 0)
458  {
459  ret = pIfaceStats->get_MulticastPacketsReceived(stMsgData);
460  }
461  else if (strcasecmp(pSetting,"Stats.BroadcastPacketsSent") == 0)
462  {
463  ret = pIfaceStats->get_BroadcastPacketsSent(stMsgData);
464  }
465  else if (strcasecmp(pSetting,"Stats.BroadcastPacketsReceived") == 0)
466  {
467  ret = pIfaceStats->get_BroadcastPacketsReceived(stMsgData);
468  }
469  else if (strcasecmp(pSetting,"Stats.UnknownProtoPacketsReceived") == 0)
470  {
471  ret = pIfaceStats->get_UnknownProtoPacketsReceived(stMsgData);
472  }
473  else if (strcasecmp(pSetting,"QoS.EgressNumFlows") == 0)
474  {
475  ret = pIfaceQoS->get_EgressNumFlows(stMsgData);
476  }
477  else if (strcasecmp(pSetting,"QoS.IngressNumFlows") == 0)
478  {
479  ret = pIfaceQoS->get_IngressNumFlows(stMsgData);
480  }
481  else if (strcasecmp(pSetting,"QoS.FlowStatsNumberOfEntries") == 0)
482  {
483  ret = pIfaceQoS->get_FlowStatsNumberOfEntries(stMsgData);
484  }
485  else if (matchComponent(pSetting,"QoS.FlowStats",
486  &pSubSetting,subInstanceNumber))
487  {
488  if (strcasecmp(pSubSetting,"FlowID") == 0)
489  {
490  ret = pIfaceQoSFS->get_FlowID(stMsgData,subInstanceNumber);
491  }
492  else if(strcasecmp(pSubSetting,"PacketDA") == 0)
493  {
494  ret = pIfaceQoSFS->get_PacketDA(stMsgData,subInstanceNumber);
495  }
496  else if(strcasecmp(pSubSetting,"MaxRate") == 0)
497  {
498  ret = pIfaceQoSFS->get_MaxRate(stMsgData,subInstanceNumber);
499  }
500  else if(strcasecmp(pSubSetting,"MaxBurstSize") == 0)
501  {
502  ret = pIfaceQoSFS->get_MaxBurstSize(stMsgData,subInstanceNumber);
503  }
504  else if(strcasecmp(pSubSetting,"LeaseTime") == 0)
505  {
506  ret = pIfaceQoSFS->get_LeaseTime(stMsgData,subInstanceNumber);
507  }
508  else if(strcasecmp(pSubSetting,"LeaseTimeLeft") == 0)
509  {
510  ret = pIfaceQoSFS->get_LeaseTimeLeft(stMsgData,subInstanceNumber);
511  }
512  else if(strcasecmp(pSubSetting,"FlowPackets") == 0)
513  {
514  ret = pIfaceQoSFS->get_FlowPackets(stMsgData,subInstanceNumber);
515  }
516  else
517  {
518  stMsgData->faultCode = fcInvalidParameterName;
519  ret = NOK;
520  }
521 
522  }
523  else if(matchComponent(pSetting,"AssociatedDevice",
524  &pSubSetting,subInstanceNumber))
525  {
526  if (strcasecmp(pSubSetting,"MACAddress") == 0)
527  {
528  ret = pIfaceAsstDev->get_MACAddress(stMsgData,subInstanceNumber);
529  }
530  else if(strcasecmp(pSubSetting,"NodeID") == 0)
531  {
532  ret = pIfaceAsstDev->get_NodeID(stMsgData,subInstanceNumber);
533  }
534  else if(strcasecmp(pSubSetting,"PreferredNC") == 0)
535  {
536  ret = pIfaceAsstDev->get_PreferredNC(stMsgData,subInstanceNumber);
537  }
538  else if(strcasecmp(pSubSetting,"HighestVersion") == 0)
539  {
540  ret = pIfaceAsstDev->get_HighestVersion(stMsgData,subInstanceNumber);
541  }
542  else if(strcasecmp(pSubSetting,"PHYTxRate") == 0)
543  {
544  ret = pIfaceAsstDev->get_PHYTxRate(stMsgData,subInstanceNumber);
545  }
546  else if(strcasecmp(pSubSetting,"PHYRxRate") == 0)
547  {
548  ret = pIfaceAsstDev->get_PHYRxRate(stMsgData,subInstanceNumber);
549  }
550  else if(strcasecmp(pSubSetting,"TxPowerControlReduction") == 0)
551  {
552  ret = pIfaceAsstDev->get_TxPowerControlReduction(stMsgData,subInstanceNumber);
553  }
554  else if(strcasecmp(pSubSetting,"RxPowerLevel") == 0)
555  {
556  ret = pIfaceAsstDev->get_RxPowerLevel(stMsgData,subInstanceNumber);
557  }
558  else if(strcasecmp(pSubSetting,"TxBcastRate") == 0)
559  {
560  ret = pIfaceAsstDev->get_TxBcastRate(stMsgData,subInstanceNumber);
561  }
562  else if(strcasecmp(pSubSetting,"RxBcastPowerLevel") == 0)
563  {
564  ret = pIfaceAsstDev->get_RxBcastPowerLevel(stMsgData,subInstanceNumber);
565  }
566  else if(strcasecmp(pSubSetting,"TxPackets") == 0)
567  {
568  ret = pIfaceAsstDev->get_TxPackets(stMsgData,subInstanceNumber);
569  }
570  else if(strcasecmp(pSubSetting,"RxPackets") == 0)
571  {
572  ret = pIfaceAsstDev->get_RxPackets(stMsgData,subInstanceNumber);
573  }
574  else if(strcasecmp(pSubSetting,"RxErroredAndMissedPackets") == 0)
575  {
576  ret = pIfaceAsstDev->get_RxErroredAndMissedPackets(stMsgData,subInstanceNumber);
577  }
578  else if(strcasecmp(pSubSetting,"QAM256Capable") == 0)
579  {
580  ret = pIfaceAsstDev->get_QAM256Capable(stMsgData,subInstanceNumber);
581  }
582  else if(strcasecmp(pSubSetting,"PacketAggregationCapability") == 0)
583  {
584  ret = pIfaceAsstDev->get_PacketAggregationCapability(stMsgData,subInstanceNumber);
585  }
586  else if(strcasecmp(pSubSetting,"RxSNR") == 0)
587  {
588  ret = pIfaceAsstDev->get_RxSNR(stMsgData,subInstanceNumber);
589  }
590  else if(strcasecmp(pSubSetting,"Active") == 0)
591  {
592  ret = pIfaceAsstDev->get_Active(stMsgData,subInstanceNumber);
593  }
594  else
595  {
596  stMsgData->faultCode = fcInvalidParameterName;
597  ret = NOK;
598  }
599  }
600  else if(matchComponent(pSetting,"X_RDKCENTRAL-COM_MeshTable", &pSubSetting, subInstanceNumber))
601  {
602  if(strcasecmp(pSubSetting,"MeshTxNodeId") == 0)
603  {
604  ret = pIfaceMeshTableDev->get_MeshTxNodeId(stMsgData,subInstanceNumber);
605  }
606  else if(strcasecmp(pSubSetting,"MeshRxNodeId") == 0)
607  {
608  ret = pIfaceMeshTableDev->get_MeshRxNodeId(stMsgData,subInstanceNumber);
609  }
610  else if(strcasecmp(pSubSetting,"MeshPHYTxRate") == 0)
611  {
612  ret = pIfaceMeshTableDev->get_MeshPHYTxRate(stMsgData,subInstanceNumber);
613  }
614  else if(strcasecmp(pSubSetting,"BondedChannel") == 0)
615  {
616  ret = pIfaceMeshTableDev->get_BondedChannel(stMsgData,subInstanceNumber);
617  }
618 
619  else
620  {
621  stMsgData->faultCode = fcInvalidParameterName;
622  ret = NOK;
623  }
624  }
625  else
626  {
627  stMsgData->faultCode = fcInvalidParameterName;
628  ret = NOK;
629  }
630  }
631  else
632  {
633  stMsgData->faultCode = fcInvalidParameterName;
634  ret = NOK;
635  }
636  MoCAInterface::releaseLock();
637  return ret;
638 }
639 int MoCAClientReqHandler::handleGetAttributesMsg(HOSTIF_MsgData_t *stMsgData)
640 {
641  int ret = NOT_HANDLED;
642  int instanceNumber = 0;
643  MoCAInterface::getLock();
644  // TODO: Retrieve notification value from DeviceInfo structure for given parameter
645  MoCAInterface *pIface = MoCAInterface::getInstance(0);
646  stMsgData->instanceNum = instanceNumber;
647  if(!pIface)
648  {
649  MoCAInterface::releaseLock();
650  return NOK;
651  }
652 
653  GHashTable* notifyhash = pIface->getNotifyHash();
654  if(notifyhash != NULL)
655  {
656  int* notifyvalue = (int*) g_hash_table_lookup(notifyhash,stMsgData->paramName);
657  put_int(stMsgData->paramValue, *notifyvalue);
658  stMsgData->paramtype = hostIf_IntegerType;
659  ret = OK;
660  }
661  else
662  {
663  ret = NOK;
664  }
665  MoCAInterface::releaseLock();
666  return ret;
667 }
668 
669 int MoCAClientReqHandler::handleSetAttributesMsg(HOSTIF_MsgData_t *stMsgData)
670 {
671  int ret = NOT_HANDLED;
672  int instanceNumber = 0;
673  MoCAInterface::getLock();
674  // TODO: Set notification value from DeviceInfo structure for given parameter
675  MoCAInterface *pIface = MoCAInterface::getInstance(0);
676  stMsgData->instanceNum = instanceNumber;
677  if(!pIface)
678  {
679  MoCAInterface::releaseLock();
680  return NOK;
681  }
682  GHashTable* notifyhash = pIface->getNotifyHash();
683  if(notifyhash != NULL)
684  {
685  int *notifyValuePtr;
686  notifyValuePtr = (int*) malloc(1 * sizeof(int));
687 
688  // Inserting Notification parameter to Notify Hash Table,
689  // Note that neither keys nor values are copied when inserted into the GHashTable, so they must exist for the lifetime of the GHashTable
690  // There for allocating a memory for both Param name and param value. This should be freed whenever we disable Notification.
691  char *notifyKey;
692  notifyKey = (char*) malloc(sizeof(char)*strlen(stMsgData->paramName)+1);
693  if(NULL != notifyValuePtr)
694  {
695  errno_t rc = -1;
696  *notifyValuePtr = 1;
697  rc=strcpy_s(notifyKey,strlen(stMsgData->paramName)+1,stMsgData->paramName);
698  if(rc!=EOK)
699  {
700  ERR_CHK(rc);
701  }
702  g_hash_table_insert(notifyhash,notifyKey,notifyValuePtr);
703  ret = OK;
704  }
705  else
706  {
707  ret = NOK;
708  RDK_LOG(RDK_LOG_ERROR,LOG_TR69HOSTIF,"[%s:%s:%d] MoCAClientReqHandler Not able to allocate Notify pointer %s\n", __FUNCTION__, __FILE__, __LINE__, stMsgData->paramName);
709  }
710  }
711  else
712  {
713  ret = NOK;
714  RDK_LOG(RDK_LOG_ERROR,LOG_TR69HOSTIF,"[%s:%s:%d] MoCAClientReqHandler Not able to get notifyhash %s\n", __FUNCTION__, __FILE__, __LINE__, stMsgData->paramName);
715  }
716  MoCAInterface::releaseLock();
717  return ret;
718 }
719 
720 void MoCAClientReqHandler::registerUpdateCallback(updateCallback cb)
721 {
722  mUpdateCallback = cb;
723 }
724 
725 void MoCAClientReqHandler::checkForUpdates()
726 {
727  HOSTIF_MsgData_t msgData;
728  bool bChanged;
729  GList *elem;
730  int index = 1;
731  char tmp_buff[TR69HOSTIFMGR_MAX_PARAM_LEN];
732  MoCAInterface::getLock();
733 
734  //RDK_LOG(RDK_LOG_TRACE1,LOG_TR69HOSTIF,"[%s:%s]Entering \n", __FILE__, __FUNCTION__ );
735 
736  MoCAInterface *pIface = MoCAInterface::getInstance(0);
737 
738  if(pIface)
739  {
740  memset(&msgData,0,sizeof(msgData));
741  memset(tmp_buff,0,TR69HOSTIFMGR_MAX_PARAM_LEN);
742  if(pIface->get_AssociatedDeviceNumberOfEntries(&msgData) == OK)
743  {
744  int tmpNoDev = get_int(msgData.paramValue);
745  char tmp[TR69HOSTIFMGR_MAX_PARAM_LEN] = "";
746  sprintf(tmp_buff,"Device.MoCA.Interface.%d.%s",index,"AssociatedDevice");
747  while(curNumOfDevices[index] > tmpNoDev)
748  {
749  sprintf(tmp,"%s.%d.",tmp_buff,tmpNoDev);
750  if(mUpdateCallback) mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_REMOVE,tmp, NULL, hostIf_IntegerType);
751  tmpNoDev++;
752  }
753  while(curNumOfDevices[index] < tmpNoDev)
754  {
755  sprintf(tmp,"%s.",tmp_buff);
756  if(mUpdateCallback) mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_ADD,tmp, NULL, hostIf_IntegerType);
757  RDK_LOG(RDK_LOG_DEBUG,LOG_TR69HOSTIF,"[%s:%s]Sending ADD Event for params: [%s] \n", __FILE__, __FUNCTION__ ,tmp);
758  tmpNoDev--;
759  }
760  curNumOfDevices[index] = get_int(msgData.paramValue);
761  }
762 
763  memset(&msgData,0,sizeof(msgData));
764  memset(tmp_buff,0,TR69HOSTIFMGR_MAX_PARAM_LEN);
765  if(pIface->get_X_RDKCENTRAL_COM_MeshTableNumberOfEntries(&msgData) == OK)
766  {
767  int tmpNoDev = get_int(msgData.paramValue);
768  char tmp[TR69HOSTIFMGR_MAX_PARAM_LEN] = "";
769  sprintf(tmp_buff,"Device.MoCA.Interface.%d.%s",index,"X_RDKCENTRAL-COM_MeshTable");
770  while(numOfMocaMeshEntries > tmpNoDev)
771  {
772  sprintf(tmp,"%s.%d.",tmp_buff,tmpNoDev);
773  if(mUpdateCallback) mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_REMOVE,tmp, NULL, hostIf_IntegerType);
774  tmpNoDev++;
775  }
776  while(numOfMocaMeshEntries < tmpNoDev)
777  {
778  sprintf(tmp,"%s.",tmp_buff);
779  if(mUpdateCallback) mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_ADD,tmp, NULL, hostIf_IntegerType);
780  RDK_LOG(RDK_LOG_DEBUG,LOG_TR69HOSTIF,"[%s:%s]Sending ADD Event for params: [%s] \n", __FILE__, __FUNCTION__ ,tmp);
781  tmpNoDev--;
782  }
783  numOfMocaMeshEntries = get_int(msgData.paramValue);
784  }
785 
786 
787  }
788 #ifdef HAVE_VALUE_CHANGE_EVENT
789  int instanceNumber = 0;
790  GHashTable* notifyhash;
791 
792  //Get Notify Hash from device Info
793  if(NULL != pIface)
794  {
795  notifyhash = pIface->getNotifyHash();
796  }
797  else
798  {
799  RDK_LOG(RDK_LOG_ERROR,LOG_TR69HOSTIF,"[%s:%s] Unable to get Device MoCA Client Instance\n", __FUNCTION__, __FILE__);
800  }
801 
802  // Iterate through Ghash Table
803  if(NULL != notifyhash)
804  {
805  RDK_LOG(RDK_LOG_DEBUG,LOG_TR69HOSTIF,"[%s:%s] NotifyHash is available before Ghash iterator \n", __FILE__, __FUNCTION__ );
806  GHashTableIter notifyHashIterator;
807  gpointer paramName;
808  gpointer notifyEnable;
809  bool bChanged;
810  const char *pSetting;
811  int instanceNumber;
812  const char *positionAfterSubInstanceNumber = 0;
813  const char *positionAfterInstanceNumber = 0;
814  g_hash_table_iter_init (&notifyHashIterator, notifyhash);
815  while (g_hash_table_iter_next (&notifyHashIterator, &paramName, &notifyEnable))
816  {
817  int* isNotifyEnabled = (int *)notifyEnable;
818  instanceNumber = 0;
819  if(matchComponent((const char*)paramName,"Device.MoCA.Interface",&pSetting,instanceNumber))
820  {
821  RDK_LOG(RDK_LOG_DEBUG,LOG_TR69HOSTIF,"[%s:%s] Device.MoCA.Interface matched n pSetting is: [%s] and instance Number [%d] \n", __FILE__, __FUNCTION__,pSetting,instanceNumber);
822  if(!instanceNumber)
823  { // MoCA settings not found in Notify Hash Table
824  continue;
825  }/*Creating MoCAInterface object as InstanceNumber might be different*/
826  //RDK_LOG(RDK_LOG_INFO,LOG_TR69HOSTIF,"[%s:%s] before getting MoCA instance with instance number [%d] \n", __FILE__, __FUNCTION__,instanceNumber);
827  MoCAInterface *mocaIface = MoCAInterface::getInstance(0);
828  if(mocaIface)
829  {
830  //RDK_LOG(RDK_LOG_INFO,LOG_TR69HOSTIF,"[%s:%s] mocaIface instance is created inside if(mocaIface) \n", __FILE__, __FUNCTION__);
831  char *buff =(char*)malloc(strlen(pSetting)+1);
832  errno_t rc = -1;
833  rc=strcpy_s(buff,(strlen(pSetting)+1),pSetting);
834  if(rc!=EOK)
835  {
836  ERR_CHK(rc);
837  }
838  int subInstanceNumber;
839  const char *pSubSetting = (char*)malloc(strlen(pSetting)+1);
840  if(matchComponent((const char*)buff,"QoS.FlowStats",&pSubSetting,subInstanceNumber))
841  {
842  RDK_LOG(RDK_LOG_DEBUG,LOG_TR69HOSTIF,"[%s:%s] Device.MoCA.Interface.%d.QoS.FlowStats matched n pSubSetting is: [%s] and subInstanceNumber [%d] \n", __FILE__, __FUNCTION__,instanceNumber,pSubSetting,subInstanceNumber);
843  MoCAInterfaceQoSFlowStats *pIfaceQoSFS = MoCAInterfaceQoSFlowStats::getInstance();
844  memset(&msgData,subInstanceNumber,sizeof(msgData));
845  bChanged = false;
846  if(strcasecmp(pSubSetting,"FlowID")==0)
847  {
848  pIfaceQoSFS->get_FlowID(&msgData,subInstanceNumber,&bChanged);
849  if(bChanged)
850  {
851  if(mUpdateCallback && (*isNotifyEnabled == 1))
852  {
853  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
854  }
855  }
856  }
857  else if(strcasecmp(pSubSetting,"PacketDA")==0)
858  {
859  pIfaceQoSFS->get_PacketDA(&msgData,subInstanceNumber,&bChanged);
860  if(bChanged)
861  {
862  if(mUpdateCallback && (*isNotifyEnabled == 1))
863  {
864  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
865  }
866  }
867  }
868  else if(strcasecmp(pSubSetting,"MaxRate")==0)
869  {
870  pIfaceQoSFS->get_MaxRate(&msgData,subInstanceNumber,&bChanged);
871  if(bChanged)
872  {
873  if(mUpdateCallback && (*isNotifyEnabled == 1))
874  {
875  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
876  }
877  }
878  }
879  else if(strcasecmp(pSubSetting,"MaxBurstSize")==0)
880  {
881  pIfaceQoSFS->get_MaxBurstSize(&msgData,subInstanceNumber,&bChanged);
882  if(bChanged)
883  {
884  if(mUpdateCallback && (*isNotifyEnabled == 1))
885  {
886  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
887  }
888  }
889  }
890  else if(strcasecmp(pSubSetting,"LeaseTime")==0)
891  {
892  pIfaceQoSFS->get_LeaseTime(&msgData,subInstanceNumber,&bChanged);
893  if(bChanged)
894  {
895  if(mUpdateCallback && (*isNotifyEnabled == 1))
896  {
897  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
898  }
899  }
900  }
901  else if(strcasecmp(pSubSetting,"LeaseTimeLeft")==0)
902  {
903  pIfaceQoSFS->get_LeaseTimeLeft(&msgData,subInstanceNumber,&bChanged);
904  if(bChanged)
905  {
906  if(mUpdateCallback && (*isNotifyEnabled == 1))
907  {
908  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
909  }
910  }
911  }
912  else if(strcasecmp(pSubSetting,"FlowPackets")==0)
913  {
914  pIfaceQoSFS->get_FlowPackets(&msgData,subInstanceNumber,&bChanged);
915  if(bChanged)
916  {
917  if(mUpdateCallback && (*isNotifyEnabled == 1))
918  {
919  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
920  }
921  }
922  }
923  }
924  else if(matchComponent((const char*)buff,"AssociatedDevice",&pSubSetting,subInstanceNumber))
925  {
926  RDK_LOG(RDK_LOG_DEBUG,LOG_TR69HOSTIF,"[%s:%s] Device.MoCA.Interface.%d.AssociatedDevice matched n subInstanceNumber is: [%d] and pSubSetting is [%s] \n", __FILE__, __FUNCTION__,instanceNumber,subInstanceNumber,pSubSetting);
927  MoCAInterfaceAssociatedDevice *pIfaceAsstDev = MoCAInterfaceAssociatedDevice::getInstance();
928  memset(&msgData,0,sizeof(msgData));
929  bChanged = false;
930  if(strcasecmp(pSubSetting,"MACAddress")==0)
931  {
932  pIfaceAsstDev->get_MACAddress(&msgData,subInstanceNumber,&bChanged);
933  if(bChanged)
934  {
935  if(mUpdateCallback && (*isNotifyEnabled == 1))
936  {
937  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
938  }
939  }
940  }
941  else if(strcasecmp(pSubSetting,"NodeID")==0)
942  {
943  pIfaceAsstDev->get_NodeID(&msgData,subInstanceNumber,&bChanged);
944  if(bChanged)
945  {
946  if(mUpdateCallback && (*isNotifyEnabled == 1))
947  {
948  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
949  }
950  }
951  }
952  else if(strcasecmp(pSubSetting,"PreferredNC")==0)
953  {
954  pIfaceAsstDev->get_PreferredNC(&msgData,subInstanceNumber,&bChanged);
955  if(bChanged)
956  {
957  if(mUpdateCallback && (*isNotifyEnabled == 1))
958  {
959  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
960  }
961  }
962  }
963  else if(strcasecmp(pSubSetting,"HighestVersion")==0)
964  {
965  pIfaceAsstDev->get_HighestVersion(&msgData,subInstanceNumber,&bChanged);
966  if(bChanged)
967  {
968  if(mUpdateCallback && (*isNotifyEnabled == 1))
969  {
970  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
971  }
972  }
973  }
974  else if(strcasecmp(pSubSetting,"PHYTxRate")==0)
975  {
976  pIfaceAsstDev->get_PHYTxRate(&msgData,subInstanceNumber,&bChanged);
977  if(bChanged)
978  {
979  if(mUpdateCallback && (*isNotifyEnabled == 1))
980  {
981  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
982  }
983  }
984  }
985  else if(strcasecmp(pSubSetting,"PHYRxRate")==0)
986  {
987  pIfaceAsstDev->get_PHYRxRate(&msgData,subInstanceNumber,&bChanged);
988  if(bChanged)
989  {
990  if(mUpdateCallback && (*isNotifyEnabled == 1))
991  {
992  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
993  }
994  }
995  }
996  else if(strcasecmp(pSubSetting,"TxPowerControlReduction")==0)
997  {
998  pIfaceAsstDev->get_TxPowerControlReduction(&msgData,subInstanceNumber,&bChanged);
999  if(bChanged)
1000  {
1001  if(mUpdateCallback && (*isNotifyEnabled == 1))
1002  {
1003  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
1004  }
1005  }
1006  }
1007  else if(strcasecmp(pSubSetting,"RxPowerLevel")==0)
1008  {
1009  pIfaceAsstDev->get_RxPowerLevel(&msgData,subInstanceNumber,&bChanged);
1010  if(bChanged)
1011  {
1012  if(mUpdateCallback && (*isNotifyEnabled == 1))
1013  {
1014  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
1015  }
1016  }
1017  }
1018  else if(strcasecmp(pSubSetting,"TxBcastRate")==0)
1019  {
1020  pIfaceAsstDev->get_TxBcastRate(&msgData,subInstanceNumber,&bChanged);
1021  if(bChanged)
1022  {
1023  if(mUpdateCallback && (*isNotifyEnabled == 1))
1024  {
1025  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
1026  }
1027  }
1028  }
1029  else if(strcasecmp(pSubSetting,"RxBcastPowerLevel")==0)
1030  {
1031  pIfaceAsstDev->get_RxBcastPowerLevel(&msgData,subInstanceNumber,&bChanged);
1032  if(bChanged)
1033  {
1034  if(mUpdateCallback && (*isNotifyEnabled == 1))
1035  {
1036  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
1037  }
1038  }
1039  }
1040  else if(strcasecmp(pSubSetting,"TxPackets")==0)
1041  {
1042  pIfaceAsstDev->get_TxPackets(&msgData,subInstanceNumber,&bChanged);
1043  if(bChanged)
1044  {
1045  if(mUpdateCallback && (*isNotifyEnabled == 1))
1046  {
1047  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
1048  }
1049  }
1050  }
1051  else if(strcasecmp(pSubSetting,"RxPackets")==0)
1052  {
1053  pIfaceAsstDev->get_RxPackets(&msgData,subInstanceNumber,&bChanged);
1054  if(bChanged)
1055  {
1056  if(mUpdateCallback && (*isNotifyEnabled == 1))
1057  {
1058  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
1059  }
1060  }
1061  }
1062  else if(strcasecmp(pSubSetting,"RxErroredAndMissedPackets")==0)
1063  {
1064  pIfaceAsstDev->get_RxErroredAndMissedPackets(&msgData,subInstanceNumber,&bChanged);
1065  if(bChanged)
1066  {
1067  if(mUpdateCallback && (*isNotifyEnabled == 1))
1068  {
1069  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
1070  }
1071  }
1072  }
1073  else if(strcasecmp(pSubSetting,"QAM256Capable")==0)
1074  {
1075  pIfaceAsstDev->get_QAM256Capable(&msgData,subInstanceNumber,&bChanged);
1076  if(bChanged)
1077  {
1078  if(mUpdateCallback && (*isNotifyEnabled == 1))
1079  {
1080  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
1081  }
1082  }
1083  }
1084  else if(strcasecmp(pSubSetting,"PacketAggregationCapability")==0)
1085  {
1086  pIfaceAsstDev->get_PacketAggregationCapability(&msgData,subInstanceNumber,&bChanged);
1087  if(bChanged)
1088  {
1089  if(mUpdateCallback && (*isNotifyEnabled == 1))
1090  {
1091  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
1092  }
1093  }
1094  }
1095  else if(strcasecmp(pSubSetting,"RxSNR")==0)
1096  {
1097  pIfaceAsstDev->get_RxSNR(&msgData,subInstanceNumber,&bChanged);
1098  if(bChanged)
1099  {
1100  if(mUpdateCallback && (*isNotifyEnabled == 1))
1101  {
1102  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
1103  }
1104  }
1105  }
1106  else if(strcasecmp(pSubSetting,"Active")==0)
1107  {
1108  pIfaceAsstDev->get_Active(&msgData,subInstanceNumber,&bChanged);
1109  if(bChanged)
1110  {
1111  if(mUpdateCallback && (*isNotifyEnabled == 1))
1112  {
1113  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
1114  }
1115  }
1116  }
1117 
1118  }
1119  else if(strncmp(buff,"Stats",5)==0)
1120  {
1121  RDK_LOG(RDK_LOG_DEBUG,LOG_TR69HOSTIF,"[%s:%s] Device.MoCA.Interface.%d.Stats matched pSetting is[%s] \n", __FILE__, __FUNCTION__,instanceNumber,pSetting);
1122  MoCAInterfaceStats *pIfaceStats = MoCAInterfaceStats::getInstance();
1123  memset(&msgData,0,sizeof(msgData));
1124  bChanged = false;
1125  if(strcmp(buff,"Stats.BytesSent")==0)
1126  {
1127  pIfaceStats->get_BytesSent(&msgData,&bChanged);
1128  if(bChanged)
1129  {
1130  if(mUpdateCallback && (*isNotifyEnabled == 1))
1131  {
1132  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
1133  }
1134  }
1135  }//BytesSent close
1136  else if (strcmp(buff,"Stats.BytesReceived")==0)
1137  {
1138  pIfaceStats->get_BytesReceived(&msgData,&bChanged);
1139  if(bChanged)
1140  {
1141  if(mUpdateCallback && (*isNotifyEnabled == 1))
1142  {
1143  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
1144  }
1145  }
1146  }//BytesReceived close
1147  else if (strcmp(buff,"Stats.PacketsSent")==0)
1148  {
1149  pIfaceStats->get_PacketsSent(&msgData,&bChanged);
1150  if(bChanged)
1151  {
1152  if(mUpdateCallback && (*isNotifyEnabled == 1))
1153  {
1154  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
1155  }
1156  }
1157  }//PacketsSent close
1158  else if (strcmp(buff,"Stats.PacketsReceived")==0)
1159  {
1160  pIfaceStats->get_PacketsReceived(&msgData,&bChanged);
1161  if(bChanged)
1162  {
1163  if(mUpdateCallback && (*isNotifyEnabled == 1))
1164  {
1165  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
1166  }
1167  }
1168  }//PacketsReceived close
1169  else if (strcmp(buff,"Stats.ErrorsSent")==0)
1170  {
1171  pIfaceStats->get_ErrorsSent(&msgData,&bChanged);
1172  if(bChanged)
1173  {
1174  if(mUpdateCallback && (*isNotifyEnabled == 1))
1175  {
1176  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
1177  }
1178  }
1179  }//ErrorsSent close
1180  else if (strcmp(buff,"Stats.ErrorsReceived")==0)
1181  {
1182  pIfaceStats->get_ErrorsReceived(&msgData,&bChanged);
1183  if(bChanged)
1184  {
1185  if(mUpdateCallback && (*isNotifyEnabled == 1))
1186  {
1187  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
1188  }
1189  }
1190  }//ErrorsReceived close
1191  else if (strcmp(buff,"Stats.UnicastPacketsSent")==0)
1192  {
1193  pIfaceStats->get_UnicastPacketsSent(&msgData,&bChanged);
1194  if(bChanged)
1195  {
1196  if(mUpdateCallback && (*isNotifyEnabled == 1))
1197  {
1198  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
1199  }
1200  }
1201  }//UnicastPacketsSent close
1202  else if (strcmp(buff,"Stats.UnicastPacketsReceived")==0)
1203  {
1204  pIfaceStats->get_UnicastPacketsReceived(&msgData,&bChanged);
1205  if(bChanged)
1206  {
1207  if(mUpdateCallback && (*isNotifyEnabled == 1))
1208  {
1209  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
1210  }
1211  }
1212  }//UnicastPacketsReceived close
1213  else if (strcmp(buff,"Stats.DiscardPacketsSent")==0)
1214  {
1215  pIfaceStats->get_DiscardPacketsSent(&msgData,&bChanged);
1216  if(bChanged)
1217  {
1218  if(mUpdateCallback && (*isNotifyEnabled == 1))
1219  {
1220  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
1221  }
1222  }
1223  }//DiscardPacketsSent close
1224  else if (strcmp(buff,"Stats.DiscardPacketsReceived")==0)
1225  {
1226  pIfaceStats->get_DiscardPacketsReceived(&msgData,&bChanged);
1227  if(bChanged)
1228  {
1229  if(mUpdateCallback && (*isNotifyEnabled == 1))
1230  {
1231  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
1232  }
1233  }
1234  }//DiscardPacketsReceived close
1235  else if (strcmp(buff,"Stats.MulticastPacketsSent")==0)
1236  {
1237  pIfaceStats->get_MulticastPacketsSent(&msgData,&bChanged);
1238  if(bChanged)
1239  {
1240  if(mUpdateCallback && (*isNotifyEnabled == 1))
1241  {
1242  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
1243  }
1244  }
1245  }//MulticastPacketsSent close
1246  else if (strcmp(buff,"Stats.MulticastPacketsReceived")==0)
1247  {
1248  pIfaceStats->get_MulticastPacketsReceived(&msgData,&bChanged);
1249  if(bChanged)
1250  {
1251  if(mUpdateCallback && (*isNotifyEnabled == 1))
1252  {
1253  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
1254  }
1255  }
1256  }//MulticastPacketsReceived close
1257  else if (strcmp(buff,"Stats.BroadcastPacketsSent")==0)
1258  {
1259  pIfaceStats->get_BroadcastPacketsSent(&msgData,&bChanged);
1260  if(bChanged)
1261  {
1262  if(mUpdateCallback && (*isNotifyEnabled == 1))
1263  {
1264  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
1265  }
1266  }
1267  }//BroadcastPacketsSent close
1268  else if (strcmp(buff,"Stats.BroadcastPacketsReceived")==0)
1269  {
1270  pIfaceStats->get_BroadcastPacketsReceived(&msgData,&bChanged);
1271  if(bChanged)
1272  {
1273  if(mUpdateCallback && (*isNotifyEnabled == 1))
1274  {
1275  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
1276  }
1277  }
1278  }//BroadcastPacketsReceived close
1279  else if (strcmp(buff,"Stats.UnknownProtoPacketsReceived")==0)
1280  {
1281  pIfaceStats->get_UnknownProtoPacketsReceived(&msgData,&bChanged);
1282  if(bChanged)
1283  {
1284  if(mUpdateCallback && (*isNotifyEnabled == 1))
1285  {
1286  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
1287  }
1288  }
1289  }//UnknownProtoPacketsReceived close
1290  }//Stats close
1291  else if(strncmp(buff,"QoS",3)==0)
1292  {
1293  RDK_LOG(RDK_LOG_DEBUG,LOG_TR69HOSTIF,"[%s:%s] Device.MoCA.Interface.%d.QoS matched n pSetting is [%s] \n", __FILE__, __FUNCTION__,instanceNumber,pSetting);
1294  MoCAInterfaceQoS *pIfaceQoS = MoCAInterfaceQoS::getInstance();
1295  memset(&msgData,0,sizeof(msgData));
1296  bChanged = false;
1297  if(strcmp(buff,"QoS.EgressNumFlows")==0)
1298  {
1299  pIfaceQoS->get_EgressNumFlows(&msgData,&bChanged);
1300  if(bChanged)
1301  {
1302  if(mUpdateCallback && (*isNotifyEnabled == 1))
1303  {
1304  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
1305  }
1306  }
1307  }//QoS.EgressNumFlows Close
1308  else if (strcmp(buff,"QoS.IngressNumFlows")==0)
1309  {
1310  pIfaceQoS->get_IngressNumFlows(&msgData,&bChanged);
1311  if(bChanged)
1312  {
1313  if(mUpdateCallback && (*isNotifyEnabled == 1))
1314  {
1315  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
1316  }
1317  }
1318  }//QoS.IngressNumFlows close
1319  else if (strcmp(buff,"QoS.FlowStatsNumberOfEntries")==0)
1320  {
1321  pIfaceQoS->get_FlowStatsNumberOfEntries(&msgData,&bChanged);
1322  if(bChanged)
1323  {
1324  if(mUpdateCallback && (*isNotifyEnabled == 1))
1325  {
1326  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
1327  }
1328  }
1329  }//QoS.FlowStatsNumberOfEntries close
1330  }//strncmp Qos close
1331  else
1332  {
1333  memset(&msgData,0,sizeof(msgData));
1334  bChanged = false;
1335  if(strcmp(pSetting,"Enable")==0)
1336  {
1337  mocaIface->get_Enable(&msgData,&bChanged);
1338  if(bChanged)
1339  {
1340  if(mUpdateCallback && (*isNotifyEnabled == 1))
1341  {
1342  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
1343  }
1344  }
1345  }//Enable close
1346  else if(strcmp(pSetting,"Status")==0)
1347  {
1348  mocaIface->get_Status(&msgData,&bChanged);
1349  if(bChanged)
1350  {
1351  if(mUpdateCallback && (*isNotifyEnabled == 1))
1352  {
1353  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
1354  }
1355  }
1356  }//Status close
1357  else if(strcmp(pSetting,"Alias")==0)
1358  {
1359  mocaIface->get_Alias(&msgData,&bChanged);
1360  if(bChanged)
1361  {
1362  if(mUpdateCallback && (*isNotifyEnabled == 1))
1363  {
1364  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
1365  }
1366  }
1367  }//Alias close
1368  else if(strcmp(pSetting,"Name")==0)
1369  {
1370  mocaIface->get_Name(&msgData,&bChanged);
1371  if(bChanged)
1372  {
1373  if(mUpdateCallback && (*isNotifyEnabled == 1))
1374  {
1375  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
1376  }
1377  }
1378  }//Name close
1379  else if(strcmp(pSetting,"LastChange")==0)
1380  {
1381  mocaIface->get_LastChange(&msgData,&bChanged);
1382  if(bChanged)
1383  {
1384  if(mUpdateCallback && (*isNotifyEnabled == 1))
1385  {
1386  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
1387  }
1388  }
1389  }//LastChange close
1390  else if(strcmp(pSetting,"LowerLayers")==0)
1391  {
1392  mocaIface->get_LowerLayers(&msgData,&bChanged);
1393  if(bChanged)
1394  {
1395  if(mUpdateCallback && (*isNotifyEnabled == 1))
1396  {
1397  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
1398  }
1399  }
1400  }//LowerLayers close
1401  else if(strcmp(pSetting,"Upstream")==0)
1402  {
1403  mocaIface->get_Upstream(&msgData,&bChanged);
1404  if(bChanged)
1405  {
1406  if(mUpdateCallback && (*isNotifyEnabled == 1))
1407  {
1408  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
1409  }
1410  }
1411  }//Upstream close
1412  else if(strcmp(pSetting,"MACAddress")==0)
1413  {
1414  mocaIface->get_MACAddress(&msgData,&bChanged);
1415  if(bChanged)
1416  {
1417  if(mUpdateCallback && (*isNotifyEnabled == 1))
1418  {
1419  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
1420  }
1421  }
1422  }//MACAddress close
1423  else if(strcmp(pSetting,"FirmwareVersion")==0)
1424  {
1425  mocaIface->get_FirmwareVersion(&msgData,&bChanged);
1426  if(bChanged)
1427  {
1428  if(mUpdateCallback && (*isNotifyEnabled == 1))
1429  {
1430  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
1431  }
1432  }
1433  }//FirmwareVersion close
1434  else if(strcmp(pSetting,"MaxBitRate")==0)
1435  {
1436  mocaIface->get_MaxBitRate(&msgData,&bChanged);
1437  if(bChanged)
1438  {
1439  if(mUpdateCallback && (*isNotifyEnabled == 1))
1440  {
1441  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
1442  }
1443  }
1444  }//MaxBitRate close
1445  else if(strcmp(pSetting,"MaxIngressBW")==0)
1446  {
1447  mocaIface->get_MaxIngressBW(&msgData,&bChanged);
1448  if(bChanged)
1449  {
1450  if(mUpdateCallback && (*isNotifyEnabled == 1))
1451  {
1452  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
1453  }
1454  }
1455  }//MaxIngressBW close
1456  else if(strcmp(pSetting,"MaxEgressBW")==0)
1457  {
1458  mocaIface->get_MaxEgressBW(&msgData,&bChanged);
1459  if(bChanged)
1460  {
1461  if(mUpdateCallback && (*isNotifyEnabled == 1))
1462  {
1463  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
1464  }
1465  }
1466  }//MaxEgressBW close
1467  else if(strcmp(pSetting,"HighestVersion")==0)
1468  {
1469  mocaIface->get_HighestVersion(&msgData,&bChanged);
1470  if(bChanged)
1471  {
1472  if(mUpdateCallback && (*isNotifyEnabled == 1))
1473  {
1474  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
1475  }
1476  }
1477  }//HighestVersion close
1478  else if(strcmp(pSetting,"CurrentVersion")==0)
1479  {
1480  mocaIface->get_CurrentVersion(&msgData,&bChanged);
1481  if(bChanged)
1482  {
1483  if(mUpdateCallback && (*isNotifyEnabled == 1))
1484  {
1485  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
1486  }
1487  }
1488  }//CurrentVersion close
1489  else if(strcmp(pSetting,"NetworkCoordinator")==0)
1490  {
1491  mocaIface->get_NetworkCoordinator(&msgData,&bChanged);
1492  if(bChanged)
1493  {
1494  if(mUpdateCallback && (*isNotifyEnabled == 1))
1495  {
1496  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
1497  }
1498  }
1499  }//NetworkCoordinator close
1500  else if(strcmp(pSetting,"NodeID")==0)
1501  {
1502  mocaIface->get_NodeID(&msgData,&bChanged);
1503  if(bChanged)
1504  {
1505  if(mUpdateCallback && (*isNotifyEnabled == 1))
1506  {
1507  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
1508  }
1509  }
1510  }//NodeID close
1511  else if(strcmp(pSetting,"MaxNodes")==0)
1512  {
1513  mocaIface->get_MaxNodes(&msgData,&bChanged);
1514  if(bChanged)
1515  {
1516  if(mUpdateCallback && (*isNotifyEnabled == 1))
1517  {
1518  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
1519  }
1520  }
1521  }//MaxNodes close
1522  else if(strcmp(pSetting,"PreferredNC")==0)
1523  {
1524  mocaIface->get_PreferredNC(&msgData,&bChanged);
1525  if(bChanged)
1526  {
1527  if(mUpdateCallback && (*isNotifyEnabled == 1))
1528  {
1529  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
1530  }
1531  }
1532  }//PreferredNC close
1533  else if(strcmp(pSetting,"BackupNC")==0)
1534  {
1535  mocaIface->get_BackupNC(&msgData,&bChanged);
1536  if(bChanged)
1537  {
1538  if(mUpdateCallback && (*isNotifyEnabled == 1))
1539  {
1540  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
1541  }
1542  }
1543  }//BackupNC close
1544  else if(strcmp(pSetting,"PrivacyEnabledSetting")==0)
1545  {
1546  mocaIface->get_PrivacyEnabledSetting(&msgData,&bChanged);
1547  if(bChanged)
1548  {
1549  if(mUpdateCallback && (*isNotifyEnabled == 1))
1550  {
1551  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
1552  }
1553  }
1554  }//PrivacyEnabledSetting close
1555  else if(strcmp(pSetting,"PrivacyEnabled")==0)
1556  {
1557  mocaIface->get_PrivacyEnabled(&msgData,&bChanged);
1558  if(bChanged)
1559  {
1560  if(mUpdateCallback && (*isNotifyEnabled == 1))
1561  {
1562  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
1563  }
1564  }
1565  }//PrivacyEnabled close
1566  else if(strcmp(pSetting,"FreqCapabilityMask")==0)
1567  {
1568  mocaIface->get_FreqCapabilityMask(&msgData,&bChanged);
1569  if(bChanged)
1570  {
1571  //sprintf(tmp_buff,"Device.MoCA.Interface.%d.%s",index,"FreqCapabilityMask");
1572  if(mUpdateCallback && (*isNotifyEnabled == 1))
1573  {
1574  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
1575  }
1576  }
1577  }//FreqCapabilityMask close
1578 
1579  else if(strcmp(pSetting,"FreqCurrentMaskSetting")==0)
1580  {
1581  mocaIface->get_FreqCurrentMaskSetting(&msgData,&bChanged);
1582  if(bChanged)
1583  {
1584  if(mUpdateCallback && (*isNotifyEnabled == 1))
1585  {
1586  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
1587  }
1588  }
1589  }//FreqCurrentMaskSetting close
1590  else if(strcmp(pSetting,"FreqCurrentMask")==0)
1591  {
1592  mocaIface->get_FreqCurrentMask(&msgData,&bChanged);
1593  if(bChanged)
1594  {
1595  if(mUpdateCallback && (*isNotifyEnabled == 1))
1596  {
1597  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
1598  }
1599  }
1600  }//FreqCurrentMask close
1601  else if(strcmp(pSetting,"CurrentOperFreq")==0)
1602  {
1603  mocaIface->get_CurrentOperFreq(&msgData,&bChanged);
1604  if(bChanged)
1605  {
1606  if(mUpdateCallback && (*isNotifyEnabled == 1))
1607  {
1608  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
1609  }
1610  }
1611  }//CurrentOperFreq close
1612  else if(strcmp(pSetting,"LastOperFreq")==0)
1613  {
1614  mocaIface->get_LastOperFreq(&msgData,&bChanged);
1615  if(bChanged)
1616  {
1617  if(mUpdateCallback && (*isNotifyEnabled == 1))
1618  {
1619  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
1620  }
1621  }
1622  }//LastOperFreq close
1623  else if(strcmp(pSetting,"KeyPassphrase")==0)
1624  {
1625  mocaIface->get_KeyPassphrase(&msgData,&bChanged);
1626  if(bChanged)
1627  {
1628  if(mUpdateCallback && (*isNotifyEnabled == 1))
1629  {
1630  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
1631  }
1632  }
1633  }//KeyPassphrase close
1634  else if(strcmp(pSetting,"TxPowerLimit")==0)
1635  {
1636  mocaIface->get_TxPowerLimit(&msgData,&bChanged);
1637  if(bChanged)
1638  {
1639  if(mUpdateCallback && (*isNotifyEnabled == 1))
1640  {
1641  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
1642  }
1643  }
1644  }//TxPowerLimit close
1645  else if(strcmp(pSetting,"PowerCntlPhyTarget")==0)
1646  {
1647  mocaIface->get_PowerCntlPhyTarget(&msgData,&bChanged);
1648  if(bChanged)
1649  {
1650  if(mUpdateCallback && (*isNotifyEnabled == 1))
1651  {
1652  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
1653  }
1654  }
1655  }//PowerCntlPhyTarget close
1656  else if(strcmp(pSetting,"BeaconPowerLimit")==0)
1657  {
1658  mocaIface->get_BeaconPowerLimit(&msgData,&bChanged);
1659  if(bChanged)
1660  {
1661  if(mUpdateCallback && (*isNotifyEnabled == 1))
1662  {
1663  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
1664  }
1665  }
1666  }//BeaconPowerLimit close
1667  else if(strcmp(pSetting,"NetworkTabooMask")==0)
1668  {
1669  mocaIface->get_NetworkTabooMask(&msgData,&bChanged);
1670  if(bChanged)
1671  {
1672  if(mUpdateCallback && (*isNotifyEnabled == 1))
1673  {
1674  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
1675  }
1676  }
1677  }//NetworkTabooMask close
1678  else if(strcmp(pSetting,"NodeTabooMask")==0)
1679  {
1680  mocaIface->get_NodeTabooMask(&msgData,&bChanged);
1681  if(bChanged)
1682  {
1683  if(mUpdateCallback && (*isNotifyEnabled == 1))
1684  {
1685  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
1686  }
1687  }
1688  }//NodeTabooMask close
1689  else if(strcmp(pSetting,"TxBcastRate")==0)
1690  {
1691  mocaIface->get_TxBcastRate(&msgData,&bChanged);
1692  if(bChanged)
1693  {
1694  if(mUpdateCallback && (*isNotifyEnabled == 1))
1695  {
1696  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
1697  }
1698  }
1699  }//TxBcastRate close
1700  else if(strcmp(pSetting,"TxBcastPowerReduction")==0)
1701  {
1702  mocaIface->get_TxBcastPowerReduction(&msgData,&bChanged);
1703  if(bChanged)
1704  {
1705  if(mUpdateCallback && (*isNotifyEnabled == 1))
1706  {
1707  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
1708  }
1709  }
1710  }//TxBcastPowerReduction close
1711  else if(strcmp(pSetting,"QAM256Capable")==0)
1712  {
1713  mocaIface->get_QAM256Capable(&msgData,&bChanged);
1714  if(bChanged)
1715  {
1716  if(mUpdateCallback && (*isNotifyEnabled == 1))
1717  {
1718  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
1719  }
1720  }
1721  }//QAM256Capable close
1722  else if(strcmp(pSetting,"PacketAggregationCapability")==0)
1723  {
1724  mocaIface->get_PacketAggregationCapability(&msgData,&bChanged);
1725  if(bChanged)
1726  {
1727  if(mUpdateCallback && (*isNotifyEnabled == 1))
1728  {
1729  mUpdateCallback(IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED,(const char*)paramName, msgData.paramValue, msgData.paramtype);
1730  }
1731  }
1732  }//PacketAggregationCapability close
1733 
1734  }
1735  }//if mocaIface close
1736  else
1737  {
1738  RDK_LOG(RDK_LOG_INFO,LOG_TR69HOSTIF,"[%s:%s] Device.MoCA.Interface couldn't get mocaIface instance else of (mocaIface)\n",__FILE__, __FUNCTION__);
1739 
1740  } // else mocaIface close
1741  }//Device.MoCA.Interface close
1742  else
1743  {
1744  RDK_LOG(RDK_LOG_INFO,LOG_TR69HOSTIF,"[%s:%s] Device.MoCA.Interface is NOT MATCHED \n",__FILE__, __FUNCTION__);
1745  }
1746  }//while close
1747  }//NULL != notifyhash close
1748  else
1749  {
1750  RDK_LOG(RDK_LOG_INFO,LOG_TR69HOSTIF,"[%s:%s] Couldn't get #####notifyhash###### instance \n", __FILE__, __FUNCTION__);
1751 
1752  }
1753 #endif /* HAVE_VALUE_CHANGE_EVENT */
1754  MoCAInterface::releaseLock();
1755 }
1756 #endif /* USE_MoCA_PROFILE */
1757 
1758 
1759 /** @} */
1760 /** @} */
MoCAInterfaceStats::get_ErrorsReceived
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...
Definition: Device_MoCA_Interface_Stats.cpp:172
MoCAInterface::set_PowerCntlPhyTarget
int set_PowerCntlPhyTarget(HOSTIF_MsgData_t *)
Set the target PHY rate in Mbps for the power control algorithm.
Definition: Device_MoCA_Interface.cpp:1365
MoCAInterface::set_LowerLayers
int set_LowerLayers(HOSTIF_MsgData_t *)
Set the MoCA Interface LowerLayers list.
Definition: Device_MoCA_Interface.cpp:1247
MoCAInterfaceAssociatedDevice::get_MACAddress
int get_MACAddress(HOSTIF_MsgData_t *stMsgData, unsigned int associatedDeviceNum, bool *pChanged=NULL)
Get the MAC address of the associated device's MoCA interface.
Definition: Device_MoCA_Interface_AssociatedDevice.cpp:90
MoCAInterface::get_Name
int get_Name(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Get the textual name of the interface as assigned by the CPE.
Definition: Device_MoCA_Interface.cpp:355
MoCAInterface
Definition: Device_MoCA_Interface.h:114
MoCAInterfaceStats::get_DiscardPacketsSent
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 ...
Definition: Device_MoCA_Interface_Stats.cpp:221
IARM_BUS_TR69HOSTIFMGR_EVENT_REMOVE
@ IARM_BUS_TR69HOSTIFMGR_EVENT_REMOVE
Definition: hostIf_tr69ReqHandler.h:188
_HostIf_MsgData_t::instanceNum
short instanceNum
Definition: hostIf_tr69ReqHandler.h:176
MoCAInterface::set_PreferredNC
int set_PreferredNC(HOSTIF_MsgData_t *)
Set the interface is a preferred Network Coordinator (NC).
Definition: Device_MoCA_Interface.cpp:1255
MoCAInterface::get_NodeID
int get_NodeID(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Get the Node ID of the MoCA interface.
Definition: Device_MoCA_Interface.cpp:600
MoCAInterface::get_BeaconPowerLimit
int get_BeaconPowerLimit(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Get the Beacon Transmit Power attenuation in dB relative to the maximum transmit power.
Definition: Device_MoCA_Interface.cpp:892
X_RDKCENTRAL_COM_MeshTable::get_MeshTxNodeId
int get_MeshTxNodeId(HOSTIF_MsgData_t *stMsgData, unsigned int associatedDeviceNum, bool *pChanged=NULL)
Get the node ID of the transmit MoCA node from MoCA Mesh table of MoCA connected device.
Definition: Device_MoCA_Interface_X_RDKCENTRAL_COM_MeshTable.cpp:155
MoCAInterfaceAssociatedDevice::get_PHYRxRate
int get_PHYRxRate(HOSTIF_MsgData_t *stMsgData, unsigned int associatedDeviceNum, bool *pChanged=NULL)
Get the PHY receive rate (in Mbps) from this remote device.
Definition: Device_MoCA_Interface_AssociatedDevice.cpp:212
MoCAInterface::get_NodeTabooMask
int get_NodeTabooMask(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Get the hexadecimal encoded 64-bit mask of supported frequencies. This is the bit map of the spectrum...
Definition: Device_MoCA_Interface.cpp:940
MoCAInterfaceAssociatedDevice::get_TxPowerControlReduction
int get_TxPowerControlReduction(HOSTIF_MsgData_t *stMsgData, unsigned int associatedDeviceNum, bool *pChanged=NULL)
Get the reduction in transmitter level (in dB) due to power control.
Definition: Device_MoCA_Interface_AssociatedDevice.cpp:235
MoCAInterface::get_TxPowerLimit
int get_TxPowerLimit(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Get the transmit Power attenuation in dB relative to the maximum transmit power.
Definition: Device_MoCA_Interface.cpp:844
MoCAInterfaceQoSFlowStats::get_MaxRate
int get_MaxRate(HOSTIF_MsgData_t *stMsgData, unsigned int entryNum, bool *pChanged=NULL)
Get the maximum required rate in Kbps.
Definition: Device_MoCA_Interface_QoS_FlowStats.cpp:76
MoCAInterface::get_Upstream
int get_Upstream(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Check whether the interface points towards the Internet (true) or towards End Devices (false).
Definition: Device_MoCA_Interface.cpp:405
MoCAInterface::set_Enable
int set_Enable(HOSTIF_MsgData_t *)
Enables or disables the interface.
Definition: Device_MoCA_Interface.cpp:1207
MoCAInterface::set_Alias
int set_Alias(HOSTIF_MsgData_t *)
Set the Alias-based addressing for MoCA interface.
Definition: Device_MoCA_Interface.cpp:1237
MoCAInterfaceQoSFlowStats::get_FlowID
int get_FlowID(HOSTIF_MsgData_t *stMsgData, unsigned int entryNum, bool *pChanged=NULL)
Get the flow ID used to identify a flow in the network.
Definition: Device_MoCA_Interface_QoS_FlowStats.cpp:59
MoCAInterface::get_TxBcastRate
int get_TxBcastRate(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Get the broadcast PHY transmit rate in Mbps for this interface.
Definition: Device_MoCA_Interface.cpp:962
IARM_BUS_TR69HOSTIFMGR_EVENT_ADD
@ IARM_BUS_TR69HOSTIFMGR_EVENT_ADD
Definition: hostIf_tr69ReqHandler.h:187
MoCAInterfaceQoS::get_FlowStatsNumberOfEntries
int get_FlowStatsNumberOfEntries(HOSTIF_MsgData_t *stMsgData, bool *pChanged=NULL)
Get the number of entries in the FlowStats table.
Definition: Device_MoCA_Interface_QoS.cpp:70
MoCAClientReqHandler::handleSetMsg
virtual int handleSetMsg(HOSTIF_MsgData_t *stMsgData)
This is a pure virtual function used to handle the set message request. Currently not implemented.
MoCAInterfaceQoS::get_EgressNumFlows
int get_EgressNumFlows(HOSTIF_MsgData_t *stMsgData, bool *pChanged=NULL)
Get the number of QoS flows that this interface has from the MoCA network.
Definition: Device_MoCA_Interface_QoS.cpp:61
X_RDKCENTRAL_COM_MeshTable::get_MeshRxNodeId
int get_MeshRxNodeId(HOSTIF_MsgData_t *stMsgData, unsigned int associatedDeviceNum, bool *pChanged=NULL)
Get the node ID of the receive MoCA node from MoCA mesh table of MoCA connected device.
Definition: Device_MoCA_Interface_X_RDKCENTRAL_COM_MeshTable.cpp:178
MoCAInterfaceAssociatedDevice::get_TxBcastRate
int get_TxBcastRate(HOSTIF_MsgData_t *stMsgData, unsigned int associatedDeviceNum, bool *pChanged=NULL)
Get the broadcast PHY transmit rate (in Mbps) from this remote device.
Definition: Device_MoCA_Interface_AssociatedDevice.cpp:282
MoCAInterfaceAssociatedDevice::get_RxPowerLevel
int get_RxPowerLevel(HOSTIF_MsgData_t *stMsgData, unsigned int associatedDeviceNum, bool *pChanged=NULL)
Get the power level (in dBm) received at the MoCA interface from this remote device.
Definition: Device_MoCA_Interface_AssociatedDevice.cpp:259
MoCAClientReqHandler::unInit
virtual bool unInit()
This is a pure virtual function used for un initialization. Currently not implemented.
MoCAInterfaceAssociatedDevice::get_RxErroredAndMissedPackets
int get_RxErroredAndMissedPackets(HOSTIF_MsgData_t *stMsgData, unsigned int associatedDeviceNum, bool *pChanged=NULL)
Get the number of errored and missed packets received from this remote device.
Definition: Device_MoCA_Interface_AssociatedDevice.cpp:376
MoCAInterfaceStats::get_BytesReceived
int get_BytesReceived(HOSTIF_MsgData_t *stMsgData, bool *pChanged=NULL)
Get the total number of bytes received on the MoCA interface, including framing characters.
Definition: Device_MoCA_Interface_Stats.cpp:106
MoCAInterface::get_X_RDKCENTRAL_COM_SecondaryChannelFreq
int get_X_RDKCENTRAL_COM_SecondaryChannelFreq(HOSTIF_MsgData_t *)
Get the MoCA status for BootStatus.
Definition: Device_MoCA_Interface.cpp:1084
MoCAInterfaceAssociatedDevice
Definition: Device_MoCA_Interface_AssociatedDevice.h:98
_HostIf_MsgData_t
Definition: hostIf_tr69ReqHandler.h:170
MoCAInterfaceAssociatedDevice::get_PreferredNC
int get_PreferredNC(HOSTIF_MsgData_t *stMsgData, unsigned int associatedDeviceNum, bool *pChanged=NULL)
Check whether the MoCA remote device is a preferred Network Coordinator (NC).
Definition: Device_MoCA_Interface_AssociatedDevice.cpp:140
MoCAInterface::get_MACAddress
int get_MACAddress(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Get the MAC Address of the interface.
Definition: Device_MoCA_Interface.cpp:423
MoCAInterface::get_TxBcastPowerReduction
int get_TxBcastPowerReduction(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Get the transmit Power attenuation in dB relative to the maximum transmit power for broadcast transmi...
Definition: Device_MoCA_Interface.cpp:981
MoCAInterfaceStats::get_PacketsSent
int get_PacketsSent(HOSTIF_MsgData_t *stMsgData, bool *pChanged=NULL)
Get the total number of packets transmitted out of the MoCA interface.
Definition: Device_MoCA_Interface_Stats.cpp:123
Device_MoCA_Interface_AssociatedDevice.h
MoCAClientReqHandler::handleGetMsg
virtual int handleGetMsg(HOSTIF_MsgData_t *stMsgData)
This is a pure virtual function used to handle the get message request. Currently not implemented.
MoCAInterface::get_NetworkTabooMask
int get_NetworkTabooMask(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Get the hexadecimal encoded 64-bit mask of MoCA taboo channels identified for the home network....
Definition: Device_MoCA_Interface.cpp:918
MoCAInterface::get_FreqCapabilityMask
int get_FreqCapabilityMask(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Get the hexadecimal encoded 64-bit mask of supported frequencies. This is the bit map of the spectrum...
Definition: Device_MoCA_Interface.cpp:714
MoCAInterface::get_KeyPassphrase
int get_KeyPassphrase(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Get the MoCA Password. The value consists of numeric characters (0-9).
Definition: Device_MoCA_Interface.cpp:835
MoCAInterfaceAssociatedDevice::get_HighestVersion
int get_HighestVersion(HOSTIF_MsgData_t *stMsgData, unsigned int associatedDeviceNum, bool *pChanged=NULL)
Get the identifies the highest MoCA version that this remote device supports.
Definition: Device_MoCA_Interface_AssociatedDevice.cpp:165
MoCAInterfaceAssociatedDevice::get_PHYTxRate
int get_PHYTxRate(HOSTIF_MsgData_t *stMsgData, unsigned int associatedDeviceNum, bool *pChanged=NULL)
Get the PHY transmit rate (in Mbps) to this remote device.
Definition: Device_MoCA_Interface_AssociatedDevice.cpp:189
MoCAInterface::get_PowerCntlPhyTarget
int get_PowerCntlPhyTarget(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Get the target PHY rate in Mbps for the power control algorithm.
Definition: Device_MoCA_Interface.cpp:869
Device_MoCA_Interface_X_RDKCENTRAL_COM_MeshTable.h
hostIf_main.h
hostIf_main API.
MoCAInterfaceStats::get_UnknownProtoPacketsReceived
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...
Definition: Device_MoCA_Interface_Stats.cpp:319
MoCAInterface::get_InterfaceNumberOfEntries
static int get_InterfaceNumberOfEntries(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Get the number of entries in the MoCA Interface table.
Definition: Device_MoCA_Interface.cpp:278
MoCAInterface::get_PacketAggregationCapability
int get_PacketAggregationCapability(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Get the packet aggregation capability supported by the interface. Standard values are 0 (no support),...
Definition: Device_MoCA_Interface.cpp:1023
MoCAInterface::get_PrivacyEnabled
int get_PrivacyEnabled(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Check whether link-layer security is enabled or disabled.
Definition: Device_MoCA_Interface.cpp:693
MoCAInterfaceStats::get_UnicastPacketsSent
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...
Definition: Device_MoCA_Interface_Stats.cpp:189
MoCAInterface::get_X_RDKCENTRAL_COM_MeshTableNumberOfEntries
int get_X_RDKCENTRAL_COM_MeshTableNumberOfEntries(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Get the number of entries in the X_RDKCENTRAL_COM_MeshTable table of a MoCA Interface.
Definition: Device_MoCA_Interface.cpp:1053
MoCAInterfaceQoSFlowStats::get_FlowPackets
int get_FlowPackets(HOSTIF_MsgData_t *stMsgData, unsigned int entryNum, bool *pChanged=NULL)
Get the number of packets transmitted for this flow.
Definition: Device_MoCA_Interface_QoS_FlowStats.cpp:105
MoCAInterfaceAssociatedDevice::get_TxPackets
int get_TxPackets(HOSTIF_MsgData_t *stMsgData, unsigned int associatedDeviceNum, bool *pChanged=NULL)
Get the number of packets transmitted to this remote device (Note: Includes Broadcast,...
Definition: Device_MoCA_Interface_AssociatedDevice.cpp:329
Device_MoCA_Interface_QoS_FlowStats.h
MoCAInterfaceAssociatedDevice::get_PacketAggregationCapability
int get_PacketAggregationCapability(HOSTIF_MsgData_t *stMsgData, unsigned int associatedDeviceNum, bool *pChanged=NULL)
Get the packet aggregation capability supported by the remote device. Standard values are 0 (no suppo...
Definition: Device_MoCA_Interface_AssociatedDevice.cpp:424
MoCAInterfaceStats
Definition: Device_MoCA_Interface_Stats.h:109
MoCAInterface::get_LowerLayers
int get_LowerLayers(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Get the path name of the MoCA interface object.
Definition: Device_MoCA_Interface.cpp:398
MoCAInterface::get_HighestVersion
int get_HighestVersion(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Get the identifies the highest MoCA version that this interface supports.
Definition: Device_MoCA_Interface.cpp:534
_HostIf_MsgData_t::paramtype
HostIf_ParamType_t paramtype
Definition: hostIf_tr69ReqHandler.h:177
MoCAInterface::get_BackupNC
int get_BackupNC(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Get the Node ID of the backup Network Coordinator node.
Definition: Device_MoCA_Interface.cpp:652
MoCAInterface::get_NetworkCoordinator
int get_NetworkCoordinator(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Get the Node ID of the current Network Coordinator (NC) for the MoCA network.
Definition: Device_MoCA_Interface.cpp:578
MoCAInterfaceAssociatedDevice::get_QAM256Capable
int get_QAM256Capable(HOSTIF_MsgData_t *stMsgData, unsigned int associatedDeviceNum, bool *pChanged=NULL)
Check whether this remote device supports the 256 QAM feature.
Definition: Device_MoCA_Interface_AssociatedDevice.cpp:400
MoCAInterface::get_AssociatedDeviceNumberOfEntries
int get_AssociatedDeviceNumberOfEntries(HOSTIF_MsgData_t *, bool *pChanged=NULL)
The number of entries in the AssociatedDevice table.
Definition: Device_MoCA_Interface.cpp:1043
RDK_LOG
#define RDK_LOG
Definition: rdk_debug.h:258
_HostIf_MsgData_t::faultCode
faultCode_t faultCode
Definition: hostIf_tr69ReqHandler.h:179
MoCAInterfaceStats::get_BytesSent
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.
Definition: Device_MoCA_Interface_Stats.cpp:90
MoCAInterfaceStats::get_BroadcastPacketsSent
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...
Definition: Device_MoCA_Interface_Stats.cpp:287
MoCAInterfaceQoS::get_IngressNumFlows
int get_IngressNumFlows(HOSTIF_MsgData_t *stMsgData, bool *pChanged=NULL)
Get the number of QoS flows that this interface has onto the MoCA network.
Definition: Device_MoCA_Interface_QoS.cpp:65
X_RDKCENTRAL_COM_MeshTable
Definition: Device_MoCA_Interface_X_RDKCENTRAL_COM_MeshTable.h:89
_HostIf_MsgData_t::paramName
char paramName[(4 *1024)]
Definition: hostIf_tr69ReqHandler.h:171
MoCAInterfaceQoS
Definition: Device_MoCA_Interface_QoS.h:91
MoCAInterfaceStats::get_PacketsReceived
int get_PacketsReceived(HOSTIF_MsgData_t *stMsgData, bool *pChanged=NULL)
Get the total number of packets received on the MoCA interface.
Definition: Device_MoCA_Interface_Stats.cpp:139
Device_MoCA_Interface.h
MoCAInterface::get_MaxBitRate
int get_MaxBitRate(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Get the maximum MoCA PHY bit rate (expressed in Mbps).
Definition: Device_MoCA_Interface.cpp:471
MoCAInterfaceAssociatedDevice::get_RxPackets
int get_RxPackets(HOSTIF_MsgData_t *stMsgData, unsigned int associatedDeviceNum, bool *pChanged=NULL)
Get the number of packets received from this remote device (Note: Includes Broadcast,...
Definition: Device_MoCA_Interface_AssociatedDevice.cpp:353
MoCAInterfaceStats::get_UnicastPacketsReceived
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,...
Definition: Device_MoCA_Interface_Stats.cpp:205
MoCAInterface::get_FirmwareVersion
int get_FirmwareVersion(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Get the MoCA interface's firmware version.
Definition: Device_MoCA_Interface.cpp:448
MoCAClientReqHandler
This class provides the interface for getting MoCA client request handler information.
Definition: hostIf_MoCAClient_ReqHandler.h:55
MoCAInterface::get_QAM256Capable
int get_QAM256Capable(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Check whether this interface supports the 256 QAM feature.
Definition: Device_MoCA_Interface.cpp:1002
hostIf_MoCAClient_ReqHandler.h
The header file provides HostIf MoCA client request handler information APIs.
MoCAInterfaceStats::get_ErrorsSent
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.
Definition: Device_MoCA_Interface_Stats.cpp:155
MoCAInterfaceQoSFlowStats::get_LeaseTimeLeft
int get_LeaseTimeLeft(HOSTIF_MsgData_t *stMsgData, unsigned int entryNum, bool *pChanged=NULL)
Get the Flow lease time remaining (expressed in seconds).
Definition: Device_MoCA_Interface_QoS_FlowStats.cpp:98
MoCAInterfaceStats::get_BroadcastPacketsReceived
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,...
Definition: Device_MoCA_Interface_Stats.cpp:303
_HostIf_MsgData_t::paramValue
char paramValue[(4 *1024)]
Definition: hostIf_tr69ReqHandler.h:172
MoCAInterface::get_X_RDKCENTRAL_COM_TurboMode
int get_X_RDKCENTRAL_COM_TurboMode(HOSTIF_MsgData_t *)
Get the MoCA status for BootStatus.
Definition: Device_MoCA_Interface.cpp:1125
MoCAInterface::get_CurrentOperFreq
int get_CurrentOperFreq(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Get the current Operational Frequency. The RF frequency in Hz to which the MoCA interface is currentl...
Definition: Device_MoCA_Interface.cpp:791
MoCAInterface::get_PrivacyEnabledSetting
int get_PrivacyEnabledSetting(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Get the configured privacy mode. This indicates whether link-layer security is enabled (true) or disa...
Definition: Device_MoCA_Interface.cpp:673
MoCAInterface::set_FreqCurrentMaskSetting
int set_FreqCurrentMaskSetting(HOSTIF_MsgData_t *)
Set the configured hexadecimal encoded 64-bit mask of enabled frequencies for network admission.
Definition: Device_MoCA_Interface.cpp:1302
MoCAInterface::get_MaxEgressBW
int get_MaxEgressBW(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Get the maximum bandwidth of this interface for flows from the MoCA network in Mbps.
Definition: Device_MoCA_Interface.cpp:513
MoCAInterface::get_MaxIngressBW
int get_MaxIngressBW(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Get the maximum bandwidth of this interface for flows onto the MoCA network in Mbps.
Definition: Device_MoCA_Interface.cpp:491
MoCAInterface::get_Status
int get_Status(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Get the current operational state of the interface (see [Section 4.2.2/TR-181i2])....
Definition: Device_MoCA_Interface.cpp:310
MoCAInterface::get_MaxNodes
int get_MaxNodes(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Get the maximum network node capability supported by the interface. If MaxNodes is true then the inte...
Definition: Device_MoCA_Interface.cpp:622
Device_MoCA_Interface_QoS.h
MoCAInterfaceAssociatedDevice::get_RxSNR
int get_RxSNR(HOSTIF_MsgData_t *stMsgData, unsigned int associatedDeviceNum, bool *pChanged=NULL)
Get the signal to noise level (in dBm) received at this interface from this remote device.
Definition: Device_MoCA_Interface_AssociatedDevice.cpp:448
MoCAInterfaceAssociatedDevice::get_NodeID
int get_NodeID(HOSTIF_MsgData_t *stMsgData, unsigned int associatedDeviceNum, bool *pChanged=NULL)
Get the Node ID of this remote device.
Definition: Device_MoCA_Interface_AssociatedDevice.cpp:117
MoCAInterface::get_Enable
int get_Enable(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Get the status (enabled/disabled) of the MoCA Interface.
Definition: Device_MoCA_Interface.cpp:289
MoCAInterface::get_Alias
int get_Alias(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Get the Alias-based addressing used for MoCA interface.
Definition: Device_MoCA_Interface.cpp:348
X_RDKCENTRAL_COM_MeshTable::get_MeshPHYTxRate
int get_MeshPHYTxRate(HOSTIF_MsgData_t *stMsgData, unsigned int associatedDeviceNum, bool *pChanged=NULL)
Get the Associated Device's presence indicator.
Definition: Device_MoCA_Interface_X_RDKCENTRAL_COM_MeshTable.cpp:201
MoCAInterface::set_PrivacyEnabledSetting
int set_PrivacyEnabledSetting(HOSTIF_MsgData_t *)
Set the configured privacy mode. This indicates whether link-layer security is enabled (true) or disa...
Definition: Device_MoCA_Interface.cpp:1281
msgHandler
Definition: hostIf_msgHandler.h:103
MoCAInterface::get_LastOperFreq
int get_LastOperFreq(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Get the last Operational Frequency. The RF frequency in Hz to which the MoCA interface was tuned when...
Definition: Device_MoCA_Interface.cpp:813
MoCAInterfaceQoSFlowStats::get_LeaseTime
int get_LeaseTime(HOSTIF_MsgData_t *stMsgData, unsigned int entryNum, bool *pChanged=NULL)
Get the flow lease time (expressed in seconds). A LeaseTime of 0 means unlimited lease time.
Definition: Device_MoCA_Interface_QoS_FlowStats.cpp:91
MoCAInterface::set_BeaconPowerLimit
int set_BeaconPowerLimit(HOSTIF_MsgData_t *)
Set the Beacon Transmit Power attenuation in dB relative to the maximum transmit power.
Definition: Device_MoCA_Interface.cpp:1385
MoCAInterface::get_X_RDKCENTRAL_COM_NodePowerState
int get_X_RDKCENTRAL_COM_NodePowerState(HOSTIF_MsgData_t *)
Get the MoCA status for BootStatus.
Definition: Device_MoCA_Interface.cpp:1105
MoCAInterfaceStats::get_MulticastPacketsSent
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...
Definition: Device_MoCA_Interface_Stats.cpp:253
Device_MoCA_Interface_Stats.h
TR-069 Device.Moca.Interface.Stats object Public API.
MoCAInterface::get_FreqCurrentMaskSetting
int get_FreqCurrentMaskSetting(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Get the configured hexadecimal encoded 64-bit mask of enabled frequencies for network admission.
Definition: Device_MoCA_Interface.cpp:743
MoCAInterfaceStats::get_DiscardPacketsReceived
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...
Definition: Device_MoCA_Interface_Stats.cpp:237
MoCAInterface::get_PreferredNC
int get_PreferredNC(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Check Whether this interface is a preferred Network Coordinator (NC).
Definition: Device_MoCA_Interface.cpp:630
put_int
void put_int(char *ptr, int val)
This function converts the input data to integer type.
Definition: hostIf_utils.cpp:152
MoCAInterface::get_CurrentVersion
int get_CurrentVersion(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Get the MoCA version that the MoCA network is currently running.
Definition: Device_MoCA_Interface.cpp:557
MoCAInterfaceStats::get_MulticastPacketsReceived
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,...
Definition: Device_MoCA_Interface_Stats.cpp:270
IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED
@ IARM_BUS_TR69HOSTIFMGR_EVENT_VALUECHANGED
Definition: hostIf_tr69ReqHandler.h:189
MoCAInterfaceAssociatedDevice::get_Active
int get_Active(HOSTIF_MsgData_t *stMsgData, unsigned int associatedDeviceNum, bool *pChanged=NULL)
Check whether or not this remote device is currently present in the MoCA network.
Definition: Device_MoCA_Interface_AssociatedDevice.cpp:472
MoCAInterfaceQoSFlowStats
Definition: Device_MoCA_Interface_QoS_FlowStats.h:98
MoCAInterface::get_X_RDKCENTRAL_COM_PrimaryChannelFreq
int get_X_RDKCENTRAL_COM_PrimaryChannelFreq(HOSTIF_MsgData_t *)
Get the X_RDKCENTRAL_COM_PrimaryChannelFreq of a MoCA Interface.
Definition: Device_MoCA_Interface.cpp:1063
MoCAInterface::set_KeyPassphrase
int set_KeyPassphrase(HOSTIF_MsgData_t *)
Set the MoCA Password. The value consists of numeric characters (0-9). Possible patterns:
Definition: Device_MoCA_Interface.cpp:1323
MoCAInterfaceAssociatedDevice::get_RxBcastPowerLevel
int get_RxBcastPowerLevel(HOSTIF_MsgData_t *stMsgData, unsigned int associatedDeviceNum, bool *pChanged=NULL)
Get the power level (in dBm) received at the MoCA interface from this remote device.
Definition: Device_MoCA_Interface_AssociatedDevice.cpp:305
MoCAClientReqHandler::init
virtual bool init()
This is a pure virtual function used for initialization. Currently not implemented.
MoCAInterface::set_TxPowerLimit
int set_TxPowerLimit(HOSTIF_MsgData_t *)
Set the transmit Power attenuation in dB relative to the maximum transmit power.
Definition: Device_MoCA_Interface.cpp:1345
MoCAInterface::get_LastChange
int get_LastChange(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Get the accumulated time in seconds since the interface entered its current operational state.
Definition: Device_MoCA_Interface.cpp:377
MoCAInterfaceQoSFlowStats::get_MaxBurstSize
int get_MaxBurstSize(HOSTIF_MsgData_t *stMsgData, unsigned int entryNum, bool *pChanged=NULL)
Get Maximum burst size of MoCA interface.
Definition: Device_MoCA_Interface_QoS_FlowStats.cpp:84
MoCAInterfaceQoSFlowStats::get_PacketDA
int get_PacketDA(HOSTIF_MsgData_t *stMsgData, unsigned int entryNum, bool *pChanged=NULL)
Get the Destination Address (DA) for the packets in this flow.
Definition: Device_MoCA_Interface_QoS_FlowStats.cpp:67
MoCAInterface::get_FreqCurrentMask
int get_FreqCurrentMask(HOSTIF_MsgData_t *, bool *pChanged=NULL)
Get the hexadecimal encoded 64-bit mask of used frequencies. This is the bit map of the spectrum that...
Definition: Device_MoCA_Interface.cpp:767