switched from char to unsigned char for macaddr, hopefully get rid of compiler warnings