#if ! defined(ENABLE_HWADDR_UPDATE)
if (emergency_rewrite)
fprintf(stderr, "Full EEPROM overwrite has been disabled"
" in this release of the diagnostic.\n");
if (set_hwaddr)
fprintf(stderr, "Modifying the station (MAC) address has been disabled"
" in this release of the diagnostic.\n");
#else
/* Do not enable this code for end-users: it is too easy to misuse. */
if (emergency_rewrite && ! set_hwaddr)
printf("*** Emergency EEPROM rewrite is only valid when you also "
"specify a new\n*** station address with -H <xx:xx:...>\n");
if (set_hwaddr) {
if (emergency_rewrite)
memcpy(new_ee_contents, djb_eepro100_eeprom,
sizeof djb_eepro100_eeprom);
for (i = 0; i < 3; i++)
new_ee_contents[i] =
(new_hwaddr[i*2+1]<<8) + new_hwaddr[i*2];
eeprom_change++;
}
#endif