How to get MAC address using C program

Jim Stapleton stapleton.41 at gmail.com
Wed May 31 04:43:45 PDT 2006


Could you exec() ifconfig?

On 5/30/06, girish girishlc <lc_girish at yahoo.com> wrote:
>   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.
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
>


More information about the freebsd-questions mailing list