Remove unused variable opt_udpmode

This is now superseded by opt_proto.
Add .gitignore file
Merge branch 'master' into ipv6-fixes