replaced ntohs with byte-order independent code
Merge branch 'master' of git://github.com/simsong/be13_api