You should try have a look in pdbt.c, query_udp():

short int carrierid;
...
short int * idptr;

You should try have a look in pdb_server.c, udp_server():

case PDB_VERSION_1:
...
                short int *_id

Try to change all the short int related to the carrier id to uint32_t (or unsigned int).
For both of them, you should try to replace ntohs/htons with ntohl/htonl (see [1]).

[1] http://linux.die.net/man/3/ntohs


Reply to this email directly or view it on GitHub.