linux开发路由固件,基于OpenWRT智能路由器固件的分析思路探讨

r1d\usr\lib\lua\luci\controller\api\xqdatacenter.lua (8 hits)

entry({"api", "xqdatacenter"}, firstchild(), _(""), 300)

entry({"api", "xqdatacenter", "request"}, call("tunnelRequest"), _(""), 301)

entry({"api", "xqdatacenter", "identify_device"}, call("identifyDevice"), _(""), 302, 0x08)

entry({"api", "xqdatacenter", "download"}, call("download"), _(""), 303)

entry({"api", "xqdatacenter", "upload"}, call("upload"), _(""), 304)

entry({"api", "xqdatacenter", "thumb"}, call("getThumb"), _(""), 305)

entry({"api", "xqdatacenter", "device_id"}, call("getDeviceId"), _(""), 306)

entry({"api", "xqdatacenter", "check_file_exist"}, call("checkFileExist"), _(""), 307)

r1d\usr\lib\lua\luci\controller\api\xqnetdetect.lua (6 hits)

entry({"api", "xqnetdetect"}, firstchild(), _(""), 350)

entry({"api", "xqnetdetect", "wan_status"}, call("getWanStatus"), _(""), 351, 0x01)

entry({"api", "xqnetdetect", "sys_info"}, call("getSysInfo"), (""), 352, 0x01)

entry({"api", "xqnetdetect", "ping_test"}, call("pingTest"), (""), 353, 0x01)

entry({"api", "xqnetdetect", "detect"}, call("systemDiagnostics"), (""), 354, 0x01)

entry({"api", "xqnetdetect", "sys_status"}, call("systemStatus"), (""), 355, 0x01)

r1d\usr\lib\lua\luci\controller\api\xqnetwork.lua (30 hits)

entry({"api", "xqnetwork"}, firstchild(), (""), 200)

entry({"api", "xqnetwork", "wifi_status"}, call("getWifiStatus"), (""), 201)

entry({"api", "xqnetwork", "wifi_detail"}, call("getWifiInfo"), (""), 202)

entry({"api", "xqnetwork", "wifi_detail_all"}, call("getAllWifiInfo"), (""), 202)

entry({"api", "xqnetwork", "wifi_connect_devices"}, call("getWifiConDev"), (""), 203)

entry({"api", "xqnetwork", "wifi_txpwr_channel"}, call("getWifiChTx"), (""), 204)

-- entry({"api", "xqnetwork", "set_wifi_txpwr_channel"}, call("setWifiChTx"), (""), 205)

entry({"api", "xqnetwork", "set_wifi_txpwr"}, call("setWifiTxpwr"), (""), 205)

entry({"api", "xqnetwork", "wifi_up"}, call("turnOnWifi"), (""), 206)

entry({"api", "xqnetwork", "wifi_down"}, call("shutDownWifi"), (""), 207)

entry({"api", "xqnetwork", "set_wifi"}, call("setWifi"), (""), 208)

--entry({"api", "xqnetwork", "get_scan_list"}, call("get_scan_list"), (""), 209, true)

--entry({"api", "xqnetwork", "wifi_ctl_scan"}, call("wifi_ctl_scan"), (""), 210)

--entry({"api", "xqnetwork", "get_bridge"}, call("get_bridge"), (""), 211, true)

--entry({"api", "xqnetwork", "set_bridge"}, call("set_bridge"), (""), 212)

entry({"api", "xqnetwork", "lan_info"}, call("getLanInfo"), (""), 213)

entry({"api", "xqnetwork", "wan_info"}, call("getWanInfo"), (""), 214)

entry({"api", "xqnetwork", "lan_dhcp"}, call("getLanDhcp"), (""), 215)

entry({"api", "xqnetwork", "wan_down"}, call("wanDown"), (""), 216)

entry({"api", "xqnetwork", "wan_up"}, call("wanUp"), (""), 217)

entry({"api", "xqnetwork", "check_wan_type"}, call("getAutoWanType"), (""), 218, 0x08)

entry({"api", "xqnetwork", "wan_statistics"}, call("getWanStatistics"), (""), 219)

entry({"api", "xqnetwork", "devices_statistics"}, call("getDevsStatistics"), (""), 220)

entry({"api", "xqnetwork", "device_statistics"}, call("getDevStatistics"), (""), 221)

entry({"api", "xqnetwork", "set_lan_ip"}, call("setLanIp"), (""), 222)

entry({"api", "xqnetwork", "set_wan"}, call("setWan"), (""), 223, 0x08)

entry({"api", "xqnetwork", "set_lan_dhcp"}, call("setLanDhcp"), (""), 224)

entry({"api", "xqnetwork", "mac_clone"}, call("setWanMac"), (""), 225)

entry({"api", "xqnetwork", "set_all_wifi"}, call("setAllWifi"), (""), 226)

entry({"api", "xqnetwork", "avaliable_channels"}, call("getChannels"), (""), 227)

r1d\usr\lib\lua\luci\controller\api\xqpassport.lua (10 hits)

entry({"api", "xqpassport"}, firstchild(), (""), 400)

entry({"api", "xqpassport", "login"}, call("passportLogin"), (""), 401, 0x01)

entry({"api", "xqpassport", "userInfo"}, call("getUserInfo"), (""), 402)

entry({"api", "xqpassport", "rigister"}, call("routerRegister"), (""), 405, 0x01)

entry({"api", "xqpassport", "binded"}, call("getBindInfo"), (""), 406, 0x01)

entry({"api", "xqpassport", "plugin_list"}, call("pluginList"), (""), 407)

entry({"api", "xqpassport", "plugin_enable"}, call("pluginEnable"), (""), 408)

entry({"api", "xqpassport", "plugin_disable"}, call("pluginDisable"), (""), 409)

entry({"api", "xqpassport", "plugin_detail"}, call("pluginDetail"), (""), 410)

entry({"api", "xqpassport", "unbound"}, call("unboundRouter"), (""), 411)

r1d\usr\lib\lua\luci\controller\api\xqsmarthome.lua (5 hits)

entry({"api", "xqsmarthome"}, firstchild(), _(""), 500)

entry({"api", "xqsmarthome", "request"}, call("tunnelSmartHomeRequest"), _(""), 501)

entry({"api", "xqsmarthome", "request_smartcontroller"}, call("tunnelSmartControllerRequest"), _(""), 502)

entry({"api", "xqsmarthome", "request_miio"}, call("tunnelMiioRequest"), _(""), 503)

entry({"api", "xqsmarthome", "request_mitv"}, call("requestMitv"), _(""), 504)

r1d\usr\lib\lua\luci\controller\api\xqsystem.lua (71 hits)

entry({"api", "xqsystem"}, firstchild(), (""), 100)

entry({"api", "xqsystem", "login"}, call("actionLogin"), (""), 109, 0x08)

entry({"api", "xqsystem", "init_info"}, call("getInitInfo"), (""), 101, 0x09)

entry({"api", "xqsystem", "token"}, call("getToken"), (""), 103, 0x08)

entry({"api", "xqsystem", "set_inited"}, call("setInited"), (""), 103, 0x08)

entry({"api", "xqsystem", "system_info"}, call("getSysInfo"), (""), 104, 0x01)

entry({"api", "xqsystem", "set_name_password"}, call("setPassword"), (""), 105)

entry({"api", "xqsystem", "check_rom_update"}, call("checkRomUpdate"), (""), 106)

entry({"api", "xqsystem", "lan_wan"}, call("getLanWanSta"), (""), 106)

entry({"api", "xqsystem", "flash_rom"}, call("flashRom"), (""), 108)

entry({"api", "xqsystem", "router_name"}, call("getRouterName"), (""), 110)

entry({"api", "xqsystem", "set_router_name"}, call("setRouterName"), (""), 111)

entry({"api", "xqsystem", "device_list"}, call("getDeviceList"), (""), 112)

entry({"api", "xqsystem", "set_device_nickname"}, call("setDeviceNickName"), (""), 113)

entry({"api", "xqsystem", "internet_connect"}, call("isInternetConnect"), (""), 114)

entry({"api", "xqsystem", "upload_rom"}, call("uploadRom"), (""), 115)

entry({"api", "xqsystem", "get_languages"}, call("getLangList"), (""), 118, 0x01)

entry({"api", "xqsystem", "get_main_language"}, call("getMainLang"), (""), 119, 0x01)

entry({"api", "xqsystem", "set_language"}, call("setLang"), (""), 120)

entry({"api", "xqsystem", "upload_log"}, call("uploadLogFile"), (""), 124)

entry({"api", "xqsystem", "backup_config"}, call("uploadConfigFile"), (""), 125)

entry({"api", "xqsystem", "config_recovery"}, call("configRecovery"), (""), 126)

entry({"api", "xqsystem", "router_init"}, call("setRouter"), (""), 126, 0x08)

entry({"api", "xqsystem", "information"}, call("getAllInfo"), (""), 127)

entry({"api", "xqsystem", "status"}, call("getStatusInfo"), (""), 128)

entry({"api", "xqsystem", "count"}, call("getConDevCount"), (""), 129)

entry({"api", "xqsystem", "reboot"}, call("reboot"), (""), 130)

entry({"api", "xqsystem", "reset"}, call("reset"), (""), 131)

entry({"api", "xqsystem", "passport_bind_info"}, call("getPassportBindInfo"), (""), 132, 0x01)

entry({"api", "xqsystem", "set_passport_bound"}, call("setPassportBound"), (""), 133, 0x08)

entry({"api", "xqsystem", "get_sys_avg_load"}, call("getSysAvgLoad"), (""), 134)

entry({"api", "xqsystem", "set_mac_filter"}, call("setMacFilter"), (""), 135)

entry({"api", "xqsystem", "renew_token"}, call("renewToken"), (""), 136)

entry({"api", "xqsystem", "remove_passport_info"}, call("removePassportBindInfo"), (""), 137)

entry({"api", "xqsystem", "upgrade_rom"}, call("upgradeRom"), (""), 138)

entry({"api", "xqsystem", "wps"}, call("openWps"), (""), 139, 0x08)

entry({"api", "xqsystem", "wps_status"}, call("getWpsStatus"), (""), 140)

entry({"api", "xqsystem", "stop_nginx"}, call("stopNginx"), (""), 141)

entry({"api", "xqsystem", "check_router_name_pending"}, call("checkRouterNamePending"), (""), 142)

entry({"api", "xqsystem", "clear_router_name_pending"}, call("clearRouterNamePending"), (""), 143)

entry({"api", "xqsystem", "web_url"}, call("redirectUrl"), (""), 144)

entry({"api", "xqsystem", "start_nginx"}, call("startNginx"), (""), 145)

entry({"api", "xqsystem", "nginx"}, call("nginxCacheStatus"), (""), 146)

entry({"api", "xqsystem", "flash_status"}, call("flashStatus"), (""), 147, 0x01)

entry({"api", "xqsystem", "upgrade_status"}, call("upgradeStatus"), (""), 148, 0x0d)

entry({"api", "xqsystem", "create_sandbox"}, call("createSandbox"), (""), 149)

entry({"api", "xqsystem", "is_sandbox_created"}, call("isSandboxCreated"), (""), 150)

entry({"api", "xqsystem", "mount_things"}, call("mountThings"), (""), 151)

entry({"api", "xqsystem", "umount_things"}, call("umountThings"), (""), 152)

entry({"api", "xqsystem", "are_things_mounted"}, call("areThingsMounted"), (""), 153)

entry({"api", "xqsystem", "start_dropbear"}, call("startDropbear"), (""), 154)

entry({"api", "xqsystem", "stop_dropbear"}, call("stopDropbear"), (""), 155)

entry({"api", "xqsystem", "is_dropbear_started"}, call("isDropbearStarted"), (""), 156)

entry({"api", "xqsystem", "main_status_for_app"}, call("mainStatusForApp"), (""), 157)

entry({"api", "xqsystem", "mode"}, call("getMacfilterMode"), (""), 158)

entry({"api", "xqsystem", "set_mode"}, call("setMacfilterMode"), (""), 159)

entry({"api", "xqsystem", "cancel"}, call("cancelUpgrade"), (""), 160, 0x0d)

entry({"api", "xqsystem", "shutdown"}, call("shutdown"), (""), 161)

entry({"api", "xqsystem", "upnp"}, call("upnpList"), (""), 162)

entry({"api", "xqsystem", "upnp_switch"}, call("upnpSwitch"), (""), 163)

entry({"api", "xqsystem", "app_limit"}, call("appLimit"), (""), 164)

entry({"api", "xqsystem", "app_limit_switch"}, call("appLimitSwitch"), (""), 165)

entry({"api", "xqsystem", "set_app_limit"}, call("setAppLimit"), (""), 166)

entry({"api", "xqsystem", "vpn"}, call("vpnInfo"), (""), 167)

entry({"api", "xqsystem", "vpn_status"}, call("vpnStatus"), (""), 168)

entry({"api", "xqsystem", "vpn_switch"}, call("vpnSwitch"), (""), 169)

entry({"api", "xqsystem", "set_vpn"}, call("setVpn"), (""), 170)

entry({"api", "xqsystem", "device_mac"}, call("getDeviceMacaddr"), (""), 171, 0x01)

entry({"api", "xqsystem", "wps_cancel"}, call("stopWps"), (""), 172)

entry({"api", "xqsystem", "detection_ts"}, call("getDetectionTimestamp"), (""), 173)

entry({"api", "xqsystem", "wifi_log"}, call("getWifiLog"), (""), 174)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值