summaryrefslogtreecommitdiff
path: root/ovsdb
diff options
context:
space:
mode:
authorIlya Maximets <i.maximets@ovn.org>2022-11-24 15:15:15 +0100
committerIlya Maximets <i.maximets@ovn.org>2022-11-30 15:12:54 +0100
commit954ae38a12f0c0d7bab1334c9ba353da94de887c (patch)
tree1537d873cd6d931c01411f86c51f96c921560564 /ovsdb
parentcd475f976512bd1ce3abaf325c835780c37d6386 (diff)
downloadopenvswitch-954ae38a12f0c0d7bab1334c9ba353da94de887c.tar.gz
odp-util: Fix reporting unknown keys as keys with bad length.
check_attr_len() currently reports all unknown keys as keys with bad length. For example, IPv6 extension headers are printed out like this in flow dumps: eth_type(0x86dd),ipv6(...) (bad key length 2, expected -1)(00 00/(bad mask length 2, expected -1)(00 00), icmpv6(type=0/0,code=0/0) However, since the key is unknown, the length check on it makes no sense and should be ignored. This will allow the unknown key to be caught later by the format_unknown_key() function and printed in a more user-friendly way: eth_type(0x86dd),ipv6(...),key32(00 00/00 00),icmpv6(type=0/0,code=0/0) '32' here is the actual index of the key attribute, so we know that it is unknown attribute #32 with the value/mask pair printed out inside the parenthesis. Acked-by: Aaron Conole <aconole@redhat.com> Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
Diffstat (limited to 'ovsdb')
0 files changed, 0 insertions, 0 deletions