Don't allocate space for non-existent local interfaces.
Drop privileges, handle FIN/RST in order, memory fixes, reindentation.
Only check IPv4 addresses, rename a few things.
Don't block during the TCP handshake.