Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

putting NIC in promiscuous mode

Status
Not open for further replies.

FurqanAhmed

Programmer
Oct 1, 2001
87
PK
Hi,

I'm looking into the possibility of making a network management software, so naturally it should include a network monitor. But the basic requirement of a network monitor is to be able to put the NIC of the local machine in promiscuous mode. Anyone here know how to put the NIC into promiscuous mode in Java? Even if you know any means like using JNI, let me know.

Thanks
Furqan
 
You are unlikely to get that done from pure java. What you want to do is low-level, system dependant and you won't find a native java package to do that for you. What you will need to do is to write a native library (possibly in C) to do the low-level stuff and then pass the captured data up to your java class.

For more information, see the JNI tutorials on java.sun.com

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top