[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Newer kernel for N4100?



Peter Korsgaard wrote:
>>>>>> "Bill" == Bill Gatliff <bgat@billgatliff.com> writes:
> 
> Hi,
> 
>  Bill> ... and this patch is sooooo bad, I hesitate to post it.  But
>  Bill> if I don't, I'll lose it myself!  :)
> 
> ;)
> 
>  Bill> +#else
>  Bill> +#warning "TODO: Figure out how to deal with EEPROM checksum on N4100"
>  Bill> +       static int mac_seed = 0x8a;
>  Bill> +       hw->mac_addr[0] = 0;
>  Bill> +       hw->mac_addr[1] = 0x14;
>  Bill> +       hw->mac_addr[2] = 0xfd;
>  Bill> +       hw->mac_addr[3] = 0x10;
>  Bill> +       hw->mac_addr[4] = 0x11;
>  Bill> +       hw->mac_addr[5] = mac_seed++;
> 
> You could atlest use random_ether_addr().

That would definitely be a more generic solution.  :)

I'm trying to avoid the sudden change in MAC address that the other network
members would suddenly see, and the ARP cache trashing that it would cause
(which is a problem for root-over-NFS, at least).  My patch obviously isn't the
answer, either.


b.g.
-- 
Bill Gatliff
bgat@billgatliff.com


Reply to: