Etheraddress

Eddie Kohler kohler at icir.org
Fri Jun 14 15:55:39 EDT 2002


Shweta,

> 	EtherAddress mac1;
> 
> 	mac1.s().cc() should give the string version of the ethernet address. If I
> want to store this in a char array, how can i do this? i.e. i want to store
> ths value into a character array say mac_addr[18].

strcpy(mac_addr, mac1.s().cc());
Or just store the String.

Eddie



More information about the click mailing list