Fix issue #1, packet_size cannot be set

Inspired by https://github.com/bluemonk/net-dns/issues/64 patch by
svenXY