Hot Search : Source embeded web remote control p2p game More...
Location : Home Search - rawsocket
Search - rawsocket - List
基于RawSocket的数据包过滤程序,共包含7个文件:inetheader.h、rawsocsniffer.h、rawsocket.h、rawsocket.c、rawsocsniffer.c、main.c、makefile。 编译:命令行模式下,切换到代码所在目录,输入make即可编译。编译后将生成一个可执行文件main,以及一些obj文件。 运行:命令行下输入 ./main [-s 源IP] [-d 目的IP] [-atui] 即可运行程序,可以通过设置不同的参数可以实现简单的过滤功能。参数功能如下: s是根据源IP地址过滤数据包 d是根据目的IP地址过滤数据包 a是过滤ARP包 t是过滤TCP包 u是过滤UDP包 i是过滤ICMP包-RawSocket based packet filtering program, contains a total of seven files: inetheader.h, rawsocsniffer.h, rawsocket.h, rawsocket.c, rawsocsniffer.c, main.c, makefile. Compile: command line mode, switch to the code directory, enter to compile make. Generates an executable file main, and some obj files compiled after. Run: command line input/main [-s source IP] [-d purpose IP] [-atui] to run the program, you can set different parameters can be achieved simply filtering. Parameter functions are as follows: s is to filter packets based on the destination IP address d is filtered packet is a packet filtering ARP is to filter TCP packets t u i is a UDP packet filtering based on source IP address filtering ICMP packets
Date : 2025-12-20 Size : 11kb User : xuting
CodeBus is one of the largest source code repositories on the Internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.