Re: Ethernet HW address on linux
Larry I Smith <larryXiXsmith@verizon.net> wrote in message news:<qsuNc.12400$Nu4.12053@nwrddc01.gnilink.net>. ..
> Pushkar Naik wrote:
> > Hello,
> > I'm working with an application that tries to detect the
> > ethernet hw address of the machine for validating a user. My PC does
> > not have an ethernet card. So
> > when the application querries, linux returns a null string, and the
> > applications fails to run.
> > The same application on same PC on windows works fine because windows
> > returns the ethernet id as 000000000000 and not a null string.
> >
> > Is there any way i can make linux return the ethernet id as
> > 000000000000 when the ethernet card is not present on the machine ?
> >
> > I guess virtual ethernet adaptor could be one possible way, can
> > someone give me a step by step procedure for going about using this
> > method, if this is the best solution.
> >
> > Thanx in advance.
> >
> > Regards,
> > Pushkar
>
> Hmm, why not just accept/interpret the null string to
> mean 'no ethernet card' (i.e a null string is the same
> as 000000000000)?
>
> Assuming 000000000000 for "no card" will NOT work across
> multiple OS's (not just Linux). That's highly
> Windows-specific.
>
> Larry
Hello Larry,
Well, the application i talked about is a licensed one
with only binaries available, no source code. Now the application
tries to look for a integer value and not a character string of the
address. Thats the reason it fails with that null string response from
linux. Coz the license contains an ethernet address of 000000000000
while linux gives "", since they dont match it cribs thats the hw
address dont match.
How can i set some mac address in linux to be reported to anyone who
querries, in the absence of a physical card ?
Pushkar.
|