I am having 2 related queries to which you gurus may answer quickly.
1. How do I know the ethernet address of the adapters in my own machine
within a program( say from a C/C++ program - there must be a system
this purpose.) Also pls. let me know what is the handy command I can
shell prompt to know the same.
2. Given a ethernet address(which as per my knowledge is unique over the
how do I know whether the interface( whatever machine it is attached
to) is up or
not. Is their any system call for doing that? It wil be very helpful
for me if you also
let me know whether there is any command line utility to do that. At
least I should
be able to do that in my subnet.
Thank you in advance -