| Author |
Raw Ethernet
|
Bob Ruth
Ranch Hand
Joined: Jun 04, 2007
Posts: 318
|
|
I did a search and didn't come up with this.... Is there a way to do raw ethernet packets from Java? I looked through java.net and didn't see anything that jumped out at me....
|
------------------------
Bob
SCJP - 86% - June 11, 2009
|
 |
John Melton
Ranch Hand
Joined: Aug 17, 2004
Posts: 49
|
|
|
Java as a language only supports well-formed UDP and TCP packets, not raw packets. Technically, you can drop down through JNI and do it in C, but it'd probably be better to do in another language.
|
[url]www.jtmelton.com[/url]
|
 |
Ernest Friedman-Hill
author and iconoclast
Marshal
Joined: Jul 08, 2003
Posts: 24041
|
|
|
Note that Ethernet doesn't have packets, but rather "frames". IP, which sits below TCP and UDP (the protocols Java gives you access to), has packets.
|
[Jess in Action][AskingGoodQuestions]
|
 |
 |
|
|
subject: Raw Ethernet
|
|
|