more tricks for POSIX IP4 and IP6