Hello, How to get the MAC address of an ethernet interface, using the boost C++ library? Thanks, Jean
Hello Jean, You could do this using a standard ioctl call to your ethernet driver from the user space, AFAIK you perhaps do not need boost to get the mac address. Cheers /Ramesh On Fri, Aug 22, 2008 at 9:48 AM, Jean-Sebastien Stoezel < js.stoezel@gmail.com> wrote:
Hello,
How to get the MAC address of an ethernet interface, using the boost C++ library?
Thanks, Jean _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
Hi,
Thanks for your quick answer. I am running Windows XP so I am not sure
I have access to ioctl... I would like to provide a solution that is
OS independent, this is why I would like to use Boost... Does boost
provide an interface to get the MAC address?
Thanks,
Jean
On 8/22/08, Ramesh
Hello Jean,
You could do this using a standard ioctl call to your ethernet driver from the user space, AFAIK you perhaps do not need boost to get the mac address.
Cheers /Ramesh
On Fri, Aug 22, 2008 at 9:48 AM, Jean-Sebastien Stoezel
wrote: Hello,
How to get the MAC address of an ethernet interface, using the boost C++ library?
Thanks, Jean _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
I doubt if boost has one such generic API, you can try ACE, but I doubt that too - best way is to have your own. Just that you might have to search a bit of NDIS & MSDN documentation. Cheers /R On Fri, Aug 22, 2008 at 10:01 AM, Jean-Sebastien Stoezel < js.stoezel@gmail.com> wrote:
Hi,
Thanks for your quick answer. I am running Windows XP so I am not sure I have access to ioctl... I would like to provide a solution that is OS independent, this is why I would like to use Boost... Does boost provide an interface to get the MAC address?
Thanks, Jean
On 8/22/08, Ramesh
wrote: Hello Jean,
You could do this using a standard ioctl call to your ethernet driver from the user space, AFAIK you perhaps do not need boost to get the mac address.
Cheers /Ramesh
On Fri, Aug 22, 2008 at 9:48 AM, Jean-Sebastien Stoezel
wrote: Hello,
How to get the MAC address of an ethernet interface, using the boost C++ library?
Thanks, Jean _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
Jean-Sebastien Stoezel schrieb:
Hello,
How to get the MAC address of an ethernet interface, using the boost C++ library?
Well it's not implemented in boost. I can show you an example how to get
it on linux and windows (I had to get it for a library I am working on).
However that's just the rough way, I'm not in need to get it for a
specific interface, but with this you'll find the needed info faster ;)
Linux:
#include
participants (3)
-
Jean-Sebastien Stoezel
-
Ramesh
-
Vinzenz Feenstra