摘要:
选修了一门信息安全专业的课,做了个实验,是实现网络抓包的功能:代码如下:#include<stdio.h>#include<stdlib.h>#include<string.h>#include<netinet/ip_icmp.h>#include<netinet/tcp.h>#include<netinet/udp.h>#include<arpa/inet.h>#include<sys/socket.h>#include<sys/types.h>#define BUFFSIZE 102 阅读全文