Subj : Re: Ethernet HW address on linux To : comp.os.linux From : Larry I Smith Date : Tue Jul 27 2004 04:24 pm 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 -- Anti-spam address, change each 'X' to '.' to reply directly. .