update for ipv4/ipv6