X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fnetlink.c;h=725bba02f203324e679be9c3fe01f638f7f72318;hb=254f2dc8e3eb18debf4a8f238b9c87cf4d4dbd3f;hp=48a52ee343172766e89eb6bfa9619502b7932967;hpb=b18fcf8edd07d7832c16e96f29d44a2961c1e5aa;p=openvswitch diff --git a/lib/netlink.c b/lib/netlink.c index 48a52ee3..725bba02 100644 --- a/lib/netlink.c +++ b/lib/netlink.c @@ -582,6 +582,9 @@ nl_policy_parse(const struct ofpbuf *msg, size_t nla_offset, assert(n_required > 0); --n_required; } + if (attrs[type]) { + VLOG_DBG_RL(&rl, "%zu: duplicate attr %"PRIu16, offset, type); + } attrs[type] = nla; } else { /* Skip attribute type that we don't care about. */