zoukankan      html  css  js  c++  java
  • tr69c set userinterface.passwordrequired错误调试

    1. BcmDb_setUserInterface(&userinterface);   include in cfm/api/bcmcfm.c

       

    2. BcmDb_setUserInterface(PBCM_USERINTERFACE pUserInterface)

       {

           ....

           BcmPsi_objStore(sysPsi, SYS_USERINTERFACE_ID, pUserInterface, sizeof(BCM_USERINTERFACE));

          // SYS_USERINTERFACE_ID = 9

       }

    3. PSI_STATUS BcmPsi_objStore(PSI_HANDLE appId, UINT16 objectId, PSI_VALUE value, UINT16 length)
    {

        ret =ifc->set((const PSI_HANDLE)appId, (const UINT16)objectId,
                    (const PSI_VALUE)value, (const UINT16)length);
        //objectId = 9

      

    }

    4. PSI_STATUS PsiIfc::set(const PSI_HANDLE appId,

                            const UINT16 objectId,
                            const PSI_VALUE value,
                            const UINT16 length)

    {

            AppNode* node = (AppNode *)appId;    

           PsiApp* app = node->app;

            if ( app != NULL )
                 app->set(objectId, value, length);

    }

    5. 

    PSI_STATUS PsiApp::set(const UINT16 id,

                           const PSI_VALUE value,

                            const UINT16 length)

    {

        PSI_STATUS status = PSI_STS_OK;

       ObjectNode* node = find(id);       //id = 9

        if ( node == NULL)

       {

            ....

        }

        else

        {

                   status = (node->object)->set(value, length);

        }

    }

  • 相关阅读:
    安装SQL Server 2012遇到“需要更新的以前的Visual Studio 2010实例.”
    搭建网站 discuzx ecshop php
    appserv安装
    php 修改 AppServ 下Apache 端口
    sed基本用法
    grep命令
    awk命令详解二
    Java面向对象六大原则
    Java基础——常用类之日期时间类
    springMVC第一天——入门、整合与参数绑定
  • 原文地址:https://www.cnblogs.com/gavinwu/p/3173492.html
Copyright © 2011-2022 走看看