net_utils: move is_ipv4_literal into net_utils