当前位置: 首页 > news >正文

如果做网站推广网站模板设计举例

如果做网站推广,网站模板设计举例,上海最有名的公司集团,深圳排名优化哪家专业测试时关注到bw_costly_链 因为和iface有关。猜测这个链是动态生成的。 开关数据业务测试#xff0c;果然关闭数据业务后#xff0c;bw_OUTPUT中不再会调用bw_costly_rmnet_data3#xff0c;也没有bw_costly_rmnet_data3这个链了。 再次打开数据业务后出现了bw_costly_rmnet…测试时关注到bw_costly_链 因为和iface有关。猜测这个链是动态生成的。 开关数据业务测试果然关闭数据业务后bw_OUTPUT中不再会调用bw_costly_rmnet_data3也没有bw_costly_rmnet_data3这个链了。 再次打开数据业务后出现了bw_costly_rmnet_data2。说明上次上网的rmnet_data3口这此上网的rmnet_data2。 :/ # iptables -t filter -nvL bw_OUTPUT Chain bw_OUTPUT (1 references)pkts bytes target prot opt in out source destination24 1909 bw_global_alert all -- * * 0.0.0.0/0 0.0.0.0/02 120 bw_costly_rmnet_data3 all -- * rmnet_data3 0.0.0.0/0 0.0.0.0/0是netd模块自己检测上网状态后自己添加的吗 查看代码是netd的BandwidthController生成。 int BandwidthController::setInterfaceQuota(const std::string iface, int64_t maxBytes) {const std::string cost iface; ..../* Insert ingress quota. */auto it mQuotaIfaces.find(iface);if (it ! mQuotaIfaces.end()) {if (int res updateQuota(cost, maxBytes)) {ALOGE(Failed update quota for %s, iface.c_str());removeInterfaceQuota(iface);return res;}it-second.quota maxBytes;return 0;}const std::string chain bw_costly_ iface;const int ruleInsertPos (mGlobalAlertBytes) ? 2 : 1;std::vectorstd::string cmds {*filter,StringPrintf(:%s -, chain.c_str()),StringPrintf(-A %s -j bw_penalty_box, chain.c_str()),StringPrintf(-I bw_INPUT %d -i %s -j %s, ruleInsertPos, iface.c_str(), chain.c_str()),StringPrintf(-I bw_OUTPUT %d -o %s -j %s, ruleInsertPos, iface.c_str(),chain.c_str()),StringPrintf(-A bw_FORWARD -i %s -j %s, iface.c_str(), chain.c_str()),StringPrintf(-A bw_FORWARD -o %s -j %s, iface.c_str(), chain.c_str()),StringPrintf(-A %s -m quota2 ! --quota % PRId64 --name %s -j REJECT, chain.c_str(),maxBytes, cost.c_str()),COMMIT\n,};if (iptablesRestoreFunction(V4V6, Join(cmds, \n), nullptr) ! 0) {ALOGE(Failed set quota rule);removeInterfaceQuota(iface);return -EREMOTEIO;}mQuotaIfaces[iface] QuotaInfo{maxBytes, 0};return 0; } netd 向上提供此接口内部除了ndc模块通过控制台可以调用没有自动关注网络状态调用setInterfaceQuota的地方 binder::Status NetdNativeService::bandwidthSetInterfaceQuota(const std::string ifName,int64_t bytes) {NETD_LOCKING_RPC(gCtls-bandwidthCtrl.lock, PERM_NETWORK_STACK, PERM_MAINLINE_NETWORK_STACK);int res gCtls-bandwidthCtrl.setInterfaceQuota(ifName, bytes);return statusFromErrcode(res); }继续在android代码中搜索 framework的NetworkManagementService.java中调用 mNetdService.bandwidthSetInterfaceQuota public void setInterfaceQuota(String iface, long quotaBytes) {NetworkStack.checkNetworkStackPermission(mContext);synchronized (mQuotaLock) {if (mActiveQuotas.containsKey(iface)) {throw new IllegalStateException(iface iface already has quota);}try {// TODO: support quota shared across interfacesmNetdService.bandwidthSetInterfaceQuota(iface, quotaBytes);mActiveQuotas.put(iface, quotaBytes);} catch (RemoteException | ServiceSpecificException e) {throw new IllegalStateException(e);}synchronized (mTetheringStatsProviders) {for (ITetheringStatsProvider provider : mTetheringStatsProviders.keySet()) {try {provider.setInterfaceQuota(iface, quotaBytes);} catch (RemoteException e) {Log.e(TAG, Problem setting tethering data limit on provider mTetheringStatsProviders.get(provider) : e);}}}}}调用序列是 NatworkManagementService: NatworkManagementService.systemReady-prepareNativeDaemon()-setInterfaceQuota-mNetdService.bandwidthSetInterfaceQuota 下一步分析数据业务开关后是什么流程触发NatworkManagementService的setInterfaceQuota和removeInterfaceQuota的调用。 参考链接 Android系统中iptables的应用二BandwidthController https://blog.csdn.net/xiaokeweng/article/details/48810049
http://www.hkea.cn/news/14453768/

相关文章:

  • 做本地网站要服务器吗海外电商能赚钱吗
  • 加盟型网站建设北京微网站建设公司
  • 网站建设与管理卷子网站建设与管理模拟试卷
  • 免费crm网站不用下载的软件个人主页原型图
  • 福田专业做网站公司wordpress 首页修改
  • 保山网站建设报价洛阳市有哪些平台公司
  • 做网站需要服务器和什么软件网站都必须要备案吗
  • 好的空间网站什么网站做烘干设备好
  • 青岛市建设网站wordpress伪静态不收录
  • 网页设计模板免费下载网站高端品牌网站建设的特点
  • 精仿腾讯3366小游戏门户网站源码织梦最新内核带全部数据!大连建设监察执法网站
  • 最讨厌网站中国科技成就有哪些近两年
  • 企业网站开发定制南充网站建设略奥网络
  • 农产品电子商务网站开发wordpress 制作侧边栏
  • 做创新方法工作的网站信息推广的方式有哪些
  • 什么是个人网站宁国做网站的公司
  • 河北唐山 网站建设网站建设宣传预算
  • 音乐网站建设课的期末报告书微信公众号要交钱吗
  • 站长之家爱站网用mvc做网站的缺点
  • 网站设计培训班老师山东网站建设SEO优化制作设计公司
  • 运用vs2010c 做网站软件库合集软件资料链接
  • 做网站 科目网站开发费怎样入账
  • 网站顶部flash下载asp网站镜像代码
  • 十大垂直电商平台网站优化包括对什么优化
  • 网站建设的基础知识中国域名交易平台
  • 十堰网站推广哪家专业建设网站选择主机时费用最昂贵的方案是
  • 长春网站建设880元海南建设官方信息网站
  • 石家庄市新华区建设局网站c 网站开发 图书下载
  • 上海华亮建设集团网站聊天app搭建
  • 餐饮连锁网站建设搜一搜排名点击软件