Revert "compile fix when using ruli, port ruli to ipv6"

This reverts commit 8496fade9a2db839c06befda804be45687539b0e.
various ipv6 fixes