加载网卡时把网卡绑定到openVswitch端口上(ovs-vsctl add-port br0 eth0),绑定后每当有数据包过来时,都会调用该函数,把数据包传送给这个函数去处理。而不是像开始那样(未绑定前)把数据包往内核网络协议栈中发送,让内核协议栈去处理。openVswitch中数据包接受函数为:void ovs_vport_receive(struct vport *vport, struct sk_buff *skb);函数,该函数所在位置为:datapath/vport.c中。数据包进入open...
分类:
其他好文 时间:
2014-09-17 10:23:22
阅读次数:
484
暂时没找到logomaker到解决办法
用命令替代,在目录下:
pngtopnm open_show.png > temp.ppm
ppmquant 224 temp.ppm >temp2.ppm
pnmnoraw temp2.ppm > logo_linux_clut224.ppm...
分类:
其他好文 时间:
2014-09-17 10:20:42
阅读次数:
274
Winform的代码,最好是在数据所在电脑上运行代码,不然会因为权限问题导致失败。数据库备份: SqlConnection con = new SqlConnection("Data Source=.;;Initial Catalog=DB_Test;User ID=sa;Pa...
分类:
数据库 时间:
2014-09-17 10:11:51
阅读次数:
260
What is Shark?SHARK is a fast, modular, feature-rich open-source C++ machine learning libraryBecause of Installing Shark depending on Boost and CMakeI...
分类:
其他好文 时间:
2014-09-16 23:33:41
阅读次数:
201
创建tar -cvf output.tar [source files]. -c代表create files, -f指定文件名,文件名必须跟在-f后,并且应该是参数组中最后一项。追加选项: -r. tar -rvf original.tar new-file.tar -tvf archive.tar...
分类:
其他好文 时间:
2014-09-16 23:24:31
阅读次数:
280
解决方法:1、进入mysql安装目录查看,确认有libmysqlclient.so.16.0.0 文件, 于是需要在/usr/lib目录下建立一个软链接来指向libmysqlclient.so.162、在php lib目录下下建立个软链接:(格式为:ln -s mysql lib路径 php lib路径)ln -s /home/openpf/app/mysql-5.1.56-2/lib/mysq...
分类:
数据库 时间:
2014-09-16 20:38:41
阅读次数:
326
privatevoidreadFromFile()throwsIOException{
InputStreamis=this.getAssets().open("wyw.txt");
InputStreamReaderisr=newInputStreamReader(is,"GBK");
BufferedReaderbr=newBufferedReader(isr);
Stringstr=br.readLine();
while((str=br.readLine())!=null){
Log.v("resul..
分类:
其他好文 时间:
2014-09-16 19:09:01
阅读次数:
162
xxx.zip 中有中文的文件,在linux下unzip就会有乱码。解决办法:安装7zip去http://sourceforge.net/projects/p7zip/files/latest/download?source=typ_redirect 下载p7zip_9.20.1_src_all.t...
分类:
系统相关 时间:
2014-09-16 18:43:00
阅读次数:
236
用法简单,类似于ado.net
ExcelTools.Open()
//读写
ExcelTools.SaveAndClose()
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Office.Interop.Excel;...
分类:
其他好文 时间:
2014-09-16 17:26:30
阅读次数:
209
1、定制安全的PHP环境 register_globals:当register_globals=ON时,PHP不知道变量从何而来!也容易出现一些变量覆盖的问题。 open_basedir:可以限制php只能操作指定目录下的文件。在对抗文件包含、目录遍历等攻击时十分有用。 open_base...
分类:
Web程序 时间:
2014-09-16 17:19:00
阅读次数:
239