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()?
_______________________________________________
discuss mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss