[cw-discuss] Obtaining MAC Address while in xover office
Robert Shearman
rob at codeweavers.com
Thu Mar 8 12:32:01 CST 2007
Dan Phillips wrote:
> Well I've never had/read a more concise answer in such a short time
> for any question I've ever seen posted to this forum. Thanks Robert,
> I'll stop working on it from that standpoint unless you know of a way
> that I can call the Linux command from within my app and receive the
> feedback?
>
> On 3/7/07, *Robert Shearman* <rob at codeweavers.com
> <mailto:rob at codeweavers.com>> wrote:
>
>
> The SendARP function isn't implemented in CrossOver.
>
> In Linux, you can use arping command from the command line instead.
> For example:
> $ arping -c 1 172.16.0.12 <http://172.16.0.12>
> WARNING: interface is ignored: Operation not permitted
> ARPING 172.16.0.12 <http://172.16.0.12> from 172.16.0.11
> <http://172.16.0.11> eth0
> Unicast reply from 172.16.0.12 <http://172.16.0.12>
> [01:FE:9B:3E:BA:AD] 50.549ms
> Sent 1 probes (1 broadcast(s))
> Received 1 response(s)
>
> Of course, if the program wants to do something with the MAC address
> then this isn't going to help.
>
You might be able to use "cxnative" followed by your program arguments
(i.e. "arping -c 1 ...", but I'm not sure if the output of the Unix
program is redirected to the output of cxnative.
--
Rob Shearman
More information about the discuss
mailing list