On Mon, May 15, 2023 7:25 pm, Timothy Beaver wrote:
> break; case IMSG_VMDOP_PRIV_IFADDR6: + /*
> + * Get the current address of this interface,
> + * and delete it if it is already assigned
> + */
> + strlcpy(ifr.ifr_name, vfr.vfr_name, sizeof(ifr.ifr_name));
> +
> + if (ioctl(env->vmd_fd, SIOCGIFADDR, &ifr) == 0) {
> + if (ioctl(env->vmd_fd, SIOCDIFADDR, &ifr) == -1) {
> + log_warn("SIOCDIFADDR");
> + break;
> + }
> + } else if (errno != EADDRNOTAVAIL) {
> + log_warn("SIOCGIFADDR");
> + break;
> + }
> +
> memset(&ifar, 0, sizeof(ifar)); memset(&in6_ifra, 0, sizeof(in6_ifra));
Oops, ignore these lines under case IMSG_VMDOP_PRIV_IFADDR6.
I meant to remove these, as they aren't appropriate for IPv6 code (nor
necessary for the correct operation of my patch). Sorry for the
inconvenience.