Factor into ip-socket for raw IP sockets