I'm looking for a Java library that will give me access to raw Ethernet frames, both for reading and sending them. My end goal is to create a BACnet Ethernet network scanner.
Please, Note, I'm not looking for TCP\IP.
Anyone know of a good library for doing this?
Maybe Jpcap can help. Notice that there's a Sourceforge project with the same name, but it doesn't seem to be the same project.
Here's some sample code (from the library's tutorial) that uses Jpcap to send a TCP packet and an Ethernet frame:
Edit: The sample code does create a
TCPPacket
, but you may create a regularPacket
instead.