How to get MAC address using C program

girish girishlc lc_girish at yahoo.com
Tue May 30 20:03:53 PDT 2006


  Pls any body tell me how to find out a MAC address in a program,
   
   
  Because I want to generate pseudo random number of IP address of some range for that MAC address and IP range will be the input and it should give IP address according to MAC address as a seed , but if I use difft MAC address (i,e for difft host ) it should give difft IP address,
   
   
  But if I give first MAC address it should give the same old IP address, 
   
   
  So pls send me answer as soon as possible code in C and also if possible ALGORITHMS pls its very urgent
   
   
  Thank you, 
  Regards 
  Girish.L.C
  lc_girish at yahoo.com

		
---------------------------------
Do you Yahoo!?
 Get on board. You're invited to try the new Yahoo! Mail Beta.


More information about the freebsd-questions mailing list