Re: How to get MAC address using C program

2006-05-31 Thread Norberto Meijome
On Wed, 31 May 2006 07:43:44 -0400 "Jim Stapleton" <[EMAIL PROTECTED]> wrote: > Could you exec() ifconfig? at the risk of stating the bleeding obvious, maybe checking the code in ifconfig would show exactly what the original poster asked... you gotta love OpenSource ;) ___

Re: How to get MAC address using C program

2006-05-31 Thread Jim Stapleton
Could you exec() ifconfig? On 5/30/06, girish girishlc <[EMAIL PROTECTED]> 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

How to get MAC address using C program

2006-05-30 Thread girish girishlc
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 ad

How to get MAC address using C program

2004-11-10 Thread Dennis George
Hi, Can anybody help me out to retrieve MAC address of my machine... using a C program I gave it a try using ioctl but not getting the correct result.. Following is my code.. int main() { .. struct ifr_req ifr ; strcpy(ifr.ifr_name, "rl0"); if( ioctl(s, SIOCGIFADDR,