06 2016 档案
摘要:#include<stdio.h>#include<nids.h>#include<string.h>#include <sys/socket.h>#include <netinet/in.h>#include <arpa/inet.h>#include<stdlib.h>#include<neti
阅读全文
摘要:warning: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘int’ [-Wformat=] 例如: printf("%s", ctime((const time_t *)&protocol_hea
阅读全文
摘要:char*inet_ntoa(struct in_addr in)将一个IP转换成一个互联网标准点分格式的字符串。 我把 inet_ntoa 需要的头文件加上去: #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.
阅读全文
摘要:法一: 指定可用网卡: nids_params.device="lo"; 法二: nids.h中有这么一段: struct nids_chksum_ctl { u_int netaddr; u_int mask; u_int action; u_int reserved; }; extern voi
阅读全文

浙公网安备 33010602011771号