is it possible to get mac by an internal function.

From: Joe Wronkowski (jwronkowski@cypress-tech.net)
Date: Thu Feb 10 2000 - 00:54:56 EST


Hi,
I have been working on a mobile ip experiment and I need to get the clients
mac in order to send a "gratuituous ARP" packet. I am currently using the
following:

snipet...
len = recvfrom(udpsocket, inpacket_buf, MAX_PACKET_SIZE, 0 , (struct
sockaddr *) &mndAddr, &addrLength);

This is getting the clients port and IP but I want to be able to get the mac
also. Is it possible to get it from the recvfrom fuction if not does anyone
have any good Ideas how to get it. I have seen the /sbin/ifconfig system
call used but I don't really want to implement a system call if I don't have
too. Any help would be apprecitated.

Thanks
Joe Wronkowski
jwronkowski@cypress-tech.net

-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.rutgers.edu



This archive was generated by hypermail 2b29 : Tue Feb 15 2000 - 21:00:35 EST