[ovs-discuss] OVN: MAC_Binding entries not getting updated leads to unreachable destinations

Ben Pfaff blp at ovn.org
Mon Nov 26 20:29:55 UTC 2018


On Fri, Nov 16, 2018 at 06:41:33PM +0100, Daniel Alvarez Sanchez wrote:
> +static void
> +delete_mac_binding_by_ip(struct northd_context *ctx, const char *ip)
> +{
> +    const struct sbrec_mac_binding *b, *n;
> +    SBREC_MAC_BINDING_FOR_EACH_SAFE (b, n, ctx->ovnsb_idl) {
> +        if (strstr(ip, b->ip)) {
> +            sbrec_mac_binding_delete(b);
> +        }
> +    }
> +}

I haven't read the whole thread properly yet, but: why does this use
strstr()?


More information about the discuss mailing list