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 ;)
___
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
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
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,