>
>
> +/* Add a new vif to announce garps */
> +static void
> +send_garp_add(const struct sbrec_port_binding *binding_rec,
> +              int ofport)
> +{
> +    int i;
> +    for (i = 0; i < binding_rec->n_mac; i++) {
> +        struct lport_addresses laddrs;
> +        if (extract_lport_addresses(binding_rec->mac[i], &laddrs,
> +                                    false)) {
> +            /* the mac address must be valid */
> +            struct garp_data *garp = xmalloc(sizeof(struct garp_data));
> +            garp->ofport = ofport;
> +            garp->ea = laddrs.ea;
> +            garp->ipv4 = 0;
> +            if (laddrs.n_ipv4_addrs) {
> +                garp->ipv4 = laddrs.ipv4_addrs[0].addr;
>
>
​You have to free laddrs.ipv4_addrs.

Also I think you can merge patchset 2 and 3 as patch 3 tests patch 2​

.
​
Thanks
a

--
> 2.3.9
>
> _______________________________________________
> dev mailing list
> dev@openvswitch.org
> http://openvswitch.org/mailman/listinfo/dev
>
_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to