摘要: 解决方法:1、打开windows设备管理器。2、查看-显示隐藏的设备3、非即插即用驱动程序4、NetGroup Packet Filter Driver 右键属性---驱动程序---启动类型5、设置驱动类型为 自动 或者 系统。其默认值为请求,意思就是每次用的时候,需要其他程序请求时才启动否则不启动。如果同是ring0级别的服务请求并加把内核锁,那么程序就僵死了NPF(NetGroup Packet Filter Driver)首先,你得确认自己安装了winpcap(最好下载一个最新版本:官方下载,这会官方好像打不开,也可以华军下载),然后(1)如果你使用的是Linux、Ubuntu系统,请用 阅读全文
posted @ 2012-05-29 19:24 田涛@武汉 阅读(514) 评论(0) 推荐(0)
摘要: glib是gtk下的一个库,也是开发中常用的一个工具库。glib提供的基本的数据结构和算法(只说我现在用到的),例如更有效的内存管理、配置文件处理、异步队列、哈希表、字符串处理、编码转换等。它就像野外生存的瑞士军刀,一个日常开发过程中不可多得的利刃。当然完全抛弃,独立实现也可以,我之前就是这样做的,各有好处。 但是,在服务器操作系统中并不总自带有glib库,总要经常安装,因此如果能编译成静态库连接到程序,这样最好。经过一番努力,我已经成功,现把简要过程写在下面,随意分享。1.下载、编译、安装wget http://ftp.gnome.org/pub/gnome/sources/glib/... 阅读全文
posted @ 2012-04-23 18:50 田涛@武汉 阅读(3498) 评论(0) 推荐(0)
摘要: http://www.mysqlops.com/2012/04/17/dba-alibaba.html导读:去年很多朋友私下或新浪微博上在总结自己的职业生涯与职业规划,也感觉到很纠结与彷徨,尤其技术人的职业生涯,随年龄增加,一些优势逐渐丧失。4月13日数据库技术大会的主办方举行的晚宴上,也让本人支持一个大家感兴趣又贴合实际的话,话题是:三十岁后的IT人 如何抉择人生路,遗憾的是预订酒店饭桌是几个房间打通的,而不是一个大厅方式(总共:8桌),大家无法围绕在一起,为此只是小范围讨论了下,今天看到曾经阿里巴巴数据库团队的海波兄弟总结分享,非常有意义,转载给大家共同欣赏!十五年前,你或许还不懂爱情,看 阅读全文
posted @ 2012-04-18 09:07 田涛@武汉 阅读(249) 评论(0) 推荐(0)
摘要: whatis识别数组或变量的类型ptype比whatis的功能更强,他可以提供一个结构的定义print h@num(gdb)print h@10$13=(-1,345,23,-234,0,0,0,98,345,10)--args调试时加入参数gdb --args [exe] [args]set args(gdb)set args –b –xshow args(gdb)show argsgdb -silent not display hints -help/-h <exe_file> <process_no>(gdb)r run and display err info 阅读全文
posted @ 2012-03-15 20:12 田涛@武汉 阅读(1230) 评论(0) 推荐(0)
摘要: yum install ctagsdownload taglistcp doc and plugin to ~/.vimedit /etc/vimrc or ~/.vimrc add let Tlist_Use_Right_Window=1 let Tlist_File_Fold_Auto_Close=1 map <F3> :Explore<CR> map <F4> :TlistToggle<CR> 阅读全文
posted @ 2012-03-15 20:06 田涛@武汉 阅读(163) 评论(0) 推荐(0)
摘要: #include <dirent.h>#include <sys/mman.h>#include <fcntl.h>#include <errno.h>#include <sys/stat.h>#include <sys/types.h>#include <stdio.h>#include <string.h>#include <stdlib.h>#include <unistd.h>void main(int argc, char **argv){ int fd = 0; 阅读全文
posted @ 2012-03-15 19:57 田涛@武汉 阅读(208) 评论(0) 推荐(0)
摘要: #include <stdio.h>#include <string.h>#include <unistd.h>#include <sys/types.h>#include <sys/socket.h>#include <netinet/in.h>#include <arpa/inet.h>#include <errno.h>#include <stdlib.h>#include <stdint.h>#define MAXLINE 80#define TRUE 1#defin 阅读全文
posted @ 2012-03-15 19:53 田涛@武汉 阅读(355) 评论(0) 推荐(0)
摘要: #include <sys/select.h>#include <sys/time.h>#include <stdio.h>#include <unistd.h>#include <signal.h>int n = 0;struct itimerval value;void timefunc(int sig){ fprintf(stderr, "timer[%d]\n", n++); if (n > 5) { getitimer(ITIMER_REAL, &value); value.it_value 阅读全文
posted @ 2012-03-15 19:53 田涛@武汉 阅读(223) 评论(0) 推荐(0)
摘要: #include <pcap.h>#include <stdio.h>#include <string.h>#include <stdlib.h>#include <unistd.h>#include <net/ethernet.h>#include <linux/if_ether.h>#include <netinet/in.h>#include <netinet/ip.h>#include <netinet/tcp.h>#include <stdint.h># 阅读全文
posted @ 2012-03-15 19:52 田涛@武汉 阅读(562) 评论(0) 推荐(0)
摘要: 1 #include <stdio.h> 2 #include <netinet/in.h> 3 #include <stdlib.h> 4 #include <unistd.h> 5 #include <sys/socket.h> 6 #include <string.h> 7 #include <arpa/inet.h> 8 9 int main()10 { 11 struct sockaddr_in6 addr;12 13 memset(&addr, 0, sizeof addr);14 addr 阅读全文
posted @ 2012-03-15 19:51 田涛@武汉 阅读(186) 评论(0) 推荐(0)