Help Needed

Eddie Kohler kohler at icir.org
Sun Jun 2 23:47:34 EDT 2002


Hi Shweta,

> 	Is it possible using click C++ programming level I mean, to get the MAC
> Address of a particular wireless ethernet card? in the .cc files I mean when
> i say C++ programming level.

Use AddressInfo to do this. For example:

#include <click/standard/addressinfo.hh>

// ...

unsigned char ether_addr[6];
if (!AddressInfo::query_ethernet("devicename", ether_addr, this))
   return errh->error("no such device, or device is not Ethernet");

Eddie



More information about the click mailing list