use environment-specific AF_INET* constants in unit test data
unit tests pass, at least (some todo's)