> This will make it easier to support 64-bit OXM experimenter fields.
> 
> Signed-off-by: Ben Pfaff <b...@nicira.com>

>  static void
> -nxm_put_ipv6(struct ofpbuf *b, uint32_t header,
> +nxm_put_ipv6(struct ofpbuf *b,
> +             enum mf_field_id field, enum ofp_version version,
>               const struct in6_addr *value, const struct in6_addr *mask)
>  {
> -    if (ipv6_mask_is_any(mask)) {
> -        return;
> -    } else if (ipv6_mask_is_exact(mask)) {
> -        nxm_put_header(b, header);
> -        ofpbuf_put(b, value, sizeof *value);
> -    } else {
> -        nxm_put_header(b, nxm_make_wild_header(header));
> -        ofpbuf_put(b, value, sizeof *value);
> -        ofpbuf_put(b, mask, sizeof *mask);
> -    }
> +    nxm_put(b, field, version, value, mask, sizeof *value);
>  }

i prefer to use ->s6_addr when using it as raw bytes.
not a fault of this patch, though.

Acked-by: YAMAMOTO Takashi <yamam...@valinux.co.jp>
_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to