gpt4 book ai didi

java - Java监听ARP广播

转载 作者:行者123 更新时间:2023-11-30 07:34:54 26 4
gpt4 key购买 nike

有人可以指导我用 Java 收听 ARP 广播吗?

最佳答案

您可以使用 JpCap收听 ARP 数据包。

Jpcap is a Java library for capturing and sending network packets.

Using Jpcap, you can develop applications to capture packets from a network interface and visualize/analyze them in Java. You can also develop Java applications to send arbitrary packets through a network interface.

Jpcap has been tested on Microsoft Windows (98/2000/XP/Vista), Linux (Fedora, Mandriva, Ubuntu), Mac OS X (Darwin), FreeBSD, and Solaris.

Jpcap can capture Ethernet, IPv4, IPv6, ARP/RARP, TCP, UDP, and ICMPv4 packets.

Jpcap is open source, and is licensed under GNU LGPL.

编辑:github 中关于 JPCAP 的最后一次提交是 9 年前的。

关于java - Java监听ARP广播,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4897738/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com