[Patch v2 1/2] idiag: add a copy of linux/sock_diag.h

Thomas Graf tgraf at suug.ch
Fri Nov 7 03:18:56 PST 2014


On 10/27/14 at 09:50am, Cong Wang wrote:
> When we test idiag on 3.4 kernel, we always get ERANGE.
> This is because libnl has its own copy for SK_MEMINFO_*,
> which is actually newer than 3.4, where SK_MEMINFO_VARS
> is larger than kernel's.
> 
> We add a copy from latest kernel, so on older kernel
> libnl should still compile. Note, for kernel < 3.6
> we don't have SK_MEMINFO_BACKLOG, we have to relax
> the minlen.
> 
> Signed-off-by: Cong Wang <xiyou.wangcong at gmail.com>

Acked-by: Thomas Graf <tgraf at suug.ch>



More information about the libnl mailing list