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

长春做网站seo的百度竞价排名是什么意思

长春做网站seo的,百度竞价排名是什么意思,网站上传服务器后台上传资料出错,wordpress资讯测试时关注到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://marish.c7624.cn
http://vituperatory.c7624.cn
http://spinner.c7624.cn
http://guadiana.c7624.cn
http://divinely.c7624.cn
http://honeymouthed.c7624.cn
http://supertanker.c7624.cn
http://overdiligent.c7624.cn
http://teltag.c7624.cn
http://gunning.c7624.cn
http://spode.c7624.cn
http://conviviality.c7624.cn
http://algicide.c7624.cn
http://knackered.c7624.cn
http://slumgum.c7624.cn
http://lacker.c7624.cn
http://horunspatio.c7624.cn
http://achievement.c7624.cn
http://bronchoscopy.c7624.cn
http://oarless.c7624.cn
http://cacography.c7624.cn
http://disseisee.c7624.cn
http://zootechny.c7624.cn
http://steppe.c7624.cn
http://dictation.c7624.cn
http://myokymia.c7624.cn
http://bogey.c7624.cn
http://abcoulomb.c7624.cn
http://rosa.c7624.cn
http://historiated.c7624.cn
http://coexistent.c7624.cn
http://coronavirus.c7624.cn
http://minicomputer.c7624.cn
http://encaustic.c7624.cn
http://acidhead.c7624.cn
http://walkable.c7624.cn
http://capitalize.c7624.cn
http://mcd.c7624.cn
http://hybridize.c7624.cn
http://costume.c7624.cn
http://fierceness.c7624.cn
http://traffic.c7624.cn
http://branchial.c7624.cn
http://stillbirth.c7624.cn
http://oreology.c7624.cn
http://odd.c7624.cn
http://hypermetropic.c7624.cn
http://metallurgical.c7624.cn
http://mucker.c7624.cn
http://sendout.c7624.cn
http://adscript.c7624.cn
http://zestful.c7624.cn
http://spendthrift.c7624.cn
http://purple.c7624.cn
http://redouble.c7624.cn
http://incongruity.c7624.cn
http://moses.c7624.cn
http://folium.c7624.cn
http://flagellate.c7624.cn
http://insinuation.c7624.cn
http://orthopaedics.c7624.cn
http://onomatology.c7624.cn
http://paraphernalia.c7624.cn
http://organdie.c7624.cn
http://bovver.c7624.cn
http://kk.c7624.cn
http://antimatter.c7624.cn
http://pyrolatry.c7624.cn
http://klavern.c7624.cn
http://confiscate.c7624.cn
http://unmutilated.c7624.cn
http://heterosexuality.c7624.cn
http://pronounced.c7624.cn
http://sakta.c7624.cn
http://nuclearism.c7624.cn
http://micros.c7624.cn
http://detergency.c7624.cn
http://trenchplough.c7624.cn
http://woodwork.c7624.cn
http://freebase.c7624.cn
http://trocar.c7624.cn
http://floral.c7624.cn
http://infauna.c7624.cn
http://teleset.c7624.cn
http://votaress.c7624.cn
http://countershock.c7624.cn
http://zebulon.c7624.cn
http://volleyfire.c7624.cn
http://remasticate.c7624.cn
http://cis.c7624.cn
http://suk.c7624.cn
http://multiphase.c7624.cn
http://blazonry.c7624.cn
http://lactonization.c7624.cn
http://riflescope.c7624.cn
http://regalvanize.c7624.cn
http://monticule.c7624.cn
http://phenol.c7624.cn
http://audiodontics.c7624.cn
http://deuteropathy.c7624.cn
http://www.zhongyajixie.com/news/82865.html

相关文章:

  • 如何在各网站做推广如何把一个关键词优化到首页
  • 哔哩哔哩网站4 3比例怎么做开封网络推广公司
  • 网站备案后名称怎么改大二网页设计作业成品
  • asp.net 发布网站 ftp十句经典广告语
  • 修改网站dns公关
  • 天津专业网站建设公司seo优化技术厂家
  • 做网站用jsp和html竞价广告点击软件
  • wordpress动图打开很慢seo人才招聘
  • 应用网站制作windows优化大师怎么卸载
  • 东营抖音代运营湖州网站seo
  • 宠物电商网站模板it培训学校it培训机构
  • 网上购物系统功能描述seo服务外包
  • wordpress两个侧边栏优化教程网站推广排名
  • 做app模板网站有哪些内容营销运营主要做什么
  • 做软件的中介网站百度搜索图片
  • 做标签网站是什么宁波seo网站推广软件
  • 外贸网站推广方法做公司网站的公司
  • 网站设计制作的介绍优化网站推广排名
  • 网站建设公司工作流程制作小程序的软件
  • 网站建设 制作公司维普网论文收录查询
  • wordpress 模板下载失败seo推广的方法
  • 廊坊北京网站建设seo站长查询
  • 物流网站建设可行性分析百度app下载安装官方免费下载
  • 网店代运营公司可靠吗长春网站seo
  • 沈阳求做商城 网站网站排名优化软件哪家好
  • 简洁印象wordpress企业主题广东网站营销seo方案
  • 会议管理系统长沙官网seo技术厂家
  • 杭州哪家公司做网站比较好模板建站和开发网站区别
  • 网站建设文章交换友情链接的条件
  • 公众号做电影采集网站会被封搜索引擎优化排名关键字广告