netlink plugin: Use of less strict rules in link_filter_cb()
authorPavel Rochnyack <pavel2000@ngs.ru>
Mon, 7 May 2018 15:53:23 +0000 (22:53 +0700)
committerAleksei Zakharov <zaharov@selectel.ru>
Thu, 17 Jan 2019 10:34:59 +0000 (13:34 +0300)
commitf7960c5d74068aec075758718a2779d09235d5d5
treeea2419c60eb22309ee76fc881a56c34eda40259d
parent3f9613516e4ee1a9512afeb173548c5fce71704f
netlink plugin: Use of less strict rules in link_filter_cb()

mnl_attr_validate2() function implements strict equality check of kernel and
userspace structures size. Additional counters was added to 4.6 Linux kernel,
sizes was changed and mismatch can occur.

This patch weakened validation.
Now Collectd just checks if structures, received from kernel space, has enough
data.

Closes: #2510

# Conflicts:
# src/netlink.c
src/netlink.c