handle different AF_INET6 values on different OSes
Merge pull request #503 from koeppea/null-decoder-foreign-af

handle different AF_INET6 values on different OSes