-
CAN网络与IP网络通信
void Task_Server(void *pdata) { SOCKET* s; int ei; //存放返回值的变量 int RecvCnt=0; //接收数据个数 uint8 RecvBuff[200]; //接收缓冲区 uint8 RecvBuffP=0; uint8 CanSUCCESS=0; struct sockaddr serveraddr,clientaddr; //sockaddr 结构体由协议栈类型、IP和端口组成 uint32 regaddrBYTE; serveraddr.sin_family = 0; //协议栈类型 serveraddr.sin_addr[0] = MCU_IP[0]; //四位IP地址 serveraddr.sin_addr[1] = MCU_IP[1]; serveraddr.sin_addr[2] = MCU_IP[2]; serveraddr.sin_addr[3] = MCU_IP[3]; serveraddr.sin_port = 4000; //服务器本地端口 s = socket(AF_INET,SOCK_STREAM,TCP_
- 2022-06-02 01:16:17下载
- 积分:1
-
使用ARP协议获取局域网内活动主机物理地址
Ethernet是目前使用广泛的局域网,基于802.3协议,主机之间的通信是通过网络适配器上唯一的MAC地址来完...
使用ARP协议获取局域网内活动主机物理地址
Ethernet是目前使用广泛的局域网,基于802.3协议,主机之间的通信是通过网络适配器上唯一的MAC地址来完成。
本次任务基于ARP协议编写程序,实现获取本局域网内所有活动主机的MAC地址与IP地址的映射列表的功能。
在使用Winpcap第三方开发包的基础上,程序自身实现ARP数据包的封装,并利用Winpcap的相关函数实现ARP包的发送、接受和解析工作。显示局域网内活动主机MAC地址和IP地址对应关系。
-Get the host by using the arp
- 2023-05-11 09:35:03下载
- 积分:1
-
cc2431无线芯片的抓包工具,可以通过usb口连接单片机,然后显示MAC层的包的详细内容
cc2431无线芯片的抓包工具,可以通过usb口连接单片机,然后显示MAC层的包的详细内容-cc2431 radio chip capture tool, you can connect through the usb port single-chip, and then show the MAC Layer packet details
- 2022-10-25 14:40:03下载
- 积分:1
-
利用WipCap捕获网络数据包并分析数据包,含源代码和工程文件,学习网络数据包捕获分析以及WinPcap的好程序...
利用WipCap捕获网络数据包并分析数据包,含源代码和工程文件,学习网络数据包捕获分析以及WinPcap的好程序-WipCap use of network packets capture and analyze packets, including source code and project files, learning network packet capture analysis, and a good program WinPcap
- 2022-03-23 15:57:32下载
- 积分:1
-
C语言版本的HTTP标头解析,地址的使用实例。
C语言版的HTTP包头解析,符使用实例。-C language version of the HTTP header parsing, address the use of examples.
- 2022-03-07 07:34:21下载
- 积分:1
-
一个很详细的嗅探工具,跟大家分享,共同学习
一个很详细的嗅探工具,跟大家分享,共同学习-A very detailed sniffing tools, like to share with you, learning together
- 2022-05-22 15:00:41下载
- 积分:1
-
IP TCP UDP ICMP协议数据包的捕获
捕获IP TCP UDP ICMP协议数据包代码
基于Libpcap-Capture IP TCP UDP ICMP protocol packet-based code Libpcap
- 2022-10-26 21:20:02下载
- 积分:1
-
一个mini抓包发包程序 我利用pcaplib for windows写的一个抓包发包程序Captx for Win2k/Winnt/Win9x, 仅110K,...
一个mini抓包发包程序 我利用pcaplib for windows写的一个抓包发包程序Captx for Win2k/Winnt/Win9x, 仅110K,跑起来占内存2M,附有VC源代码,大家有什么特殊需要可以自己修改代码。 使用方法: (1)把整个CapTx目录拷贝到自己的硬盘上 (2)安装packet capture drivers v2.02(Captxdrivers下的相应目录,在网络中添加协议后,选磁盘安装) (3) 启动CapTx.exe (4) 点抓包按钮开始抓包,用单选按钮可以选择转包后的输出格式是详细的还是简单的, 详细的包格式如下: 00000000: FF FF FF FF FF FF 00 45 00 47 00 48 00 08 45 00 .......e.g.h..e. 简单的包格式仅有中间的部分 (5) 该包存到一个跟应用程序相同的目录中的一个log文件中。 (6)往编辑框中填如下所示的包字符: ff ff ff ff ff ff 00 b0 d0 d0 b0 d8 08 06 00 01 08 00 06 04 00 01 00 b0 d0 d0 b0 d8 c0 a8 00 01 00 00 00 00 00 00 c0 a8 00 c9 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 就可以发送一个ARP包了。 (7)该程序由于由源代码,所以你可以根据你额需要随便修改成自己想要的抓包/发包功能。-a mini capturing Packet letting process I use for windows pcaplib wrote an capturing Packet letting process for Win2k/Winnt/Win9x Captx only 110K, running together for 2M memory, with VC source code, you have any special needs can modify the code themselves. Use : (a) the entire CapTx catalog copy of their hard drive (2) Installation of p
- 2022-01-24 10:09:15下载
- 积分:1
-
n在VB书通过新浪爬虫写了很长一段时间,现场采集…
N久前用VB写的新浪图书抓取工具,需要用网站采集然后用这个工具进行配合抓取-N a long time before the VB books written by Sina crawlers, site acquisition and then need to use this tool with the Crawl
- 2022-01-25 23:22:37下载
- 积分:1
-
eavesdropping, the use of java development.
网络监听程序,使用java开发。-eavesdropping, the use of java development.
- 2022-09-20 11:30:02下载
- 积分:1