add support for big endian routers

thank you very much matthew1471 for reporting the issue :)