src/common.[ch]: Implemented `htond' and `ntohd' and applied it to the network plugin.