[ovs-discuss] Is a new field in flow.h necessary for matching on a custom v6 extension header?

Alan Kayahan hsykay at gmail.com
Mon Feb 19 17:15:30 UTC 2018


Hello,

I have a custom v6 extension header, in which I would like to perform an
LPM match on only one 32bit field.

Since an extension header is technically not a new field, do I still need
to introduce anything in the struct flow?

In miniflow_extract(), what I did was to add a case
in parse_ipv6_ext_hdrs__ as (*nw_proto == IPPROTO_TRH) where IPPROTO_TRH is
my custom proto number, and parse the *datap to my struct trh_hdr, then
data_try_pull. Is this the appropriate approach?

If yes, what would the appropriate way be for accessing the 32bit field in
trh_hdr to perform the match?

Thanks,
Alan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-discuss/attachments/20180219/f16f1f0a/attachment-0001.html>


More information about the discuss mailing list