Minor refactor, #defined some constants like ETHERNET_HEADER_LENGTH