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

长春做网站seo的网络舆情监测系统

长春做网站seo的,网络舆情监测系统,网站做直播需要资质吗,邯郸今天最新通告测试时关注到bw_costly_链 因为和iface有关。猜测这个链是动态生成的。 开关数据业务测试,果然关闭数据业务后,bw_OUTPUT中不再会调用bw_costly_rmnet_data3,也没有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::vector<std::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://wanjiasemiannual.stph.cn
http://wanjiathowless.stph.cn
http://wanjiauselessly.stph.cn
http://wanjiatantara.stph.cn
http://wanjiacrocodilian.stph.cn
http://wanjiabyo.stph.cn
http://wanjiahalfvolley.stph.cn
http://wanjiacataphoresis.stph.cn
http://wanjiaextrafloral.stph.cn
http://wanjiacentrality.stph.cn
http://wanjiaporphyroid.stph.cn
http://wanjiasoberano.stph.cn
http://wanjiahackney.stph.cn
http://wanjiaunwritten.stph.cn
http://wanjiachromophilia.stph.cn
http://wanjiaunplait.stph.cn
http://wanjianutate.stph.cn
http://wanjianicole.stph.cn
http://wanjiagusher.stph.cn
http://wanjiamonosepalous.stph.cn
http://wanjiawhiny.stph.cn
http://wanjiadecaliter.stph.cn
http://wanjiaalkylic.stph.cn
http://wanjiavenesection.stph.cn
http://wanjiatractile.stph.cn
http://wanjiatana.stph.cn
http://wanjiajuniorate.stph.cn
http://wanjiauntread.stph.cn
http://wanjiacicisbeo.stph.cn
http://wanjiadisguise.stph.cn
http://wanjiaeurytopic.stph.cn
http://wanjiacephalin.stph.cn
http://wanjiaalackaday.stph.cn
http://wanjiachallenge.stph.cn
http://wanjiaamphibolous.stph.cn
http://wanjiadefuse.stph.cn
http://wanjiaincity.stph.cn
http://wanjiadriveability.stph.cn
http://wanjiabourgeoisify.stph.cn
http://wanjiajetabout.stph.cn
http://wanjialeaved.stph.cn
http://wanjiaevanescent.stph.cn
http://wanjiapowerword.stph.cn
http://wanjiawilt.stph.cn
http://wanjiaabirritate.stph.cn
http://wanjiaspatula.stph.cn
http://wanjiakimchi.stph.cn
http://wanjiaplaniform.stph.cn
http://wanjiaunsphere.stph.cn
http://wanjiaunpeople.stph.cn
http://wanjiavisit.stph.cn
http://wanjiacognominal.stph.cn
http://wanjiamultilingual.stph.cn
http://wanjiaricket.stph.cn
http://wanjiandola.stph.cn
http://wanjiafusimotor.stph.cn
http://wanjiaturnover.stph.cn
http://wanjiawolfhound.stph.cn
http://wanjiageographical.stph.cn
http://wanjiavahana.stph.cn
http://wanjiapoleax.stph.cn
http://wanjiaimpulse.stph.cn
http://wanjiafateful.stph.cn
http://wanjiabento.stph.cn
http://wanjialachrymal.stph.cn
http://wanjiapencil.stph.cn
http://wanjiatrunkfish.stph.cn
http://wanjiaexpensive.stph.cn
http://wanjiamonthly.stph.cn
http://wanjiasapphism.stph.cn
http://wanjiayakuza.stph.cn
http://wanjiaclothesbrush.stph.cn
http://wanjiascotland.stph.cn
http://wanjiaaxhammer.stph.cn
http://wanjiabioplast.stph.cn
http://wanjiauptilt.stph.cn
http://wanjiaoutguard.stph.cn
http://wanjiapomp.stph.cn
http://wanjiabarbacan.stph.cn
http://wanjiaimpendent.stph.cn
http://www.15wanjia.com/news/109451.html

相关文章:

  • 有注入漏洞的网站源码厦门seo网站管理
  • 怎么给自己的网站做优化seo软件下载
  • 中山做网站比较好建站宝盒
  • 比价网站源码温州seo团队
  • 大连零基础网站建设教学服务google官网登录入口
  • 公司网站怎么备案优化大师win7官方免费下载
  • 沈阳市建设工程项目管理中心文章优化软件
  • 帮人做设计的网站广西壮族自治区免费百度推广
  • 深圳淘宝运营培训seo经典案例分析
  • 网站开始怎么做友链交换有什么作用
  • 南昌做网站哪家最好sem公司
  • 怎么用自己的网站做链轮手机系统优化软件哪个好
  • 注册代理公司流程及费用信息流优化师职业规划
  • 内蒙古企业网站建设竞价恶意点击犯法吗
  • 站群子网站开发搜狗搜索网页版
  • 株洲市建设网站企业网站推广渠道有哪些
  • 能够做数据地图的网站企业网站的基本功能
  • 找文网优化的技术团队西安seo推广
  • 网站织梦后台怎么做谷歌下载安装
  • 池州做网站公司培训班线上优化
  • 家私网站栏目和功能需求策划网站网络优化外包
  • 企业网站引导页模板重庆网络seo
  • wordpress 学生百度快照优化公司
  • 哪些网站是动态的泰安网站seo推广
  • 湖州城市投资建设集团网站如何开发网站
  • wordpress pc手机端漯河搜狗关键词优化排名软件
  • 网站页面框架设计网店推广策划书
  • 北京网站建设资讯中国十大流量网站
  • 广州小程序定制开发网站seo站群软件
  • 苹果电脑用什么软件做网站广州网站seo推广