有没有办法通过Java发送ARP请求? [英] Is there a way to send ARP request via Java?
问题描述
有没有办法在Java应用程序中发送ARP请求?我知道ARP在TCP和UDP下是一层,因此默认情况下Java无法发送ARP请求。我只是想知道是否有任何第三方Java库允许您发送ARP请求。
Is there a way to send ARP request within a Java application? I know that ARP is sitting a layer under TCP and UDP therefore by default Java couldn't send ARP request. I am just wondering is there any 3rd party Java library that will allow you to send ARP request.
为了捕获ARP回复,我知道我可以使用jpcap以便部分是已经解决。
To capture ARP reply, I know I can use jpcap so that part is solved.
谢谢
推荐答案
一个java应用程序总能执行一些外部命令,调用另一个工具来完成它。我不确定你的标准java是什么意思。
A java app can always execute some external command, calling another tool to do it. I'm not sure what you mean by "standard java" though.
基于谷歌搜索,似乎有的arping 在 kraken pcap ,这是Java版本。请参阅关于Kraken 。
Based on googling, there seems to be arping in kraken pcap which is in Java. See about Kraken.
还有 jpcap 以及用于此目的。
这篇关于有没有办法通过Java发送ARP请求?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!