Use socket.inet_aton to pack IP addresses.

Built-in socket.inet_aton should be used instead of recreating.