MT4与网站交互:平台已有ManagerAPI,如果没有manager账号,是否有方法让网站连接服务器中的个人账户? 40C

我们在开发一个交易平台以MT4为引擎ASP Net Core框架,目前网站Demo账户的部分在使用一家证卷商的MT4 manager账户通过managerAPI与其服务器交流,但是我们想合作的另一家证卷商无法提供manager账号,是否有方法直接通过类似client API的方法使服网站与服务器是上的个人mt4账户交互,做登陆,平仓,查询,设置止损止盈等操作?

因为server不在我们手上,权限有限,serverAPI可以不用考虑。

2个回答

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
PHP,下面生成不重复唯一标识的2个方法那个更可靠?
md5(uniqid(md5(microtime(true)), true)) md5(time() . mt_rand(1,1000000));
opnet与vc联合调试出现R6034错误
opnet14.5+ VS2005+ win10 进行仿真模拟时错误如图 ![图片说明](https://img-ask.csdn.net/upload/202001/08/1578454512_930169.png) opnet安装在D:/opnet VS装在D:/VS2005 网上说的复制manifest我也做了,mt.exe/cl等等操作也正确 ![图片说明](https://img-ask.csdn.net/upload/202001/08/1578454922_65689.png) 环境变量根据安装文档设置,路径也都改为了D盘 /*安装过opnet的朋友肯定见过这份安装文档*/ ![图片说明](https://img-ask.csdn.net/upload/202001/08/1578454758_174060.png) 想知道问题出在哪里
MT7621+MT7612EN+MT7603EN的开发板移植openwrt该怎么改wifi驱动?
网购了一块双频的MT7621路由器开发板,网上下了官方的openwrt源码编译了,但是没法运行。
解決vue-element-admin mock 模擬數據不顯示問題(已經解決)
``` const List = [] const count = 100 for (let i = 0; i < count; i++) { List.push(Mock.mock({ id: '@id', title: '@sentence(10, 20)', 'status|1': ['published', 'draft', 'deleted'], author: 'name', category: 'MT-@integer(1,1000)', createdate: '@date', number: 'MT-@integer(10, 100)', opeater: 'simon@integer(500,800)', amount: '$@integer(500,5000)', type: 'MF-@sentence(10, 20)', name: 'MA-@sentence(1, 20)', qutodate: '@date' })) } export default [ { url: '/table/list', type: 'get', response: config => { const { importance, type, title, page = 1, limit = 20 ,sort} = config.query let mockList = List.filter(item => { if(importance && item.importance !== +importance) return false if(type && item.type !== type) return false if(title && item.title.indexOf(title) < 0) return false return true }) if (sort === '-id') { mockList = mockList.reverse() } const pageList = mockList.filter((item, index) => index < limit * page && index >= limit * (page -1)) return { code: 20000, data: { total: mockList.length, items: pageList } } } }, ``` ``` <el-table v-loading="listLoading" :data="list" border fit highlight-current-row style="width: 100%; margin-top: 20px" > <el-table-column align="center" label="ID" width="85" prop="id" :class-name="getSortClass('id')"> <template slot-scope="row"> {{ row.id }} </template> </el-table-column> <el-table-column align="center" label="類別" prop="category"> <template slot-scope="{row}"> {{ row.category }} </template> </el-table-column> </el-table> created() { this.fetchData() }, methods: { fetchData() { this.listLoading = true getList(this.listQuery).then(response => { this.list = response.data.items this.total = response.data.total console.log(this.list) setTimeout(() => { this.listLoading = false }, 1000) }) } } ``` 沒有數據顯示 請問各位大神知道什麼原因嘛
选择MT时编译出错(在已选择静态MFC库的情况下),报错要求选择MD,这是什么情况?
![图片说明](https://img-ask.csdn.net/upload/201912/19/1576722513_69248.jpg) ![图片说明](https://img-ask.csdn.net/upload/201912/19/1576722564_809683.jpg) ![图片说明](https://img-ask.csdn.net/upload/201912/19/1576722604_718231.jpg)
Time to Graduate 是怎么写的呢
Problem Description A prospective CS student is investigating how many semesters it will take to graduate from a variety of different universities. Each university provides a list of required courses, their prerequisites, and when each course is offered. Given this information, determine the minimum number of semesters to graduate. Consider the following example. A student is required to take 4 courses, mt42, cs123, cs456, and cs789. mt42 is only offered in the fall semester and has no prerequisites. Similarly, cs123 is only offered in the spring semester and has no prerequisites. cs456 is only offered in the spring semester and has both cs123 and mt42 as prerequisites. Finally, cs789 is offered in both fall and spring and has cs456 as its only prerequisite. The shortest time to graduate is 5 semesters, by taking mt42 in the fall, cs123 in the next spring, cs456 the following spring (since it is not offered in the fall) and finally cs789 the following fall. For this problem, there are only two semesters, fall and spring. Always start counting semesters from the fall. In addition to the fall/spring scheduling issues, there is one slight complication. In order to keep the dormitories full, each university limits the number of courses that can be taken in any semester. This limit appears as part of the input data. The third example below illustrates this issue. Input There are one to twenty-five data sets, followed by a final line containing only the integers -1 -1. A data set starts with a line containing two positive integers n, 1 ≤ n ≤ 12, which is the number of courses in this data set and m, 2 ≤ m ≤ 6, which is the maximum number of courses that can be taken in any single semester. The next line contains the n course identifiers. Each is a 1-5 character string from the set {a-z, 0-9}. Following the course identifiers is the individual course information. This consists of n lines, one line for each course, containing the course identifier, semester offered('F'=Fall, 'S'=Spring, 'B'=Both semesters), the number of prerequisite courses, p, 0 ≤ p ≤ 5, and finally p prerequisite course identifiers. The first example data set below corresponds to the problem described above. Output The output contains one line for each data set, formatted as shown in the sample output. Sample Input 4 6 cs123 mt42 cs456 cs789 mt42 F 0 cs123 S 0 cs456 S 2 cs123 mt42 cs789 B 1 cs456 3 6 math1 comp2 comp3 comp3 S 1 comp2 math1 S 0 comp2 F 1 math1 4 3 m10 m20 c33 c44 m10 B 0 m20 B 0 c33 B 0 c44 B 0 -1 -1 Sample Output The minimum number of semesters required to graduate is 5. The minimum number of semesters required to graduate is 4. The minimum number of semesters required to graduate is 2.
Time to Graduate 的编写
Problem Description A prospective CS student is investigating how many semesters it will take to graduate from a variety of different universities. Each university provides a list of required courses, their prerequisites, and when each course is offered. Given this information, determine the minimum number of semesters to graduate. Consider the following example. A student is required to take 4 courses, mt42, cs123, cs456, and cs789. mt42 is only offered in the fall semester and has no prerequisites. Similarly, cs123 is only offered in the spring semester and has no prerequisites. cs456 is only offered in the spring semester and has both cs123 and mt42 as prerequisites. Finally, cs789 is offered in both fall and spring and has cs456 as its only prerequisite. The shortest time to graduate is 5 semesters, by taking mt42 in the fall, cs123 in the next spring, cs456 the following spring (since it is not offered in the fall) and finally cs789 the following fall. For this problem, there are only two semesters, fall and spring. Always start counting semesters from the fall. In addition to the fall/spring scheduling issues, there is one slight complication. In order to keep the dormitories full, each university limits the number of courses that can be taken in any semester. This limit appears as part of the input data. The third example below illustrates this issue. Input There are one to twenty-five data sets, followed by a final line containing only the integers -1 -1. A data set starts with a line containing two positive integers n, 1 ≤ n ≤ 12, which is the number of courses in this data set and m, 2 ≤ m ≤ 6, which is the maximum number of courses that can be taken in any single semester. The next line contains the n course identifiers. Each is a 1-5 character string from the set {a-z, 0-9}. Following the course identifiers is the individual course information. This consists of n lines, one line for each course, containing the course identifier, semester offered('F'=Fall, 'S'=Spring, 'B'=Both semesters), the number of prerequisite courses, p, 0 ≤ p ≤ 5, and finally p prerequisite course identifiers. The first example data set below corresponds to the problem described above. Output The output contains one line for each data set, formatted as shown in the sample output. Sample Input 4 6 cs123 mt42 cs456 cs789 mt42 F 0 cs123 S 0 cs456 S 2 cs123 mt42 cs789 B 1 cs456 3 6 math1 comp2 comp3 comp3 S 1 comp2 math1 S 0 comp2 F 1 math1 4 3 m10 m20 c33 c44 m10 B 0 m20 B 0 c33 B 0 c44 B 0 -1 -1 Sample Output The minimum number of semesters required to graduate is 5. The minimum number of semesters required to graduate is 4. The minimum number of semesters required to graduate is 2.
MT4 api 二次开发,java对接,懂的帮忙解答一下
功能是做一个跟单交易系统: 咨询下资深的技术大牛,现在这个项目如何与mt4服务器进行交互,目前只提供了mtmanapi64.dll文件,想请问下,如何实现下单,平仓,挂单,实时报价等功能,并且如何与java对接,谢谢
Time to Graduate 正确实现的方式
Problem Description A prospective CS student is investigating how many semesters it will take to graduate from a variety of different universities. Each university provides a list of required courses, their prerequisites, and when each course is offered. Given this information, determine the minimum number of semesters to graduate. Consider the following example. A student is required to take 4 courses, mt42, cs123, cs456, and cs789. mt42 is only offered in the fall semester and has no prerequisites. Similarly, cs123 is only offered in the spring semester and has no prerequisites. cs456 is only offered in the spring semester and has both cs123 and mt42 as prerequisites. Finally, cs789 is offered in both fall and spring and has cs456 as its only prerequisite. The shortest time to graduate is 5 semesters, by taking mt42 in the fall, cs123 in the next spring, cs456 the following spring (since it is not offered in the fall) and finally cs789 the following fall. For this problem, there are only two semesters, fall and spring. Always start counting semesters from the fall. In addition to the fall/spring scheduling issues, there is one slight complication. In order to keep the dormitories full, each university limits the number of courses that can be taken in any semester. This limit appears as part of the input data. The third example below illustrates this issue. Input There are one to twenty-five data sets, followed by a final line containing only the integers -1 -1. A data set starts with a line containing two positive integers n, 1 ≤ n ≤ 12, which is the number of courses in this data set and m, 2 ≤ m ≤ 6, which is the maximum number of courses that can be taken in any single semester. The next line contains the n course identifiers. Each is a 1-5 character string from the set {a-z, 0-9}. Following the course identifiers is the individual course information. This consists of n lines, one line for each course, containing the course identifier, semester offered('F'=Fall, 'S'=Spring, 'B'=Both semesters), the number of prerequisite courses, p, 0 ≤ p ≤ 5, and finally p prerequisite course identifiers. The first example data set below corresponds to the problem described above. Output The output contains one line for each data set, formatted as shown in the sample output. Sample Input 4 6 cs123 mt42 cs456 cs789 mt42 F 0 cs123 S 0 cs456 S 2 cs123 mt42 cs789 B 1 cs456 3 6 math1 comp2 comp3 comp3 S 1 comp2 math1 S 0 comp2 F 1 math1 4 3 m10 m20 c33 c44 m10 B 0 m20 B 0 c33 B 0 c44 B 0 -1 -1 Sample Output The minimum number of semesters required to graduate is 5. The minimum number of semesters required to graduate is 4. The minimum number of semesters required to graduate is 2.
Time to Graduate
Problem Description A prospective CS student is investigating how many semesters it will take to graduate from a variety of different universities. Each university provides a list of required courses, their prerequisites, and when each course is offered. Given this information, determine the minimum number of semesters to graduate. Consider the following example. A student is required to take 4 courses, mt42, cs123, cs456, and cs789. mt42 is only offered in the fall semester and has no prerequisites. Similarly, cs123 is only offered in the spring semester and has no prerequisites. cs456 is only offered in the spring semester and has both cs123 and mt42 as prerequisites. Finally, cs789 is offered in both fall and spring and has cs456 as its only prerequisite. The shortest time to graduate is 5 semesters, by taking mt42 in the fall, cs123 in the next spring, cs456 the following spring (since it is not offered in the fall) and finally cs789 the following fall. For this problem, there are only two semesters, fall and spring. Always start counting semesters from the fall. In addition to the fall/spring scheduling issues, there is one slight complication. In order to keep the dormitories full, each university limits the number of courses that can be taken in any semester. This limit appears as part of the input data. The third example below illustrates this issue. Input There are one to twenty-five data sets, followed by a final line containing only the integers -1 -1. A data set starts with a line containing two positive integers n, 1 ≤ n ≤ 12, which is the number of courses in this data set and m, 2 ≤ m ≤ 6, which is the maximum number of courses that can be taken in any single semester. The next line contains the n course identifiers. Each is a 1-5 character string from the set {a-z, 0-9}. Following the course identifiers is the individual course information. This consists of n lines, one line for each course, containing the course identifier, semester offered('F'=Fall, 'S'=Spring, 'B'=Both semesters), the number of prerequisite courses, p, 0 ≤ p ≤ 5, and finally p prerequisite course identifiers. The first example data set below corresponds to the problem described above. Output The output contains one line for each data set, formatted as shown in the sample output. Sample Input 4 6 cs123 mt42 cs456 cs789 mt42 F 0 cs123 S 0 cs456 S 2 cs123 mt42 cs789 B 1 cs456 3 6 math1 comp2 comp3 comp3 S 1 comp2 math1 S 0 comp2 F 1 math1 4 3 m10 m20 c33 c44 m10 B 0 m20 B 0 c33 B 0 c44 B 0 -1 -1 Sample Output The minimum number of semesters required to graduate is 5. The minimum number of semesters required to graduate is 4. The minimum number of semesters required to graduate is 2.
el表达式遍历订单和商品订单的问题?
本人用ssm写的项目,有个问题卡着了,我的订单下面有好几个商品,但是遍历的时候只遍历出来一个商品,剩下的不显示了,不知道要怎么写才能显示出来,求大佬帮看下,谢谢啦!![一对多查询的mybatis的sql语句](https://img-ask.csdn.net/upload/201912/22/1577017260_335927.png)![订单表的数据](https://img-ask.csdn.net/upload/201912/22/1577017367_620508.png)![商品订单表数据](https://img-ask.csdn.net/upload/201912/22/1577017318_851833.png)![el表达式遍历](https://img-ask.csdn.net/upload/201912/22/1577017549_257903.png)![页面el表达式遍历的页面效果](https://img-ask.csdn.net/upload/201912/22/1577017424_883264.png) 已解决! 本人在订单商品表加了商品表和规格表的私有属性 ![图片说明](https://img-ask.csdn.net/upload/201912/24/1577119943_630745.png) 直接打点调用订单商品表的字段就行了![图片说明](https://img-ask.csdn.net/upload/201912/24/1577120097_285593.png) 订单表![图片说明](https://img-ask.csdn.net/upload/201912/24/1577120238_906630.png) ```<c:forEach items="${list}" var="order"> <tr class="hd order-meta"> <td colspan="4"> <div class="left">下单时间:${order.buyTime} 订单号: ${order.orderNumber}</div> <div class="right"> <span class="del iconfont icon-shanchu"></span></div> </td> </tr> <tr class="order-goods"> <td> <c:forEach items="${order.orderPro}" var="o"> <div class="goods-info"> <img class="figure" src="uploads/${o.proPicture}" alt="" /> <!-- <a class="text-info refund" href="uc-apply-refund.jsp">申请退货</a> --> <div class="info"> <div>${o.proName} ${o.color} ${o.memory}</div> <div>${o.price}元*${o.count}</div> </div> </div> </c:forEach> </td> <td> 总金额:<span class="text-theme fwb">${order.totalMoney}.00元</span> </td> <c:if test="${order.state=='待付款'}"> <td> <a class="text-info" href="uc-order-detail.jsp">订单详情</a><br /> </td> <td> <a href="" class="ui-btn-theme uc-btn-md">去付款</a> <a class="ui-btn-low ui-btn-hollow uc-btn-md mt10">${order.state}</a> <a href="" class="ui-btn-low ui-btn-hollow uc-btn-md mt10">取消订单</a> </td> </c:if> <c:if test="${order.state=='待发货'}"> <td> <a class="text-info" href="uc-order-detail.jsp">订单详情</a><br /> </td> <td> <a href="" class="ui-btn-theme uc-btn-md">提醒发货</a> <a href="" class="ui-btn-low ui-btn-hollow uc-btn-md mt10">${order.state}</a> </td> </c:if> <c:if test="${order.state=='待收货'}"> <td> <a class="text-info" href="uc-order-detail.jsp">订单详情</a><br /> <a class="text-info" href="">查看物流</a> </td> <td> <div class="time-left"><i class="iconfont icon-shijian"></i>还剩2天8时</div> <a href="" class="ui-btn-low ui-btn-hollow uc-btn-md mt10">${order.state}</a> <a href="" class="ui-btn-theme uc-btn-md">确认收货</a> </td> </c:if> <c:if test="${order.state=='待评价'}"> <td> <span class="status">快件已签收</span><br /> <a class="text-info" href="uc-order-detail.jsp">订单详情</a><br /> <a class="text-info" href="">查看物流</a> </td> <td> <a href="" class="ui-btn-theme uc-btn-md">评价</a> <a href="" class="ui-btn-low ui-btn-hollow uc-btn-md mt10">${order.state}</a> </td> </c:if> </tr> </c:forEach> ``` <resultMap type="Order" id="myOrder"> <id column="orderNumber" property="orderNumber" /> <result column="aid" property="aid" /> <result column="uid" property="uid" /> <result column="totalMoney" property="totalMoney" /> <result column="payType" property="payType" /> <result column="payTime" property="payTime" /> <result column="buyTime" property="buyTime" /> <result column="finishTime" property="finishTime" /> <result column="remark" property="remark" /> <result column="state" property="state" /> <collection property="pro" ofType="Product"> <id column="id" property="id" /> <result column="proName" property="proName" /> <result column="proType" property="proType" /> <result column="putaway" property="putaway" /> <result column="proPicture" property="proPicture" /> </collection> <collection property="orderPro" ofType="OrderProduct"> <id column="id" property="id" /> <result column="orderNumber" property="orderNumber" /> <result column="pid" property="pid" /> <result column="proName" property="proName" /> <result column="proPicture" property="proPicture" /> <result column="color" property="color" /> <result column="memory" property="memory" /> <result column="count" property="count" /> <result column="price" property="price" /> </collection> <collection property="spe" ofType="Specification"> <id column="id" property="id" /> <result column="pid" property="pid" /> <result column="brand" property="brand" /> <result column="color" property="color" /> <result column="memory" property="memory" /> <result column="storage" property="storage" /> <result column="inventory" property="inventory" /> <result column="originalPrice" property="originalPrice" /> <result column="presentPrice" property="presentPrice" /> <result column="saleVolume" property="saleVolume" /> </collection> <collection property="a" ofType="Address"> <id column="id" property="id" /> <result column="uid" property="uid" /> <result column="consignee" property="consignee" /> <result column="phone" property="phone" /> <result column="province" property="province" /> <result column="city" property="city" /> <result column="district" property="district" /> <result column="detail" property="detail" /> <result column="default1" property="default1" /> </collection> </resultMap> ```
Time to Graduate 时间的问题
Problem Description A prospective CS student is investigating how many semesters it will take to graduate from a variety of different universities. Each university provides a list of required courses, their prerequisites, and when each course is offered. Given this information, determine the minimum number of semesters to graduate. Consider the following example. A student is required to take 4 courses, mt42, cs123, cs456, and cs789. mt42 is only offered in the fall semester and has no prerequisites. Similarly, cs123 is only offered in the spring semester and has no prerequisites. cs456 is only offered in the spring semester and has both cs123 and mt42 as prerequisites. Finally, cs789 is offered in both fall and spring and has cs456 as its only prerequisite. The shortest time to graduate is 5 semesters, by taking mt42 in the fall, cs123 in the next spring, cs456 the following spring (since it is not offered in the fall) and finally cs789 the following fall. For this problem, there are only two semesters, fall and spring. Always start counting semesters from the fall. In addition to the fall/spring scheduling issues, there is one slight complication. In order to keep the dormitories full, each university limits the number of courses that can be taken in any semester. This limit appears as part of the input data. The third example below illustrates this issue. Input There are one to twenty-five data sets, followed by a final line containing only the integers -1 -1. A data set starts with a line containing two positive integers n, 1 ≤ n ≤ 12, which is the number of courses in this data set and m, 2 ≤ m ≤ 6, which is the maximum number of courses that can be taken in any single semester. The next line contains the n course identifiers. Each is a 1-5 character string from the set {a-z, 0-9}. Following the course identifiers is the individual course information. This consists of n lines, one line for each course, containing the course identifier, semester offered('F'=Fall, 'S'=Spring, 'B'=Both semesters), the number of prerequisite courses, p, 0 ≤ p ≤ 5, and finally p prerequisite course identifiers. The first example data set below corresponds to the problem described above. Output The output contains one line for each data set, formatted as shown in the sample output. Sample Input 4 6 cs123 mt42 cs456 cs789 mt42 F 0 cs123 S 0 cs456 S 2 cs123 mt42 cs789 B 1 cs456 3 6 math1 comp2 comp3 comp3 S 1 comp2 math1 S 0 comp2 F 1 math1 4 3 m10 m20 c33 c44 m10 B 0 m20 B 0 c33 B 0 c44 B 0 -1 -1 Sample Output The minimum number of semesters required to graduate is 5. The minimum number of semesters required to graduate is 4. The minimum number of semesters required to graduate is 2.
为什么验证码只显示干扰线不显示数字
![图片说明](https://img-ask.csdn.net/upload/201912/03/1575339269_53630.png) <?php 、 namespace Think; class Verify { protected $config = array( 'seKey' => 'ThinkPHP.CN', // 验证码加密密钥 'codeSet' => '2345678abcdefhijkmnpqrstuvwxyzABCDEFGHJKLMNPQRTUVWXY', // 验证码字符集合 'expire' => 1800, // 验证码过期时间(s) 'useZh' => false, // 使用中文验证码 'zhSet' => ' * 架构方法 设置参数 * @access public * @param array $config 配置参数 */ public function __construct($config=array()){ $this->config = array_merge($this->config, $config); } /** * 使用 $this->name 获取配置 * @access public * @param string $name 配置名称 * @return multitype 配置值 */ public function __get($name) { return $this->config[$name]; } /** * 设置验证码配置 * @access public * @param string $name 配置名称 * @param string $value 配置值 * @return void */ public function __set($name,$value){ if(isset($this->config[$name])) { $this->config[$name] = $value; } } /** * 检查配置 * @access public * @param string $name 配置名称 * @return bool */ public function __isset($name){ return isset($this->config[$name]); } /** * 验证验证码是否正确 * @access public * @param string $code 用户验证码 * @param string $id 验证码标识 * @return bool 用户验证码是否正确 */ public function check($code, $id = '') { $key = $this->authcode($this->seKey).$id; // 验证码不能为空 $secode = session($key); if(empty($code) || empty($secode)) { return false; } // session 过期 if(NOW_TIME - $secode['verify_time'] > $this->expire) { session($key, null); return false; } if($this->authcode(strtoupper($code)) == $secode['verify_code']) { $this->reset && session($key, null); return true; } return false; } /** * 输出验证码并把验证码的值保存的session中 * 验证码保存到session的格式为: array('verify_code' => '验证码值', 'verify_time' => '验证码创建时间'); * @access public * @param string $id 要生成验证码的标识 * @return void */ public function entry($id = '',$fag=null) { // 图片宽(px) $this->imageW || $this->imageW = $this->length*$this->fontSize*1.5 + $this->length*$this->fontSize/2; // 图片高(px) $this->imageH || $this->imageH = $this->fontSize * 2.5; // 建立一幅 $this->imageW x $this->imageH 的图像 $this->_image = imagecreate($this->imageW, $this->imageH); // 设置背景 imagecolorallocate($this->_image, $this->bg[0], $this->bg[1], $this->bg[2]); // 验证码字体随机颜色 $this->_color = imagecolorallocate($this->_image, mt_rand(1,150), mt_rand(1,150), mt_rand(1,150)); // 验证码使用随机字体 $ttfPath = dirname(__FILE__) . '/Verify/' . ($this->useZh ? 'zhttfs' : 'ttfs') . '/'; if(empty($this->fontttf)){ $dir = dir($ttfPath); $ttfs = array(); while (false !== ($file = $dir->read())) { if($file[0] != '.' && substr($file, -4) == '.ttf') { $ttfs[] = $file; } } $dir->close(); $this->fontttf = $ttfs[array_rand($ttfs)]; } $this->fontttf = $ttfPath . $this->fontttf; if($this->useImgBg) { $this->_background(); } if ($this->useNoise) { // 绘杂点 $this->_writeNoise(); } if ($this->useCurve) { // 绘干扰线 $this->_writeCurve(); } // 绘验证码 $code = array(); // 验证码 $codeNX = 0; // 验证码第N个字符的左边距 if($this->useZh){ // 中文验证码 for ($i = 0; $i<$this->length; $i++) { $code[$i] = iconv_substr($this->zhSet,floor(mt_rand(0,mb_strlen($this->zhSet,'utf-8')-1)),1,'utf-8'); imagettftext($this->_image, $this->fontSize, mt_rand(-40, 40), $this->fontSize*($i+1)*1.5, $this->fontSize + mt_rand(10, 20), $this->_color, $this->fontttf, $code[$i]); } }else{ for ($i = 0; $i<$this->length; $i++) { $code[$i] = $this->codeSet[mt_rand(0, strlen($this->codeSet)-1)]; $codeNX += mt_rand($this->fontSize*1.2, $this->fontSize*1.6); imagettftext($this->_image, $this->fontSize, mt_rand(-40, 40), $codeNX, $this->fontSize*1.6, $this->_color, $this->fontttf, $code[$i]); } } // 保存验证码 $key = $this->authcode($this->seKey); $code2 = $code ; $code = $this->authcode(strtoupper(implode('', $code))); $secode = array(); $secode['verify_code'] = $code; // 把校验码保存到session $secode['verify_time'] = NOW_TIME; // 验证码创建时间 session($key.$id, $secode); header('Cache-Control: private, max-age=0, no-store, no-cache, must-revalidate'); header('Cache-Control: post-check=0, pre-check=0', false); header('Pragma: no-cache'); header("content-type: image/png"); if($fag)return $code2; // 输出图像 imagepng($this->_image); imagedestroy($this->_image); } /** * 画一条由两条连在一起构成的随机正弦函数曲线作干扰线(你可以改成更帅的曲线函数) * * 高中的数学公式咋都忘了涅,写出来 * 正弦型函数解析式:y=Asin(ωx+φ)+b * 各常数值对函数图像的影响: * A:决定峰值(即纵向拉伸压缩的倍数) * b:表示波形在Y轴的位置关系或纵向移动距离(上加下减) * φ:决定波形与X轴位置关系或横向移动距离(左加右减) * ω:决定周期(最小正周期T=2π/∣ω∣) * */ private function _writeCurve() { $px = $py = 0; // 曲线前部分 $A = mt_rand(1, $this->imageH/2); // 振幅 $b = mt_rand(-$this->imageH/4, $this->imageH/4); // Y轴方向偏移量 $f = mt_rand(-$this->imageH/4, $this->imageH/4); // X轴方向偏移量 $T = mt_rand($this->imageH, $this->imageW*2); // 周期 $w = (2* M_PI)/$T; $px1 = 0; // 曲线横坐标起始位置 $px2 = mt_rand($this->imageW/2, $this->imageW * 0.8); // 曲线横坐标结束位置 for ($px=$px1; $px<=$px2; $px = $px + 1) { if ($w!=0) { $py = $A * sin($w*$px + $f)+ $b + $this->imageH/2; // y = Asin(ωx+φ) + b $i = (int) ($this->fontSize/5); while ($i > 0) { imagesetpixel($this->_image, $px + $i , $py + $i, $this->_color); // 这里(while)循环画像素点比imagettftext和imagestring用字体大小一次画出(不用这while循环)性能要好很多 $i--; } } } // 曲线后部分 $A = mt_rand(1, $this->imageH/2); // 振幅 $f = mt_rand(-$this->imageH/4, $this->imageH/4); // X轴方向偏移量 $T = mt_rand($this->imageH, $this->imageW*2); // 周期 $w = (2* M_PI)/$T; $b = $py - $A * sin($w*$px + $f) - $this->imageH/2; $px1 = $px2; $px2 = $this->imageW; for ($px=$px1; $px<=$px2; $px=$px+ 1) { if ($w!=0) { $py = $A * sin($w*$px + $f)+ $b + $this->imageH/2; // y = Asin(ωx+φ) + b $i = (int) ($this->fontSize/5); while ($i > 0) { imagesetpixel($this->_image, $px + $i, $py + $i, $this->_color); $i--; } } } } /** * 画杂点 * 往图片上写不同颜色的字母或数字 */ private function _writeNoise() { $codeSet = '2345678abcdefhijkmnpqrstuvwxyz'; for($i = 0; $i < 10; $i++){ //杂点颜色 $noiseColor = imagecolorallocate($this->_image, mt_rand(150,225), mt_rand(150,225), mt_rand(150,225)); for($j = 0; $j < 5; $j++) { // 绘杂点 imagestring($this->_image, 5, mt_rand(-10, $this->imageW), mt_rand(-10, $this->imageH), $codeSet[mt_rand(0, 29)], $noiseColor); } } } /** * 绘制背景图片 * 注:如果验证码输出图片比较大,将占用比较多的系统资源 */ private function _background() { $path = dirname(__FILE__).'/Verify/bgs/'; $dir = dir($path); $bgs = array(); while (false !== ($file = $dir->read())) { if($file[0] != '.' && substr($file, -4) == '.jpg') { $bgs[] = $path . $file; } } $dir->close(); $gb = $bgs[array_rand($bgs)]; list($width, $height) = @getimagesize($gb); // Resample $bgImage = @imagecreatefromjpeg($gb); @imagecopyresampled($this->_image, $bgImage, 0, 0, 0, 0, $this->imageW, $this->imageH, $width, $height); @imagedestroy($bgImage); } /* 加密验证码 */ private function authcode($str){ $key = substr(md5($this->seKey), 5, 8); $str = substr(md5($str), 8, 10); return md5($key . $str); } } ``` ```
xl2tpd客户端连接vpn服务端,客户端能够ping通服务器,ppp节点消失又重新出现?
1. xl2tpd客户端连接xl2tpd服务端,能连接上,客户端总能够ping通vpn server的ip,但好像总是断线,ppp节点消失一会又重新出现,又消失一会又重新出现,断断续续,且大部分处于ppp节点消失状态,网上说可能是由于无法访问vpn server的ip,但我这里总能够访问,哪位好心人如果知道,请帮助我,非常谢谢**** 我的xl2tpd版本: xl2tpd version: xl2tpd-1.3.6 ipsec版本: ipsec --version Linux Openswan U2.6.41/K3.16.0-30-generic (netkey) See `ipsec --copyright' for copyright information 发现客户端有时能够ping通www.baidu.com, 只有在有ppp节点时才能ping通,但是ppp节点又会马上消失,消失一会,又会重新出现,导致ping www.baidu.com出现: ping: sendmsg: Network is unreachable ping: sendmsg: Network is unreachable 64 bytes from 180.97.33.108: icmp_seq=8 ttl=53 time=27.1 ms 64 bytes from 180.97.33.108: icmp_seq=9 ttl=53 time=28.9 ms ping: sendmsg: Network is unreachable xl2tpd客户端的重要日志截取如下: xl2tpd[19900]: Maximum retries exceeded for tunnel 407. Closing. xl2tpd[19900]: Connection 8180 closed to 172.16.58.156, port 1701 (Timeout) rep pxl2tpd[19900]: Calling on tunnel 407 xl2tpd[19900]: Connection established to 172.16.58.156, 1701. Local: 49178, Remote: 10621 (ref=0/0). xl2tpd[19900]: Calling on tunnel 49178 xl2tpd[19900]: Call established with 172.16.58.156, Local: 10180, Remote: 475, Serial: 5 (ref=0/0) xl2tpd[19900]: Maximum retries exceeded for tunnel 49178. C. xl2tpd[19900]: Connection 10621 closed to 172.16.58.156, port 1701 (Timeout) xl2tpd[19900]: Calling on tunnel 49178 xl2tpd[19900]: Unable to deliver closing message for tunnel 49178. Destroyin. xl2tpd[19900]: Connection established to 172.16.58.156, 1701. Local: 1714, Remote: 37563 (ref=0/0). xl2tpd[19900]: Calling on tunnel 1714 xl2tpd[19900]: Call established with 172.16.58.156, Local: 32155, Remote: 7405, Serial: 7 (ref=0/0) xl2tpd[19900]: Maximum retries exceeded for tunnel 1714. Closing. xl2tpd[19900]: Connection 37563 closed to 172.16.58.156, port 1701 (Timeout) xl2tpd[19900]: Calling on tunnel 1714 xl2tpd[19900]: Unable to deliver closing message for tunnel 1714. Destroying. xl2tpd[19900]: Maximum retries exceeded for tunnel 45677. Closing. xl2tpd[19900]: Connection 54518 closed to 172.16.58.156, port 1701 (Timeout) xl2tpd[19900]: Unable to deliver closing message for tunnel 45677. Destroying anyway. xl2tpd[19900]: Maximum retries exceeded for tunnel 54466. Closing. xl2tpd[19900]: Connection 7278 closed to 172.16.58.156, port 1701 (Timeout) xl2tpd[19900]: get_call: can't find call 2529 in tunnel 54466 (ref=0/0)xl2tpd[19900]: get_call: can't find call 2529 in tunnel 54466 (ref=0/0)xl2tpd[19900]: get_call: can't find call 2529 in tunnel 54466 服务器xl2tpd日志如下: Oct 9 10:45:36 xxx-HP-Pro-3340-MT xl2tpd[16024]: Connection established to 172.16.58.154, 1701. Local: 18126, Remote: 32355 (ref=0/0). LNS session is 'default' Oct 9 10:45:36 xxx-HP-Pro-3340-MT xl2tpd[16024]: control_finish: Warning: Peer did not specify transmit speed Oct 9 10:45:36 xxx-HP-Pro-3340-MT xl2tpd[16024]: start_pppd: I'm running: Oct 9 10:45:36 xxx-HP-Pro-3340-MT xl2tpd[16024]: "/usr/sbin/pppd" Oct 9 10:45:36 xxx-HP-Pro-3340-MT xl2tpd[16024]: "passive" Oct 9 10:45:36 xxx-HP-Pro-3340-MT xl2tpd[16024]: "nodetach" Oct 9 10:45:36 xxx-HP-Pro-3340-MT xl2tpd[16024]: "172.16.58.156:172.16.58.19" Oct 9 10:45:36 xxx-HP-Pro-3340-MT xl2tpd[16024]: "refuse-pap" Oct 9 10:45:36 xxx-HP-Pro-3340-MT xl2tpd[16024]: "auth" Oct 9 10:45:36 xxx-HP-Pro-3340-MT xl2tpd[16024]: "require-chap" Oct 9 10:45:36 xxx-HP-Pro-3340-MT xl2tpd[16024]: "debug" Oct 9 10:45:36 xxx-HP-Pro-3340-MT xl2tpd[16024]: "file" Oct 9 10:45:36 xxx-HP-Pro-3340-MT xl2tpd[16024]: "/etc/ppp/options.xl2tpd" Oct 9 10:45:36 xxx-HP-Pro-3340-MT xl2tpd[16024]: "/dev/pts/32" Oct 9 10:45:36 xxx-HP-Pro-3340-MT xl2tpd[16024]: Call established with 172.16.58.154, Local: 7015, Remote: 40202, Serial: 1 Oct 9 10:45:36 xxx-HP-Pro-3340-MT pppd[29290]: pppd 2.4.5 started by root, uid 0 Oct 9 10:45:36 xxx-HP-Pro-3340-MT pppd[29290]: using channel 846 Oct 9 10:45:36 xxx-HP-Pro-3340-MT pppd[29290]: Using interface ppp4 Oct 9 10:45:36 xxx-HP-Pro-3340-MT pppd[29290]: Connect: ppp4 <--> /dev/pts/32 Oct 9 10:45:36 xxx-HP-Pro-3340-MT pppd[29290]: sent [LCP ConfReq id=0x1 <mru 1200> <asyncmap 0x0> <auth chap MD5> <magic 0xd33f6b86> <pcomp> <accomp>] Oct 9 10:45:36 xxx-HP-Pro-3340-MT NetworkManager[701]: SCPlugin-Ifupdown: devices added (path: /sys/devices/virtual/net/ppp4, iface: ppp4) Oct 9 10:45:36 xxx-HP-Pro-3340-MT NetworkManager[701]: SCPlugin-Ifupdown: device added (path: /sys/devices/virtual/net/ppp4, iface: ppp4): no ifupdown configuration found. Oct 9 10:45:36 xxx-HP-Pro-3340-MT NetworkManager[701]: <warn> /sys/devices/virtual/net/ppp4: couldn't determine device driver; ignoring... Oct 9 10:45:36 xxx-HP-Pro-3340-MT pppd[29290]: rcvd [LCP ConfReq id=0x1 <mru 1452> <asyncmap 0x0> <magic 0xcc4ce9e6> <pcomp> <accomp>] Oct 9 10:45:36 xxx-HP-Pro-3340-MT pppd[29290]: sent [LCP ConfAck id=0x1 <mru 1452> <asyncmap 0x0> <magic 0xcc4ce9e6> <pcomp> <accomp>] Oct 9 10:45:37 xxx-HP-Pro-3340-MT xl2tpd[16024]: control_finish: Peer requested tunnel 32355 twice, ignoring second one. Oct 9 10:45:37 xxx-HP-Pro-3340-MT xl2tpd[16024]: check_control: Received out of order control packet on tunnel 32355 (got 1, expected 4) Oct 9 10:45:37 xxx-HP-Pro-3340-MT xl2tpd[16024]: handle_packet: bad control packet! Oct 9 10:45:37 xxx-HP-Pro-3340-MT xl2tpd[16024]: check_control: Received out of order control packet on tunnel 32355 (got 2, expected 4) Oct 9 10:45:37 xxx-HP-Pro-3340-MT xl2tpd[16024]: handle_packet: bad control packet! Oct 9 10:45:37 xxx-HP-Pro-3340-MT xl2tpd[16024]: check_control: Received out of order control packet on tunnel 32355 (got 3, expected 4) Oct 9 10:45:37 xxx-HP-Pro-3340-MT xl2tpd[16024]: handle_packet: bad control packet! Oct 9 10:45:38 xxx-HP-Pro-3340-MT xl2tpd[16024]: control_finish: Peer requested tunnel 32355 twice, ignoring second one. Oct 9 10:45:38 xxx-HP-Pro-3340-MT xl2tpd[16024]: check_control: Received out of order control packet on tunnel 32355 (got 1, expected 4) Oct 9 10:45:38 xxx-HP-Pro-3340-MT xl2tpd[16024]: handle_packet: bad control packet! Oct 9 10:45:38 xxx-HP-Pro-3340-MT xl2tpd[16024]: check_control: Received out of order control packet on tunnel 32355 (got 2, expected 4) Oct 9 10:45:38 xxx-HP-Pro-3340-MT xl2tpd[16024]: handle_packet: bad control packet! Oct 9 10:45:38 xxx-HP-Pro-3340-MT xl2tpd[16024]: check_control: Received out of order control packet on tunnel 32355 (got 3, expected 4) Oct 9 10:45:38 xxx-HP-Pro-3340-MT xl2tpd[16024]: handle_packet: bad control packet! Oct 9 10:45:39 xxx-HP-Pro-3340-MT xl2tpd[16024]: control_finish: Peer requested tunnel 32355 twice, ignoring second one. Oct 9 10:45:39 xxx-HP-Pro-3340-MT xl2tpd[16024]: check_control: Received out of order control packet on tunnel 32355 (got 1, expected 4) Oct 9 10:45:39 xxx-HP-Pro-3340-MT xl2tpd[16024]: handle_packet: bad control packet! Oct 9 10:45:39 xxx-HP-Pro-3340-MT xl2tpd[16024]: check_control: Received out of order control packet on tunnel 32355 (got 2, expected 4) Oct 9 10:45:39 xxx-HP-Pro-3340-MT xl2tpd[16024]: handle_packet: bad control packet! Oct 9 10:45:39 xxx-HP-Pro-3340-MT xl2tpd[16024]: check_control: Received out of order control packet on tunnel 32355 (got 3, expected 4) Oct 9 10:45:39 xxx-HP-Pro-3340-MT xl2tpd[16024]: handle_packet: bad control packet! Oct 9 10:45:39 xxx-HP-Pro-3340-MT pppd[29290]: sent [LCP ConfReq id=0x1 <mru 1200> <asyncmap 0x0> <auth chap MD5> <magic 0xd33f6b86> <pcomp> <accomp>] Oct 9 10:45:39 xxx-HP-Pro-3340-MT pppd[29290]: rcvd [LCP ConfAck id=0x1 <mru 1200> <asyncmap 0x0> <auth chap MD5> <magic 0xd33f6b86> <pcomp> <accomp>] Oct 9 10:45:39 xxx-HP-Pro-3340-MT pppd[29290]: sent [LCP EchoReq id=0x0 magic=0xd33f6b86] Oct 9 10:45:39 xxx-HP-Pro-3340-MT pppd[29290]: sent [CHAP Challenge id=0x89 <ce6fb35902efa8bbed0b299da4c6ab7c>, name = "l2tpd"] Oct 9 10:45:39 xxx-HP-Pro-3340-MT pppd[29290]: rcvd [LCP EchoRep id=0x0 magic=0xcc4ce9e6] Oct 9 10:45:39 xxx-HP-Pro-3340-MT pppd[29290]: rcvd [CHAP Response id=0x89 <6be4607b40e675dff8ba8be483ad5ef3>, name = "user1"] Oct 9 10:45:39 xxx-HP-Pro-3340-MT pppd[29290]: sent [CHAP Success id=0x89 "Access granted"] Oct 9 10:45:39 xxx-HP-Pro-3340-MT pppd[29290]: sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>] Oct 9 10:45:39 xxx-HP-Pro-3340-MT pppd[29290]: sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 172.16.58.156>] Oct 9 10:45:39 xxx-HP-Pro-3340-MT pppd[29290]: rcvd [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>] Oct 9 10:45:39 xxx-HP-Pro-3340-MT pppd[29290]: sent [IPCP ConfNak id=0x1 <addr 172.16.58.19> <ms-dns1 172.16.58.3> <ms-dns2 172.16.58.11>] Oct 9 10:45:39 xxx-HP-Pro-3340-MT pppd[29290]: rcvd [LCP ProtRej id=0x2 80 fd 01 01 00 0f 1a 04 78 00 18 04 78 00 15 03 2f] Oct 9 10:45:39 xxx-HP-Pro-3340-MT pppd[29290]: Protocol-Reject for 'Compression Control Protocol' (0x80fd) received Oct 9 10:45:39 xxx-HP-Pro-3340-MT pppd[29290]: rcvd [IPCP ConfAck id=0x1 <compress VJ 0f 01> <addr 172.16.58.156>] Oct 9 10:45:39 xxx-HP-Pro-3340-MT pppd[29290]: rcvd [IPCP ConfReq id=0x2 <compress VJ 0f 01> <addr 172.16.58.19> <ms-dns1 172.16.58.3> <ms-dns2 172.16.58.11>] Oct 9 10:45:39 xxx-HP-Pro-3340-MT pppd[29290]: sent [IPCP ConfAck id=0x2 <compress VJ 0f 01> <addr 172.16.58.19> <ms-dns1 172.16.58.3> <ms-dns2 172.16.58.11>] Oct 9 10:45:39 xxx-HP-Pro-3340-MT pppd[29290]: found interface eth0 for proxy arp Oct 9 10:45:39 xxx-HP-Pro-3340-MT pppd[29290]: local IP address 172.16.58.156 Oct 9 10:45:39 xxx-HP-Pro-3340-MT pppd[29290]: remote IP address 172.16.58.19 Oct 9 10:45:39 xxx-HP-Pro-3340-MT pppd[29290]: Script /etc/ppp/ip-up started (pid 29320) Oct 9 10:45:39 xxx-HP-Pro-3340-MT pppd[29290]: Script /etc/ppp/ip-up finished (pid 29320), status = 0x0 Oct 9 10:45:40 xxx-HP-Pro-3340-MT xl2tpd[16024]: control_finish: Peer requested tunnel 32355 twice, ignoring second one. Oct 9 10:45:40 xxx-HP-Pro-3340-MT xl2tpd[16024]: check_control: Received out of order control packet on tunnel 32355 (got 1, expected 4) Oct 9 10:45:40 xxx-HP-Pro-3340-MT xl2tpd[16024]: handle_packet: bad control packet! Oct 9 10:45:40 xxx-HP-Pro-3340-MT xl2tpd[16024]: check_control: Received out of order control packet on tunnel 32355 (got 2, expected 4) Oct 9 10:45:40 xxx-HP-Pro-3340-MT xl2tpd[16024]: handle_packet: bad control packet! Oct 9 10:45:40 xxx-HP-Pro-3340-MT xl2tpd[16024]: check_control: Received out of order control packet on tunnel 32355 (got 3, expected 4) Oct 9 10:45:40 xxx-HP-Pro-3340-MT xl2tpd[16024]: handle_packet: bad control packet! Oct 9 10:45:41 xxx-HP-Pro-3340-MT xl2tpd[16024]: control_finish: Connection closed to 172.16.58.154, port 1701 (Timeout), Local: 18126, Remote: 32355 Oct 9 10:45:41 xxx-HP-Pro-3340-MT xl2tpd[16024]: Terminating pppd: sending TERM signal to pid 29290 Oct 9 10:45:41 xxx-HP-Pro-3340-MT pppd[29290]: Hangup (SIGHUP) Oct 9 10:45:41 xxx-HP-Pro-3340-MT pppd[29290]: Terminating on signal 15 Oct 9 10:45:41 xxx-HP-Pro-3340-MT pppd[29290]: Modem hangup Oct 9 10:45:41 xxx-HP-Pro-3340-MT pppd[29290]: Connect time 0.1 minutes. Oct 9 10:45:41 xxx-HP-Pro-3340-MT pppd[29290]: Sent 0 bytes, received 120 bytes. Oct 9 10:45:41 xxx-HP-Pro-3340-MT pppd[29290]: Script /etc/ppp/ip-down started (pid 29337) Oct 9 10:45:41 xxx-HP-Pro-3340-MT pppd[29290]: Connection terminated. Oct 9 10:45:41 xxx-HP-Pro-3340-MT NetworkManager[701]: SCPlugin-Ifupdown: devices removed (path: /sys/devices/virtual/net/ppp4, iface: ppp4) Oct 9 10:45:41 xxx-HP-Pro-3340-MT pppd[29290]: Script /etc/ppp/ip-down finished (pid 29337), status = 0x0 Oct 9 10:45:41 xxx-HP-Pro-3340-MT pppd[29290]: Exit. Oct 9 10:45:42 xxx-HP-Pro-3340-MT xl2tpd[16024]: Can not find tunnel 18126 (refhim=0) Oct 9 10:45:42 xxx-HP-Pro-3340-MT xl2tpd[16024]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 18126 Dumping. Oct 9 10:45:42 xxx-HP-Pro-3340-MT xl2tpd[16024]: Can not find tunnel 18126 (refhim=0) Oct 9 10:45:42 xxx-HP-Pro-3340-MT xl2tpd[16024]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 18126 Dumping. Oct 9 10:45:43 xxx-HP-Pro-3340-MT xl2tpd[16024]: Can not find tunnel 18126 (refhim=0) Oct 9 10:45:43 xxx-HP-Pro-3340-MT xl2tpd[16024]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 18126 Dumping. Oct 9 10:45:43 xxx-HP-Pro-3340-MT xl2tpd[16024]: Can not find tunnel 18126 (refhim=0) Oct 9 10:45:43 xxx-HP-Pro-3340-MT xl2tpd[16024]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 18126 Dumping. Oct 9 10:45:44 xxx-HP-Pro-3340-MT xl2tpd[16024]: Can not find tunnel 18126 (refhim=0) Oct 9 10:45:44 xxx-HP-Pro-3340-MT xl2tpd[16024]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 18126 Dumping. Oct 9 10:45:44 xxx-HP-Pro-3340-MT xl2tpd[16024]: Can not find tunnel 18126 (refhim=0) Oct 9 10:45:44 xxx-HP-Pro-3340-MT xl2tpd[16024]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 18126 Dumping. Oct 9 10:45:45 xxx-HP-Pro-3340-MT xl2tpd[16024]: Can not find tunnel 18126 (refhim=0) Oct 9 10:45:45 xxx-HP-Pro-3340-MT xl2tpd[16024]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 18126 Dumping. Oct 9 10:45:45 xxx-HP-Pro-3340-MT xl2tpd[16024]: Can not find tunnel 18126 (refhim=0) Oct 9 10:45:45 xxx-HP-Pro-3340-MT xl2tpd[16024]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 18126 Dumping.
Time to Graduate 程序的设计
Problem Description A prospective CS student is investigating how many semesters it will take to graduate from a variety of different universities. Each university provides a list of required courses, their prerequisites, and when each course is offered. Given this information, determine the minimum number of semesters to graduate. Consider the following example. A student is required to take 4 courses, mt42, cs123, cs456, and cs789. mt42 is only offered in the fall semester and has no prerequisites. Similarly, cs123 is only offered in the spring semester and has no prerequisites. cs456 is only offered in the spring semester and has both cs123 and mt42 as prerequisites. Finally, cs789 is offered in both fall and spring and has cs456 as its only prerequisite. The shortest time to graduate is 5 semesters, by taking mt42 in the fall, cs123 in the next spring, cs456 the following spring (since it is not offered in the fall) and finally cs789 the following fall. For this problem, there are only two semesters, fall and spring. Always start counting semesters from the fall. In addition to the fall/spring scheduling issues, there is one slight complication. In order to keep the dormitories full, each university limits the number of courses that can be taken in any semester. This limit appears as part of the input data. The third example below illustrates this issue. Input There are one to twenty-five data sets, followed by a final line containing only the integers -1 -1. A data set starts with a line containing two positive integers n, 1 ≤ n ≤ 12, which is the number of courses in this data set and m, 2 ≤ m ≤ 6, which is the maximum number of courses that can be taken in any single semester. The next line contains the n course identifiers. Each is a 1-5 character string from the set {a-z, 0-9}. Following the course identifiers is the individual course information. This consists of n lines, one line for each course, containing the course identifier, semester offered('F'=Fall, 'S'=Spring, 'B'=Both semesters), the number of prerequisite courses, p, 0 ≤ p ≤ 5, and finally p prerequisite course identifiers. The first example data set below corresponds to the problem described above. Output The output contains one line for each data set, formatted as shown in the sample output. Sample Input 4 6 cs123 mt42 cs456 cs789 mt42 F 0 cs123 S 0 cs456 S 2 cs123 mt42 cs789 B 1 cs456 3 6 math1 comp2 comp3 comp3 S 1 comp2 math1 S 0 comp2 F 1 math1 4 3 m10 m20 c33 c44 m10 B 0 m20 B 0 c33 B 0 c44 B 0 -1 -1 Sample Output The minimum number of semesters required to graduate is 5. The minimum number of semesters required to graduate is 4. The minimum number of semesters required to graduate is 2.
Time to Graduate 怎么来编写
Problem Description A prospective CS student is investigating how many semesters it will take to graduate from a variety of different universities. Each university provides a list of required courses, their prerequisites, and when each course is offered. Given this information, determine the minimum number of semesters to graduate. Consider the following example. A student is required to take 4 courses, mt42, cs123, cs456, and cs789. mt42 is only offered in the fall semester and has no prerequisites. Similarly, cs123 is only offered in the spring semester and has no prerequisites. cs456 is only offered in the spring semester and has both cs123 and mt42 as prerequisites. Finally, cs789 is offered in both fall and spring and has cs456 as its only prerequisite. The shortest time to graduate is 5 semesters, by taking mt42 in the fall, cs123 in the next spring, cs456 the following spring (since it is not offered in the fall) and finally cs789 the following fall. For this problem, there are only two semesters, fall and spring. Always start counting semesters from the fall. In addition to the fall/spring scheduling issues, there is one slight complication. In order to keep the dormitories full, each university limits the number of courses that can be taken in any semester. This limit appears as part of the input data. The third example below illustrates this issue. Input There are one to twenty-five data sets, followed by a final line containing only the integers -1 -1. A data set starts with a line containing two positive integers n, 1 ≤ n ≤ 12, which is the number of courses in this data set and m, 2 ≤ m ≤ 6, which is the maximum number of courses that can be taken in any single semester. The next line contains the n course identifiers. Each is a 1-5 character string from the set {a-z, 0-9}. Following the course identifiers is the individual course information. This consists of n lines, one line for each course, containing the course identifier, semester offered('F'=Fall, 'S'=Spring, 'B'=Both semesters), the number of prerequisite courses, p, 0 ≤ p ≤ 5, and finally p prerequisite course identifiers. The first example data set below corresponds to the problem described above. Output The output contains one line for each data set, formatted as shown in the sample output. Sample Input 4 6 cs123 mt42 cs456 cs789 mt42 F 0 cs123 S 0 cs456 S 2 cs123 mt42 cs789 B 1 cs456 3 6 math1 comp2 comp3 comp3 S 1 comp2 math1 S 0 comp2 F 1 math1 4 3 m10 m20 c33 c44 m10 B 0 m20 B 0 c33 B 0 c44 B 0 -1 -1 Sample Output The minimum number of semesters required to graduate is 5. The minimum number of semesters required to graduate is 4. The minimum number of semesters required to graduate is 2.
请高手帮忙抓取以下汽车品牌省份、城市和所有经销商所在的url,谢谢!
http://www.saicmg.com/purchase/dealer-search.html http://www.zotye.com/brand/dealer.html http://www.dfdongfeng.com.cn/index.php/dealer https://www.dffengguang.com.cn/dealer https://www.jetour.com.cn/buy/finddealer/ https://www.lynkco.com.cn/dealerquery https://www.venucia.com/buy/selection/find-dealer http://www.fxauto.com.cn/index.php/buy_dealers/ http://www.faw-benteng.com/dealer/index.html https://www.wey.com/query-dealer.html https://www.faw-hongqi.com.cn/server/wd/2 http://www.baicmotorsales.com/pc/dealer.html http://www.dfpv.com.cn/dealer.shtml https://www.saicmaxus.com/dealer.shtml https://www.jmc.com.cn/recruit https://www.renault-brilliance.com/index.php/buycar/dealer http://www.borgward.com.cn/dealers_search.shtml http://www.hantengauto.com/senver/index.html http://www.soueast-motor.com/content/index/12 http://www.dorcen.com/dealer.html http://www.haima.com/frmservice_2.aspx http://www.cowinhome.com/gw/kyfw/jxscx/index.shtml http://www.qoros.com/dealers/ https://www.exeedcars.com/dealer-locator http://www.oshanauto.com/service/dealers https://www.karryauto.cn/buy/finddealer/ http://www.fawmc.com/BrandSupport/dealer.shtml http://www.zhonghuacar.com/customer-net#maincontent http://www.swmmotors.com.cn/support-2_jxscx.php http://www.dfyl-luxgen.com/buy/lifehouse http://www.baicyx.com/service/dealer/ https://www.changheauto.com/Support/distributor.html http://www.bisu-auto.com/web/customer_list.jsp?store_type=2 http://www.hawtaimotor.com/list-35-1.html https://www.jac.com.cn/jacweb/fwwd/ http://auto.lifan.com/ser/jxs/ https://www.leopaard.com/network http://www.yemaauto.cn/index.php?s=/Home/Distributor/index.html https://www.geometryauto.com/purchase/dealers?mt=0551135287619299 https://www.leapmotor.com/expreience/expreienceStore.html http://www.qiantumotor.com/service/ https://www.tesla.cn/findus#/bounds/22.54768,113.962925,22.54768,113.962925?search=store https://www.enovatemotors.com/servers https://www.lixiang.com/service.html#map-page https://www.singulato.com/experience-hall/ https://www.dearcc.cn/serviceNetwork.html https://www.bjev.com.cn/html/query-dealer.html http://www.cheryev.cn/Buy/Distributor http://www.oraev.com/map.html?id=1 http://www.gacne.com.cn/show/25hours http://www.jmev.com/Buying/inquiries.html
板子上的xl2tpd客户端连接xl2tpd的vpn server,总是连接不上?
我在amlogic板子上,板子上为android系统,交叉编译xl2tpd,然后push到板子上,配置好相关配置文件,运行xl2tpd, 去连接ubantu14.04上的vpn server,vpn server使用的也是xl2tpd, 我用手机或另外一台ubantu系统都可以连接,运行板子上的xl2tpd,echo "c testvpn" > /var/run/xl2tpd/l2tp-control, ifconfig查看并没有ppp0节点,vpn server上的/var/log/syslog文件内容如下: Sep 29 10:45:44 xxx-HP-Pro-3340-MT xl2tpd[11194]: control_finish: Peer requested tunnel 2974 twice, ignoring second one. Sep 29 10:45:44 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 2974 (got 1, expected 5) Sep 29 10:45:44 xxx-HP-Pro-3340-MT xl2tpd[11194]: handle_packet: bad control packet! Sep 29 10:45:44 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 2974 (got 2, expected 5) Sep 29 10:45:44 xxx-HP-Pro-3340-MT xl2tpd[11194]: handle_packet: bad control packet! Sep 29 10:45:44 xxx-HP-Pro-3340-MT xl2tpd[11194]: get_call: can't find call 30468 in tunnel 46002#012 (ref=0/0) Sep 29 10:45:44 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 2974 (got 3, expected 5) Sep 29 10:45:44 xxx-HP-Pro-3340-MT xl2tpd[11194]: get_call: can't find call 30468 in tunnel 46002#012 (ref=0/0) Sep 29 10:45:44 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 2974 (got 4, expected 5) Sep 29 10:45:45 xxx-HP-Pro-3340-MT xl2tpd[11194]: control_finish: Peer requested tunnel 2974 twice, ignoring second one. Sep 29 10:45:45 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 2974 (got 1, expected 5) Sep 29 10:45:45 xxx-HP-Pro-3340-MT xl2tpd[11194]: handle_packet: bad control packet! Sep 29 10:45:45 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 2974 (got 2, expected 5) Sep 29 10:45:45 xxx-HP-Pro-3340-MT xl2tpd[11194]: handle_packet: bad control packet! Sep 29 10:45:45 xxx-HP-Pro-3340-MT xl2tpd[11194]: get_call: can't find call 30468 in tunnel 46002#012 (ref=0/0) Sep 29 10:45:45 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 2974 (got 3, expected 5) Sep 29 10:45:45 xxx-HP-Pro-3340-MT xl2tpd[11194]: get_call: can't find call 30468 in tunnel 46002#012 (ref=0/0) Sep 29 10:45:45 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 2974 (got 4, expected 5) Sep 29 10:45:46 xxx-HP-Pro-3340-MT xl2tpd[11194]: control_finish: Connection closed to 172.16.58.153, port 1701 (Timeout), Local: 46002, Remote: 2974 Sep 29 10:45:47 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 46002 (refhim=0) Sep 29 10:45:47 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 46002 Dumping. Sep 29 10:45:47 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 46002 (refhim=0) Sep 29 10:45:47 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 46002 Dumping. Sep 29 10:45:48 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 46002 (refhim=0) Sep 29 10:45:48 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 46002 Dumping. Sep 29 10:45:48 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 46002 (refhim=0) Sep 29 10:45:48 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 46002 Dumping. Sep 29 10:45:49 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 46002 (refhim=0) Sep 29 10:45:49 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 46002 Dumping. Sep 29 10:45:49 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 46002 (refhim=0) Sep 29 10:45:49 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 46002 Dumping. Sep 29 10:45:50 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 46002 (refhim=0) Sep 29 10:45:50 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 46002 Dumping. Sep 29 10:45:50 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 46002 (refhim=0) Sep 29 10:45:50 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 46002 Dumping. Sep 29 10:45:52 xxx-HP-Pro-3340-MT xl2tpd[11194]: Connection established to 172.16.58.153, 1701. Local: 41944, Remote: 5337 (ref=0/0). LNS session is 'default' Sep 29 10:45:52 xxx-HP-Pro-3340-MT xl2tpd[11194]: control_finish: Warning: Peer did not specify transmit speed Sep 29 10:45:52 xxx-HP-Pro-3340-MT xl2tpd[11194]: start_pppd: I'm running: Sep 29 10:45:52 xxx-HP-Pro-3340-MT xl2tpd[11194]: "/usr/sbin/pppd" Sep 29 10:45:52 xxx-HP-Pro-3340-MT xl2tpd[11194]: "passive" Sep 29 10:45:52 xxx-HP-Pro-3340-MT xl2tpd[11194]: "nodetach" Sep 29 10:45:52 xxx-HP-Pro-3340-MT xl2tpd[11194]: "172.16.58.156:172.16.58.4" Sep 29 10:45:52 xxx-HP-Pro-3340-MT xl2tpd[11194]: "refuse-pap" Sep 29 10:45:52 xxx-HP-Pro-3340-MT xl2tpd[11194]: "auth" Sep 29 10:45:52 xxx-HP-Pro-3340-MT xl2tpd[11194]: "require-chap" Sep 29 10:45:52 xxx-HP-Pro-3340-MT xl2tpd[11194]: "debug" Sep 29 10:45:52 xxx-HP-Pro-3340-MT xl2tpd[11194]: "file" Sep 29 10:45:52 xxx-HP-Pro-3340-MT xl2tpd[11194]: "/etc/ppp/options.xl2tpd" Sep 29 10:45:52 xxx-HP-Pro-3340-MT xl2tpd[11194]: "/dev/pts/17" Sep 29 10:45:52 xxx-HP-Pro-3340-MT xl2tpd[11194]: Call established with 172.16.58.153, Local: 38207, Remote: 31800, Serial: 343 Sep 29 10:45:52 xxx-HP-Pro-3340-MT pppd[22975]: pppd 2.4.5 started by root, uid 0 Sep 29 10:45:52 xxx-HP-Pro-3340-MT pppd[22975]: using channel 195 Sep 29 10:45:52 xxx-HP-Pro-3340-MT pppd[22975]: Using interface ppp0 Sep 29 10:45:52 xxx-HP-Pro-3340-MT pppd[22975]: Connect: ppp0 <--> /dev/pts/17 Sep 29 10:45:52 xxx-HP-Pro-3340-MT pppd[22975]: sent [LCP ConfReq id=0x1 <mru 1200> <asyncmap 0x0> <auth chap MD5> <magic 0xd6c18db4> <pcomp> <accomp>] Sep 29 10:45:52 xxx-HP-Pro-3340-MT NetworkManager[717]: SCPlugin-Ifupdown: devices added (path: /sys/devices/virtual/net/ppp0, iface: ppp0) Sep 29 10:45:52 xxx-HP-Pro-3340-MT NetworkManager[717]: SCPlugin-Ifupdown: device added (path: /sys/devices/virtual/net/ppp0, iface: ppp0): no ifupdown configuration found. Sep 29 10:45:52 xxx-HP-Pro-3340-MT NetworkManager[717]: <warn> /sys/devices/virtual/net/ppp0: couldn't determine device driver; ignoring... Sep 29 10:45:52 xxx-HP-Pro-3340-MT xl2tpd[11194]: control_finish: Connection closed to 172.16.58.153, serial 343 () Sep 29 10:45:52 xxx-HP-Pro-3340-MT xl2tpd[11194]: Terminating pppd: sending TERM signal to pid 22975 Sep 29 10:45:52 xxx-HP-Pro-3340-MT pppd[22975]: Terminating on signal 15 Sep 29 10:45:52 xxx-HP-Pro-3340-MT pppd[22975]: Modem hangup Sep 29 10:45:52 xxx-HP-Pro-3340-MT pppd[22975]: Connection terminated. Sep 29 10:45:52 xxx-HP-Pro-3340-MT NetworkManager[717]: SCPlugin-Ifupdown: devices removed (path: /sys/devices/virtual/net/ppp0, iface: ppp0) Sep 29 10:45:52 xxx-HP-Pro-3340-MT pppd[22975]: Exit. Sep 29 10:45:53 xxx-HP-Pro-3340-MT xl2tpd[11194]: control_finish: Peer requested tunnel 5337 twice, ignoring second one. Sep 29 10:45:53 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 5337 (got 1, expected 5) Sep 29 10:45:53 xxx-HP-Pro-3340-MT xl2tpd[11194]: handle_packet: bad control packet! Sep 29 10:45:53 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 5337 (got 2, expected 5) Sep 29 10:45:53 xxx-HP-Pro-3340-MT xl2tpd[11194]: handle_packet: bad control packet! Sep 29 10:45:53 xxx-HP-Pro-3340-MT xl2tpd[11194]: get_call: can't find call 38207 in tunnel 41944#012 (ref=0/0) Sep 29 10:45:53 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 5337 (got 3, expected 5) Sep 29 10:45:53 xxx-HP-Pro-3340-MT xl2tpd[11194]: get_call: can't find call 38207 in tunnel 41944#012 (ref=0/0) Sep 29 10:45:53 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 5337 (got 4, expected 5) Sep 29 10:45:54 xxx-HP-Pro-3340-MT xl2tpd[11194]: control_finish: Peer requested tunnel 5337 twice, ignoring second one. Sep 29 10:45:54 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 5337 (got 1, expected 5) Sep 29 10:45:54 xxx-HP-Pro-3340-MT xl2tpd[11194]: handle_packet: bad control packet! Sep 29 10:45:54 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 5337 (got 2, expected 5) Sep 29 10:45:54 xxx-HP-Pro-3340-MT xl2tpd[11194]: handle_packet: bad control packet! Sep 29 10:45:54 xxx-HP-Pro-3340-MT xl2tpd[11194]: get_call: can't find call 38207 in tunnel 41944#012 (ref=0/0) Sep 29 10:45:54 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 5337 (got 3, expected 5) Sep 29 10:45:54 xxx-HP-Pro-3340-MT xl2tpd[11194]: get_call: can't find call 38207 in tunnel 41944#012 (ref=0/0) Sep 29 10:45:54 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 5337 (got 4, expected 5) Sep 29 10:45:55 xxx-HP-Pro-3340-MT xl2tpd[11194]: control_finish: Peer requested tunnel 5337 twice, ignoring second one. Sep 29 10:45:55 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 5337 (got 1, expected 5) Sep 29 10:45:55 xxx-HP-Pro-3340-MT xl2tpd[11194]: handle_packet: bad control packet! Sep 29 10:45:55 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 5337 (got 2, expected 5) Sep 29 10:45:55 xxx-HP-Pro-3340-MT xl2tpd[11194]: handle_packet: bad control packet! Sep 29 10:45:55 xxx-HP-Pro-3340-MT xl2tpd[11194]: get_call: can't find call 38207 in tunnel 41944#012 (ref=0/0) Sep 29 10:45:55 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 5337 (got 3, expected 5) Sep 29 10:45:55 xxx-HP-Pro-3340-MT xl2tpd[11194]: get_call: can't find call 38207 in tunnel 41944#012 (ref=0/0) Sep 29 10:45:55 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 5337 (got 4, expected 5) Sep 29 10:45:56 xxx-HP-Pro-3340-MT xl2tpd[11194]: control_finish: Peer requested tunnel 5337 twice, ignoring second one. Sep 29 10:45:56 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 5337 (got 1, expected 5) Sep 29 10:45:56 xxx-HP-Pro-3340-MT xl2tpd[11194]: handle_packet: bad control packet! Sep 29 10:45:56 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 5337 (got 2, expected 5) Sep 29 10:45:56 xxx-HP-Pro-3340-MT xl2tpd[11194]: handle_packet: bad control packet! Sep 29 10:45:56 xxx-HP-Pro-3340-MT xl2tpd[11194]: get_call: can't find call 38207 in tunnel 41944#012 (ref=0/0) Sep 29 10:45:56 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 5337 (got 3, expected 5) Sep 29 10:45:56 xxx-HP-Pro-3340-MT xl2tpd[11194]: get_call: can't find call 38207 in tunnel 41944#012 (ref=0/0) Sep 29 10:45:56 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 5337 (got 4, expected 5) Sep 29 10:45:57 xxx-HP-Pro-3340-MT xl2tpd[11194]: control_finish: Connection closed to 172.16.58.153, port 1701 (Timeout), Local: 41944, Remote: 5337 Sep 29 10:45:58 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 41944 (refhim=0) Sep 29 10:45:58 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 41944 Dumping. Sep 29 10:45:58 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 41944 (refhim=0) Sep 29 10:45:58 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 41944 Dumping. Sep 29 10:45:59 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 41944 (refhim=0) Sep 29 10:45:59 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 41944 Dumping. Sep 29 10:45:59 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 41944 (refhim=0) Sep 29 10:45:59 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 41944 Dumping. Sep 29 10:46:00 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 41944 (refhim=0) Sep 29 10:46:00 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 41944 Dumping. Sep 29 10:46:00 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 41944 (refhim=0) Sep 29 10:46:00 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 41944 Dumping. Sep 29 10:46:01 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 41944 (refhim=0) Sep 29 10:46:01 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 41944 Dumping. Sep 29 10:46:01 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 41944 (refhim=0) Sep 29 10:46:01 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 41944 Dumping. Sep 29 10:46:03 xxx-HP-Pro-3340-MT xl2tpd[11194]: Connection established to 172.16.58.153, 1701. Local: 22881, Remote: 32980 (ref=0/0). LNS session is 'default' Sep 29 10:46:03 xxx-HP-Pro-3340-MT xl2tpd[11194]: control_finish: Warning: Peer did not specify transmit speed Sep 29 10:46:03 xxx-HP-Pro-3340-MT xl2tpd[11194]: start_pppd: I'm running: Sep 29 10:46:03 xxx-HP-Pro-3340-MT xl2tpd[11194]: "/usr/sbin/pppd" Sep 29 10:46:03 xxx-HP-Pro-3340-MT xl2tpd[11194]: "passive" Sep 29 10:46:03 xxx-HP-Pro-3340-MT xl2tpd[11194]: "nodetach" Sep 29 10:46:03 xxx-HP-Pro-3340-MT xl2tpd[11194]: "172.16.58.156:172.16.58.4" Sep 29 10:46:03 xxx-HP-Pro-3340-MT xl2tpd[11194]: "refuse-pap" Sep 29 10:46:03 xxx-HP-Pro-3340-MT xl2tpd[11194]: "auth" Sep 29 10:46:03 xxx-HP-Pro-3340-MT xl2tpd[11194]: "require-chap" Sep 29 10:46:03 xxx-HP-Pro-3340-MT xl2tpd[11194]: "debug" Sep 29 10:46:03 xxx-HP-Pro-3340-MT xl2tpd[11194]: "file" Sep 29 10:46:03 xxx-HP-Pro-3340-MT xl2tpd[11194]: "/etc/ppp/options.xl2tpd" Sep 29 10:46:03 xxx-HP-Pro-3340-MT xl2tpd[11194]: "/dev/pts/17" Sep 29 10:46:03 xxx-HP-Pro-3340-MT xl2tpd[11194]: Call established with 172.16.58.153, Local: 45526, Remote: 63226, Serial: 345 Sep 29 10:46:03 xxx-HP-Pro-3340-MT pppd[23034]: pppd 2.4.5 started by root, uid 0 Sep 29 10:46:03 xxx-HP-Pro-3340-MT pppd[23034]: using channel 196 Sep 29 10:46:03 xxx-HP-Pro-3340-MT pppd[23034]: Using interface ppp0 Sep 29 10:46:03 xxx-HP-Pro-3340-MT pppd[23034]: Connect: ppp0 <--> /dev/pts/17 Sep 29 10:46:03 xxx-HP-Pro-3340-MT pppd[23034]: sent [LCP ConfReq id=0x1 <mru 1200> <asyncmap 0x0> <auth chap MD5> <magic 0x7207f195> <pcomp> <accomp>] Sep 29 10:46:03 xxx-HP-Pro-3340-MT NetworkManager[717]: SCPlugin-Ifupdown: devices added (path: /sys/devices/virtual/net/ppp0, iface: ppp0) Sep 29 10:46:03 xxx-HP-Pro-3340-MT NetworkManager[717]: SCPlugin-Ifupdown: device added (path: /sys/devices/virtual/net/ppp0, iface: ppp0): no ifupdown configuration found. Sep 29 10:46:03 xxx-HP-Pro-3340-MT NetworkManager[717]: <warn> /sys/devices/virtual/net/ppp0: couldn't determine device driver; ignoring... Sep 29 10:46:03 xxx-HP-Pro-3340-MT xl2tpd[11194]: control_finish: Connection closed to 172.16.58.153, serial 345 () Sep 29 10:46:03 xxx-HP-Pro-3340-MT xl2tpd[11194]: Terminating pppd: sending TERM signal to pid 23034 Sep 29 10:46:03 xxx-HP-Pro-3340-MT pppd[23034]: Terminating on signal 15 Sep 29 10:46:03 xxx-HP-Pro-3340-MT pppd[23034]: Modem hangup Sep 29 10:46:03 xxx-HP-Pro-3340-MT pppd[23034]: Connection terminated. Sep 29 10:46:03 xxx-HP-Pro-3340-MT NetworkManager[717]: SCPlugin-Ifupdown: devices removed (path: /sys/devices/virtual/net/ppp0, iface: ppp0) Sep 29 10:46:03 xxx-HP-Pro-3340-MT pppd[23034]: Exit. Sep 29 10:46:04 xxx-HP-Pro-3340-MT xl2tpd[11194]: control_finish: Peer requested tunnel 32980 twice, ignoring second one. Sep 29 10:46:04 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 32980 (got 1, expected 5) Sep 29 10:46:04 xxx-HP-Pro-3340-MT xl2tpd[11194]: handle_packet: bad control packet! Sep 29 10:46:04 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 32980 (got 2, expected 5) Sep 29 10:46:04 xxx-HP-Pro-3340-MT xl2tpd[11194]: handle_packet: bad control packet! Sep 29 10:46:04 xxx-HP-Pro-3340-MT xl2tpd[11194]: get_call: can't find call 45526 in tunnel 22881#012 (ref=0/0) Sep 29 10:46:04 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 32980 (got 3, expected 5) Sep 29 10:46:04 xxx-HP-Pro-3340-MT xl2tpd[11194]: get_call: can't find call 45526 in tunnel 22881#012 (ref=0/0) Sep 29 10:46:04 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 32980 (got 4, expected 5) Sep 29 10:46:05 xxx-HP-Pro-3340-MT xl2tpd[11194]: control_finish: Peer requested tunnel 32980 twice, ignoring second one. Sep 29 10:46:05 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 32980 (got 1, expected 5) Sep 29 10:46:05 xxx-HP-Pro-3340-MT xl2tpd[11194]: handle_packet: bad control packet! Sep 29 10:46:05 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 32980 (got 2, expected 5) Sep 29 10:46:05 xxx-HP-Pro-3340-MT xl2tpd[11194]: handle_packet: bad control packet! Sep 29 10:46:05 xxx-HP-Pro-3340-MT xl2tpd[11194]: get_call: can't find call 45526 in tunnel 22881#012 (ref=0/0) Sep 29 10:46:05 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 32980 (got 3, expected 5) Sep 29 10:46:05 xxx-HP-Pro-3340-MT xl2tpd[11194]: get_call: can't find call 45526 in tunnel 22881#012 (ref=0/0) Sep 29 10:46:05 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 32980 (got 4, expected 5) Sep 29 10:46:06 xxx-HP-Pro-3340-MT xl2tpd[11194]: control_finish: Peer requested tunnel 32980 twice, ignoring second one. Sep 29 10:46:06 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 32980 (got 1, expected 5) Sep 29 10:46:06 xxx-HP-Pro-3340-MT xl2tpd[11194]: handle_packet: bad control packet! Sep 29 10:46:06 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 32980 (got 2, expected 5) Sep 29 10:46:06 xxx-HP-Pro-3340-MT xl2tpd[11194]: handle_packet: bad control packet! Sep 29 10:46:06 xxx-HP-Pro-3340-MT xl2tpd[11194]: get_call: can't find call 45526 in tunnel 22881#012 (ref=0/0) Sep 29 10:46:06 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 32980 (got 3, expected 5) Sep 29 10:46:06 xxx-HP-Pro-3340-MT xl2tpd[11194]: get_call: can't find call 45526 in tunnel 22881#012 (ref=0/0) Sep 29 10:46:06 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 32980 (got 4, expected 5) Sep 29 10:46:07 xxx-HP-Pro-3340-MT xl2tpd[11194]: control_finish: Peer requested tunnel 32980 twice, ignoring second one. Sep 29 10:46:07 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 32980 (got 1, expected 5) Sep 29 10:46:07 xxx-HP-Pro-3340-MT xl2tpd[11194]: handle_packet: bad control packet! Sep 29 10:46:07 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 32980 (got 2, expected 5) Sep 29 10:46:07 xxx-HP-Pro-3340-MT xl2tpd[11194]: handle_packet: bad control packet! Sep 29 10:46:07 xxx-HP-Pro-3340-MT xl2tpd[11194]: get_call: can't find call 45526 in tunnel 22881#012 (ref=0/0) Sep 29 10:46:07 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 32980 (got 3, expected 5) Sep 29 10:46:07 xxx-HP-Pro-3340-MT xl2tpd[11194]: get_call: can't find call 45526 in tunnel 22881#012 (ref=0/0) Sep 29 10:46:07 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 32980 (got 4, expected 5) Sep 29 10:46:08 xxx-HP-Pro-3340-MT xl2tpd[11194]: control_finish: Connection closed to 172.16.58.153, port 1701 (Timeout), Local: 22881, Remote: 32980 Sep 29 10:46:09 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 22881 (refhim=0) Sep 29 10:46:09 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 22881 Dumping. Sep 29 10:46:09 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 22881 (refhim=0) Sep 29 10:46:09 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 22881 Dumping. Sep 29 10:46:10 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 22881 (refhim=0) Sep 29 10:46:10 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 22881 Dumping. Sep 29 10:46:10 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 22881 (refhim=0) Sep 29 10:46:10 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 22881 Dumping. Sep 29 10:46:11 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 22881 (refhim=0) Sep 29 10:46:11 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 22881 Dumping. Sep 29 10:46:11 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 22881 (refhim=0) Sep 29 10:46:11 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 22881 Dumping. Sep 29 10:46:12 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 22881 (refhim=0) Sep 29 10:46:12 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 22881 Dumping. Sep 29 10:46:12 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 22881 (refhim=0) Sep 29 10:46:12 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 22881 Dumping. Sep 29 10:46:14 xxx-HP-Pro-3340-MT xl2tpd[11194]: Connection established to 172.16.58.153, 1701. Local: 11403, Remote: 49957 (ref=0/0). LNS session is 'default' Sep 29 10:46:14 xxx-HP-Pro-3340-MT xl2tpd[11194]: control_finish: Warning: Peer did not specify transmit speed Sep 29 10:46:14 xxx-HP-Pro-3340-MT xl2tpd[11194]: start_pppd: I'm running: Sep 29 10:46:14 xxx-HP-Pro-3340-MT xl2tpd[11194]: "/usr/sbin/pppd" Sep 29 10:46:14 xxx-HP-Pro-3340-MT xl2tpd[11194]: "passive" Sep 29 10:46:14 xxx-HP-Pro-3340-MT xl2tpd[11194]: "nodetach" Sep 29 10:46:14 xxx-HP-Pro-3340-MT xl2tpd[11194]: "172.16.58.156:172.16.58.4" Sep 29 10:46:14 xxx-HP-Pro-3340-MT xl2tpd[11194]: "refuse-pap" Sep 29 10:46:14 xxx-HP-Pro-3340-MT xl2tpd[11194]: "auth" Sep 29 10:46:14 xxx-HP-Pro-3340-MT xl2tpd[11194]: "require-chap" Sep 29 10:46:14 xxx-HP-Pro-3340-MT xl2tpd[11194]: "debug" Sep 29 10:46:14 xxx-HP-Pro-3340-MT xl2tpd[11194]: "file" Sep 29 10:46:14 xxx-HP-Pro-3340-MT xl2tpd[11194]: "/etc/ppp/options.xl2tpd" Sep 29 10:46:14 xxx-HP-Pro-3340-MT xl2tpd[11194]: "/dev/pts/17" Sep 29 10:46:14 xxx-HP-Pro-3340-MT xl2tpd[11194]: Call established with 172.16.58.153, Local: 6309, Remote: 43705, Serial: 347 Sep 29 10:46:14 xxx-HP-Pro-3340-MT pppd[23103]: pppd 2.4.5 started by root, uid 0 Sep 29 10:46:14 xxx-HP-Pro-3340-MT pppd[23103]: using channel 197 Sep 29 10:46:14 xxx-HP-Pro-3340-MT pppd[23103]: Using interface ppp0 Sep 29 10:46:14 xxx-HP-Pro-3340-MT pppd[23103]: Connect: ppp0 <--> /dev/pts/17 Sep 29 10:46:14 xxx-HP-Pro-3340-MT pppd[23103]: sent [LCP ConfReq id=0x1 <mru 1200> <asyncmap 0x0> <auth chap MD5> <magic 0xb37e2afa> <pcomp> <accomp>] Sep 29 10:46:14 xxx-HP-Pro-3340-MT NetworkManager[717]: SCPlugin-Ifupdown: devices added (path: /sys/devices/virtual/net/ppp0, iface: ppp0) Sep 29 10:46:14 xxx-HP-Pro-3340-MT NetworkManager[717]: SCPlugin-Ifupdown: device added (path: /sys/devices/virtual/net/ppp0, iface: ppp0): no ifupdown configuration found. Sep 29 10:46:14 xxx-HP-Pro-3340-MT NetworkManager[717]: <warn> /sys/devices/virtual/net/ppp0: couldn't determine device driver; ignoring... Sep 29 10:46:14 xxx-HP-Pro-3340-MT xl2tpd[11194]: control_finish: Connection closed to 172.16.58.153, serial 347 () Sep 29 10:46:14 xxx-HP-Pro-3340-MT xl2tpd[11194]: Terminating pppd: sending TERM signal to pid 23103 Sep 29 10:46:14 xxx-HP-Pro-3340-MT pppd[23103]: Terminating on signal 15 Sep 29 10:46:14 xxx-HP-Pro-3340-MT pppd[23103]: Modem hangup Sep 29 10:46:14 xxx-HP-Pro-3340-MT pppd[23103]: Connection terminated. Sep 29 10:46:14 xxx-HP-Pro-3340-MT NetworkManager[717]: SCPlugin-Ifupdown: devices removed (path: /sys/devices/virtual/net/ppp0, iface: ppp0) Sep 29 10:46:14 xxx-HP-Pro-3340-MT pppd[23103]: Exit. Sep 29 10:46:15 xxx-HP-Pro-3340-MT xl2tpd[11194]: control_finish: Peer requested tunnel 49957 twice, ignoring second one. Sep 29 10:46:15 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 49957 (got 1, expected 5) Sep 29 10:46:15 xxx-HP-Pro-3340-MT xl2tpd[11194]: handle_packet: bad control packet! Sep 29 10:46:15 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 49957 (got 2, expected 5) Sep 29 10:46:15 xxx-HP-Pro-3340-MT xl2tpd[11194]: handle_packet: bad control packet! Sep 29 10:46:15 xxx-HP-Pro-3340-MT xl2tpd[11194]: get_call: can't find call 6309 in tunnel 11403#012 (ref=0/0) Sep 29 10:46:15 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 49957 (got 3, expected 5) Sep 29 10:46:15 xxx-HP-Pro-3340-MT xl2tpd[11194]: get_call: can't find call 6309 in tunnel 11403#012 (ref=0/0) Sep 29 10:46:15 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 49957 (got 4, expected 5) Sep 29 10:46:16 xxx-HP-Pro-3340-MT xl2tpd[11194]: control_finish: Peer requested tunnel 49957 twice, ignoring second one. Sep 29 10:46:16 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 49957 (got 1, expected 5) Sep 29 10:46:16 xxx-HP-Pro-3340-MT xl2tpd[11194]: handle_packet: bad control packet! Sep 29 10:46:16 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 49957 (got 2, expected 5) Sep 29 10:46:16 xxx-HP-Pro-3340-MT xl2tpd[11194]: handle_packet: bad control packet! Sep 29 10:46:16 xxx-HP-Pro-3340-MT xl2tpd[11194]: get_call: can't find call 6309 in tunnel 11403#012 (ref=0/0) Sep 29 10:46:16 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 49957 (got 3, expected 5) Sep 29 10:46:16 xxx-HP-Pro-3340-MT xl2tpd[11194]: get_call: can't find call 6309 in tunnel 11403#012 (ref=0/0) Sep 29 10:46:16 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 49957 (got 4, expected 5) Sep 29 10:46:17 xxx-HP-Pro-3340-MT xl2tpd[11194]: control_finish: Peer requested tunnel 49957 twice, ignoring second one. Sep 29 10:46:17 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 49957 (got 1, expected 5) Sep 29 10:46:17 xxx-HP-Pro-3340-MT xl2tpd[11194]: handle_packet: bad control packet! Sep 29 10:46:17 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 49957 (got 2, expected 5) Sep 29 10:46:17 xxx-HP-Pro-3340-MT xl2tpd[11194]: handle_packet: bad control packet! Sep 29 10:46:17 xxx-HP-Pro-3340-MT xl2tpd[11194]: get_call: can't find call 6309 in tunnel 11403#012 (ref=0/0) Sep 29 10:46:17 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 49957 (got 3, expected 5) Sep 29 10:46:17 xxx-HP-Pro-3340-MT xl2tpd[11194]: get_call: can't find call 6309 in tunnel 11403#012 (ref=0/0) Sep 29 10:46:17 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 49957 (got 4, expected 5) Sep 29 10:46:18 xxx-HP-Pro-3340-MT xl2tpd[11194]: control_finish: Peer requested tunnel 49957 twice, ignoring second one. Sep 29 10:46:18 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 49957 (got 1, expected 5) Sep 29 10:46:18 xxx-HP-Pro-3340-MT xl2tpd[11194]: handle_packet: bad control packet! Sep 29 10:46:18 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 49957 (got 2, expected 5) Sep 29 10:46:18 xxx-HP-Pro-3340-MT xl2tpd[11194]: handle_packet: bad control packet! Sep 29 10:46:18 xxx-HP-Pro-3340-MT xl2tpd[11194]: get_call: can't find call 6309 in tunnel 11403#012 (ref=0/0) Sep 29 10:46:18 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 49957 (got 3, expected 5) Sep 29 10:46:18 xxx-HP-Pro-3340-MT xl2tpd[11194]: get_call: can't find call 6309 in tunnel 11403#012 (ref=0/0) Sep 29 10:46:18 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 49957 (got 4, expected 5) Sep 29 10:46:19 xxx-HP-Pro-3340-MT xl2tpd[11194]: control_finish: Connection closed to 172.16.58.153, port 1701 (Timeout), Local: 11403, Remote: 49957 Sep 29 10:46:20 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 11403 (refhim=0) Sep 29 10:46:20 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 11403 Dumping. Sep 29 10:46:20 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 11403 (refhim=0) Sep 29 10:46:20 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 11403 Dumping. Sep 29 10:46:20 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 11403 (refhim=0) Sep 29 10:46:20 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 11403 Dumping. Sep 29 10:46:21 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 11403 (refhim=0) Sep 29 10:46:21 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 11403 Dumping. Sep 29 10:46:21 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 11403 (refhim=0) Sep 29 10:46:21 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 11403 Dumping. Sep 29 10:46:21 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 11403 (refhim=0) Sep 29 10:46:21 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 11403 Dumping. Sep 29 10:46:22 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 11403 (refhim=0) Sep 29 10:46:22 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 11403 Dumping. Sep 29 10:46:22 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 11403 (refhim=0) Sep 29 10:46:22 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 11403 Dumping. Sep 29 10:46:22 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 11403 (refhim=0) Sep 29 10:46:22 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 11403 Dumping. Sep 29 10:46:23 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 11403 (refhim=0) Sep 29 10:46:23 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 11403 Dumping. Sep 29 10:46:23 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 11403 (refhim=0) Sep 29 10:46:23 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 11403 Dumping. Sep 29 10:46:23 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 11403 (refhim=0) Sep 29 10:46:23 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 11403 Dumping. Sep 29 10:46:24 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 11403 (refhim=0) Sep 29 10:46:24 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 11403 Dumping. Sep 29 10:46:25 xxx-HP-Pro-3340-MT xl2tpd[11194]: Connection established to 172.16.58.153, 1701. Local: 51132, Remote: 62657 (ref=0/0). LNS session is 'default' Sep 29 10:46:25 xxx-HP-Pro-3340-MT xl2tpd[11194]: control_finish: Warning: Peer did not specify transmit speed Sep 29 10:46:25 xxx-HP-Pro-3340-MT xl2tpd[11194]: start_pppd: I'm running: Sep 29 10:46:25 xxx-HP-Pro-3340-MT xl2tpd[11194]: "/usr/sbin/pppd" Sep 29 10:46:25 xxx-HP-Pro-3340-MT xl2tpd[11194]: "passive" Sep 29 10:46:25 xxx-HP-Pro-3340-MT xl2tpd[11194]: "nodetach" Sep 29 10:46:25 xxx-HP-Pro-3340-MT xl2tpd[11194]: "172.16.58.156:172.16.58.4" Sep 29 10:46:25 xxx-HP-Pro-3340-MT xl2tpd[11194]: "refuse-pap" Sep 29 10:46:25 xxx-HP-Pro-3340-MT xl2tpd[11194]: "auth" Sep 29 10:46:25 xxx-HP-Pro-3340-MT xl2tpd[11194]: "require-chap" Sep 29 10:46:25 xxx-HP-Pro-3340-MT xl2tpd[11194]: "debug" Sep 29 10:46:25 xxx-HP-Pro-3340-MT xl2tpd[11194]: "file" Sep 29 10:46:25 xxx-HP-Pro-3340-MT xl2tpd[11194]: "/etc/ppp/options.xl2tpd" Sep 29 10:46:25 xxx-HP-Pro-3340-MT xl2tpd[11194]: "/dev/pts/17" Sep 29 10:46:25 xxx-HP-Pro-3340-MT xl2tpd[11194]: Call established with 172.16.58.153, Local: 22234, Remote: 37513, Serial: 350 Sep 29 10:46:25 xxx-HP-Pro-3340-MT pppd[23162]: pppd 2.4.5 started by root, uid 0 Sep 29 10:46:25 xxx-HP-Pro-3340-MT pppd[23162]: using channel 198 Sep 29 10:46:25 xxx-HP-Pro-3340-MT pppd[23162]: Using interface ppp0 Sep 29 10:46:25 xxx-HP-Pro-3340-MT pppd[23162]: Connect: ppp0 <--> /dev/pts/17 Sep 29 10:46:25 xxx-HP-Pro-3340-MT pppd[23162]: sent [LCP ConfReq id=0x1 <mru 1200> <asyncmap 0x0> <auth chap MD5> <magic 0x44d4c5a7> <pcomp> <accomp>] Sep 29 10:46:25 xxx-HP-Pro-3340-MT NetworkManager[717]: SCPlugin-Ifupdown: devices added (path: /sys/devices/virtual/net/ppp0, iface: ppp0) Sep 29 10:46:25 xxx-HP-Pro-3340-MT NetworkManager[717]: SCPlugin-Ifupdown: device added (path: /sys/devices/virtual/net/ppp0, iface: ppp0): no ifupdown configuration found. Sep 29 10:46:25 xxx-HP-Pro-3340-MT NetworkManager[717]: <warn> /sys/devices/virtual/net/ppp0: couldn't determine device driver; ignoring... Sep 29 10:46:25 xxx-HP-Pro-3340-MT xl2tpd[11194]: control_finish: Connection closed to 172.16.58.153, serial 350 () Sep 29 10:46:25 xxx-HP-Pro-3340-MT xl2tpd[11194]: Terminating pppd: sending TERM signal to pid 23162 Sep 29 10:46:25 xxx-HP-Pro-3340-MT pppd[23162]: Terminating on signal 15 Sep 29 10:46:25 xxx-HP-Pro-3340-MT pppd[23162]: Modem hangup Sep 29 10:46:25 xxx-HP-Pro-3340-MT pppd[23162]: Connection terminated. Sep 29 10:46:25 xxx-HP-Pro-3340-MT NetworkManager[717]: SCPlugin-Ifupdown: devices removed (path: /sys/devices/virtual/net/ppp0, iface: ppp0) Sep 29 10:46:25 xxx-HP-Pro-3340-MT pppd[23162]: Exit. Sep 29 10:46:26 xxx-HP-Pro-3340-MT xl2tpd[11194]: control_finish: Peer requested tunnel 62657 twice, ignoring second one. Sep 29 10:46:26 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 62657 (got 1, expected 5) Sep 29 10:46:26 xxx-HP-Pro-3340-MT xl2tpd[11194]: handle_packet: bad control packet! Sep 29 10:46:26 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 62657 (got 2, expected 5) Sep 29 10:46:26 xxx-HP-Pro-3340-MT xl2tpd[11194]: handle_packet: bad control packet! Sep 29 10:46:26 xxx-HP-Pro-3340-MT xl2tpd[11194]: get_call: can't find call 22234 in tunnel 51132#012 (ref=0/0) Sep 29 10:46:26 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 62657 (got 3, expected 5) Sep 29 10:46:26 xxx-HP-Pro-3340-MT xl2tpd[11194]: get_call: can't find call 22234 in tunnel 51132#012 (ref=0/0) Sep 29 10:46:26 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 62657 (got 4, expected 5) Sep 29 10:46:27 xxx-HP-Pro-3340-MT xl2tpd[11194]: control_finish: Peer requested tunnel 62657 twice, ignoring second one. Sep 29 10:46:27 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 62657 (got 1, expected 5) Sep 29 10:46:27 xxx-HP-Pro-3340-MT xl2tpd[11194]: handle_packet: bad control packet! Sep 29 10:46:27 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 62657 (got 2, expected 5) Sep 29 10:46:27 xxx-HP-Pro-3340-MT xl2tpd[11194]: handle_packet: bad control packet! Sep 29 10:46:27 xxx-HP-Pro-3340-MT xl2tpd[11194]: get_call: can't find call 22234 in tunnel 51132#012 (ref=0/0) Sep 29 10:46:27 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 62657 (got 3, expected 5) Sep 29 10:46:27 xxx-HP-Pro-3340-MT xl2tpd[11194]: get_call: can't find call 22234 in tunnel 51132#012 (ref=0/0) Sep 29 10:46:27 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 62657 (got 4, expected 5) Sep 29 10:46:28 xxx-HP-Pro-3340-MT xl2tpd[11194]: control_finish: Peer requested tunnel 62657 twice, ignoring second one. Sep 29 10:46:28 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 62657 (got 1, expected 5) Sep 29 10:46:28 xxx-HP-Pro-3340-MT xl2tpd[11194]: handle_packet: bad control packet! Sep 29 10:46:28 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 62657 (got 2, expected 5) Sep 29 10:46:28 xxx-HP-Pro-3340-MT xl2tpd[11194]: handle_packet: bad control packet! Sep 29 10:46:28 xxx-HP-Pro-3340-MT xl2tpd[11194]: get_call: can't find call 22234 in tunnel 51132#012 (ref=0/0) Sep 29 10:46:28 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 62657 (got 3, expected 5) Sep 29 10:46:28 xxx-HP-Pro-3340-MT xl2tpd[11194]: get_call: can't find call 22234 in tunnel 51132#012 (ref=0/0) Sep 29 10:46:28 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 62657 (got 4, expected 5) Sep 29 10:46:29 xxx-HP-Pro-3340-MT xl2tpd[11194]: control_finish: Peer requested tunnel 62657 twice, ignoring second one. Sep 29 10:46:29 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 62657 (got 1, expected 5) Sep 29 10:46:29 xxx-HP-Pro-3340-MT xl2tpd[11194]: handle_packet: bad control packet! Sep 29 10:46:29 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 62657 (got 2, expected 5) Sep 29 10:46:29 xxx-HP-Pro-3340-MT xl2tpd[11194]: handle_packet: bad control packet! Sep 29 10:46:29 xxx-HP-Pro-3340-MT xl2tpd[11194]: get_call: can't find call 22234 in tunnel 51132#012 (ref=0/0) Sep 29 10:46:29 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 62657 (got 3, expected 5) Sep 29 10:46:29 xxx-HP-Pro-3340-MT xl2tpd[11194]: get_call: can't find call 22234 in tunnel 51132#012 (ref=0/0) Sep 29 10:46:29 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 62657 (got 4, expected 5) Sep 29 10:46:30 xxx-HP-Pro-3340-MT xl2tpd[11194]: control_finish: Connection closed to 172.16.58.153, port 1701 (Timeout), Local: 51132, Remote: 62657 Sep 29 10:46:31 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 51132 (refhim=0) Sep 29 10:46:31 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 51132 Dumping. Sep 29 10:46:31 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 51132 (refhim=0) Sep 29 10:46:31 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 51132 Dumping. Sep 29 10:46:32 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 51132 (refhim=0) Sep 29 10:46:32 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 51132 Dumping. Sep 29 10:46:32 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 51132 (refhim=0)
PCL编译“boost::random::mt19937 *”转换为“const boost::uuids::random_generator_pure &”失败
![图片说明](https://img-ask.csdn.net/upload/201909/02/1567391077_635536.png)
Java学习的正确打开方式
在博主认为,对于入门级学习java的最佳学习方法莫过于视频+博客+书籍+总结,前三者博主将淋漓尽致地挥毫于这篇博客文章中,至于总结在于个人,实际上越到后面你会发现学习的最好方式就是阅读参考官方文档其次就是国内的书籍,博客次之,这又是一个层次了,这里暂时不提后面再谈。博主将为各位入门java保驾护航,各位只管冲鸭!!!上天是公平的,只要不辜负时间,时间自然不会辜负你。 何谓学习?博主所理解的学习,它是一个过程,是一个不断累积、不断沉淀、不断总结、善于传达自己的个人见解以及乐于分享的过程。
程序员必须掌握的核心算法有哪些?
由于我之前一直强调数据结构以及算法学习的重要性,所以就有一些读者经常问我,数据结构与算法应该要学习到哪个程度呢?,说实话,这个问题我不知道要怎么回答你,主要取决于你想学习到哪些程度,不过针对这个问题,我稍微总结一下我学过的算法知识点,以及我觉得值得学习的算法。这些算法与数据结构的学习大多数是零散的,并没有一本把他们全部覆盖的书籍。下面是我觉得值得学习的一些算法以及数据结构,当然,我也会整理一些看过...
大学四年自学走来,这些私藏的实用工具/学习网站我贡献出来了
大学四年,看课本是不可能一直看课本的了,对于学习,特别是自学,善于搜索网上的一些资源来辅助,还是非常有必要的,下面我就把这几年私藏的各种资源,网站贡献出来给你们。主要有:电子书搜索、实用工具、在线视频学习网站、非视频学习网站、软件下载、面试/求职必备网站。 注意:文中提到的所有资源,文末我都给你整理好了,你们只管拿去,如果觉得不错,转发、分享就是最大的支持了。 一、电子书搜索 对于大部分程序员...
linux系列之常用运维命令整理笔录
本博客记录工作中需要的linux运维命令,大学时候开始接触linux,会一些基本操作,可是都没有整理起来,加上是做开发,不做运维,有些命令忘记了,所以现在整理成博客,当然vi,文件操作等就不介绍了,慢慢积累一些其它拓展的命令,博客不定时更新 free -m 其中:m表示兆,也可以用g,注意都要小写 Men:表示物理内存统计 total:表示物理内存总数(total=used+free) use...
比特币原理详解
一、什么是比特币 比特币是一种电子货币,是一种基于密码学的货币,在2008年11月1日由中本聪发表比特币白皮书,文中提出了一种去中心化的电子记账系统,我们平时的电子现金是银行来记账,因为银行的背后是国家信用。去中心化电子记账系统是参与者共同记账。比特币可以防止主权危机、信用风险。其好处不多做赘述,这一层面介绍的文章很多,本文主要从更深层的技术原理角度进行介绍。 二、问题引入 假设现有4个人...
程序员接私活怎样防止做完了不给钱?
首先跟大家说明一点,我们做 IT 类的外包开发,是非标品开发,所以很有可能在开发过程中会有这样那样的需求修改,而这种需求修改很容易造成扯皮,进而影响到费用支付,甚至出现做完了项目收不到钱的情况。 那么,怎么保证自己的薪酬安全呢? 我们在开工前,一定要做好一些证据方面的准备(也就是“讨薪”的理论依据),这其中最重要的就是需求文档和验收标准。一定要让需求方提供这两个文档资料作为开发的基础。之后开发...
网页实现一个简单的音乐播放器(大佬别看。(⊙﹏⊙))
今天闲着无事,就想写点东西。然后听了下歌,就打算写个播放器。 于是乎用h5 audio的加上js简单的播放器完工了。 演示地点演示 html代码如下` music 这个年纪 七月的风 音乐 ` 然后就是css`*{ margin: 0; padding: 0; text-decoration: none; list-...
Python十大装B语法
Python 是一种代表简单思想的语言,其语法相对简单,很容易上手。不过,如果就此小视 Python 语法的精妙和深邃,那就大错特错了。本文精心筛选了最能展现 Python 语法之精妙的十个知识点,并附上详细的实例代码。如能在实战中融会贯通、灵活使用,必将使代码更为精炼、高效,同时也会极大提升代码B格,使之看上去更老练,读起来更优雅。
数据库优化 - SQL优化
以实际SQL入手,带你一步一步走上SQL优化之路!
2019年11月中国大陆编程语言排行榜
2019年11月2日,我统计了某招聘网站,获得有效程序员招聘数据9万条。针对招聘信息,提取编程语言关键字,并统计如下: 编程语言比例 rank pl_ percentage 1 java 33.62% 2 cpp 16.42% 3 c_sharp 12.82% 4 javascript 12.31% 5 python 7.93% 6 go 7.25% 7 p...
通俗易懂地给女朋友讲:线程池的内部原理
餐盘在灯光的照耀下格外晶莹洁白,女朋友拿起红酒杯轻轻地抿了一小口,对我说:“经常听你说线程池,到底线程池到底是个什么原理?”
《奇巧淫技》系列-python!!每天早上八点自动发送天气预报邮件到QQ邮箱
将代码部署服务器,每日早上定时获取到天气数据,并发送到邮箱。 也可以说是一个小型人工智障。 知识可以运用在不同地方,不一定非是天气预报。
经典算法(5)杨辉三角
杨辉三角 是经典算法,这篇博客对它的算法思想进行了讲解,并有完整的代码实现。
英特尔不为人知的 B 面
从 PC 时代至今,众人只知在 CPU、GPU、XPU、制程、工艺等战场中,英特尔在与同行硬件芯片制造商们的竞争中杀出重围,且在不断的成长进化中,成为全球知名的半导体公司。殊不知,在「刚硬」的背后,英特尔「柔性」的软件早已经做到了全方位的支持与支撑,并持续发挥独特的生态价值,推动产业合作共赢。 而对于这一不知人知的 B 面,很多人将其称之为英特尔隐形的翅膀,虽低调,但是影响力却不容小觑。 那么,在...
腾讯算法面试题:64匹马8个跑道需要多少轮才能选出最快的四匹?
昨天,有网友私信我,说去阿里面试,彻底的被打击到了。问了为什么网上大量使用ThreadLocal的源码都会加上private static?他被难住了,因为他从来都没有考虑过这个问题。无独有偶,今天笔者又发现有网友吐槽了一道腾讯的面试题,我们一起来看看。 腾讯算法面试题:64匹马8个跑道需要多少轮才能选出最快的四匹? 在互联网职场论坛,一名程序员发帖求助到。二面腾讯,其中一个算法题:64匹...
面试官:你连RESTful都不知道我怎么敢要你?
干货,2019 RESTful最贱实践
刷了几千道算法题,这些我私藏的刷题网站都在这里了!
遥想当年,机缘巧合入了 ACM 的坑,周边巨擘林立,从此过上了"天天被虐似死狗"的生活… 然而我是谁,我可是死狗中的战斗鸡,智力不够那刷题来凑,开始了夜以继日哼哧哼哧刷题的日子,从此"读题与提交齐飞, AC 与 WA 一色 ",我惊喜的发现被题虐既刺激又有快感,那一刻我泪流满面。这么好的事儿作为一个正直的人绝不能自己独享,经过激烈的颅内斗争,我决定把我私藏的十几个 T 的,阿不,十几个刷题网...
为啥国人偏爱Mybatis,而老外喜欢Hibernate/JPA呢?
关于SQL和ORM的争论,永远都不会终止,我也一直在思考这个问题。昨天又跟群里的小伙伴进行了一番讨论,感触还是有一些,于是就有了今天这篇文。 声明:本文不会下关于Mybatis和JPA两个持久层框架哪个更好这样的结论。只是摆事实,讲道理,所以,请各位看官勿喷。 一、事件起因 关于Mybatis和JPA孰优孰劣的问题,争论已经很多年了。一直也没有结论,毕竟每个人的喜好和习惯是大不相同的。我也看...
白话阿里巴巴Java开发手册高级篇
不久前,阿里巴巴发布了《阿里巴巴Java开发手册》,总结了阿里巴巴内部实际项目开发过程中开发人员应该遵守的研发流程规范,这些流程规范在一定程度上能够保证最终的项目交付质量,通过在时间中总结模式,并推广给广大开发人员,来避免研发人员在实践中容易犯的错误,确保最终在大规模协作的项目中达成既定目标。 无独有偶,笔者去年在公司里负责升级和制定研发流程、设计模板、设计标准、代码标准等规范,并在实际工作中进行...
SQL-小白最佳入门sql查询一
不要偷偷的查询我的个人资料,即使你再喜欢我,也不要这样,真的不好;
项目中的if else太多了,该怎么重构?
介绍 最近跟着公司的大佬开发了一款IM系统,类似QQ和微信哈,就是聊天软件。我们有一部分业务逻辑是这样的 if (msgType = "文本") { // dosomething } else if(msgType = "图片") { // doshomething } else if(msgType = "视频") { // doshomething } else { // doshom...
Nginx 原理和架构
Nginx 是一个免费的,开源的,高性能的 HTTP 服务器和反向代理,以及 IMAP / POP3 代理服务器。Nginx 以其高性能,稳定性,丰富的功能,简单的配置和低资源消耗而闻名。 Nginx 的整体架构 Nginx 里有一个 master 进程和多个 worker 进程。master 进程并不处理网络请求,主要负责调度工作进程:加载配置、启动工作进程及非停升级。worker 进程负责处...
【图解经典算法题】如何用一行代码解决约瑟夫环问题
约瑟夫环问题算是很经典的题了,估计大家都听说过,然后我就在一次笔试中遇到了,下面我就用 3 种方法来详细讲解一下这道题,最后一种方法学了之后保证让你可以让你装逼。 问题描述:编号为 1-N 的 N 个士兵围坐在一起形成一个圆圈,从编号为 1 的士兵开始依次报数(1,2,3…这样依次报),数到 m 的 士兵会被杀死出列,之后的士兵再从 1 开始报数。直到最后剩下一士兵,求这个士兵的编号。 1、方...
吐血推荐珍藏的Visual Studio Code插件
作为一名Java工程师,由于工作需要,最近一个月一直在写NodeJS,这种经历可以说是一部辛酸史了。好在有神器Visual Studio Code陪伴,让我的这段经历没有更加困难。眼看这段经历要告一段落了,今天就来给大家分享一下我常用的一些VSC的插件。 VSC的插件安装方法很简单,只需要点击左侧最下方的插件栏选项,然后就可以搜索你想要的插件了。 下面我们进入正题 Material Theme ...
如何防止抄袭PCB电路板
目录 1、抄板是什么 2、抄板是否属于侵权 3、如何防止抄板 1、抄板是什么 抄板也叫克隆或仿制,是对设计出来的PCB板进行反向技术研究;目前全新的定义:从狭义上来说,抄板仅指对电子产品电路板PCB文件的提取还原和利用文件进行电路板克隆的过程;从广义上来说,抄板不仅包括对电路板文件提取、电路板克隆、电路板仿制等技术过程,而且包括对电路板文件进行修改(即改板)、对电子产品外形模具进行三维...
“狗屁不通文章生成器”登顶GitHub热榜,分分钟写出万字形式主义大作
一、垃圾文字生成器介绍 最近在浏览GitHub的时候,发现了这样一个骨骼清奇的雷人项目,而且热度还特别高。 项目中文名:狗屁不通文章生成器 项目英文名:BullshitGenerator 根据作者的介绍,他是偶尔需要一些中文文字用于GUI开发时测试文本渲染,因此开发了这个废话生成器。但由于生成的废话实在是太过富于哲理,所以最近已经被小伙伴们给玩坏了。 他的文风可能是这样的: 你发现,...
程序员:我终于知道post和get的区别
是一个老生常谈的话题,然而随着不断的学习,对于以前的认识有很多误区,所以还是需要不断地总结的,学而时习之,不亦说乎
《程序人生》系列-这个程序员只用了20行代码就拿了冠军
你知道的越多,你不知道的越多 点赞再看,养成习惯GitHub上已经开源https://github.com/JavaFamily,有一线大厂面试点脑图,欢迎Star和完善 前言 这一期不算《吊打面试官》系列的,所有没前言我直接开始。 絮叨 本来应该是没有这期的,看过我上期的小伙伴应该是知道的嘛,双十一比较忙嘛,要值班又要去帮忙拍摄年会的视频素材,还得搞个程序员一天的Vlog,还要写BU...
加快推动区块链技术和产业创新发展,2019可信区块链峰会在京召开
11月8日,由中国信息通信研究院、中国通信标准化协会、中国互联网协会、可信区块链推进计划联合主办,科技行者协办的2019可信区块链峰会将在北京悠唐皇冠假日酒店开幕。   区块链技术被认为是继蒸汽机、电力、互联网之后,下一代颠覆性的核心技术。如果说蒸汽机释放了人类的生产力,电力解决了人类基本的生活需求,互联网彻底改变了信息传递的方式,区块链作为构造信任的技术有重要的价值。   1...
Python 植物大战僵尸代码实现(2):植物卡片选择和种植
这篇文章要介绍的是: - 上方植物卡片栏的实现。 - 点击植物卡片,鼠标切换为植物图片。 - 鼠标移动时,判断当前在哪个方格中,并显示半透明的植物作为提示。
相关热词 c#委托 逆变与协变 c#新建一个项目 c#获取dll文件路径 c#子窗体调用主窗体事件 c# 拷贝目录 c# 调用cef 网页填表c#源代码 c#部署端口监听项目、 c#接口中的属性使用方法 c# 昨天
立即提问