change all int variable to network byte order