A simplification, * socket.c (scm_from_ipv6): Just use mpz_import. Don't bother trying to fit scm_from_ulong_long, since that uses mpz_import anyway. Don't bother trying to fit scm_from_ulong, not really worth the trouble if addresses are more than 4 bytes usually.