sock_diag: fix filter code sent to userspace
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Wed, 5 Jun 2013 13:30:55 +0000 (15:30 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 11 Jun 2013 05:23:32 +0000 (22:23 -0700)
commited13998c319b050fc9abdb73915859dfdbe1fb38
tree347c9ba28d34f2ab94823f8d52c0d223e00c036f
parent92bb73ea2c434618a68a58a2f3a5c3fd0b660d18
sock_diag: fix filter code sent to userspace

Filters need to be translated to real BPF code for userland, like SO_GETFILTER.

Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/filter.h
net/core/filter.c
net/core/sock_diag.c