net/ice/base: fix switch programming for IPv6