Re: [PATCH v4 06/11] tests: check decoding of packet_diag_msg attributes

2017-07-10 Thread Dmitry V. Levin
On Thu, Jul 06, 2017 at 02:53:56PM +0300, Dmitry V. Levin wrote: > On Thu, Jul 06, 2017 at 09:57:32AM +0800, JingPiao Chen wrote: [...] > > +#ifdef HAVE_LINUX_FILTER_H > > + static const struct sock_filter filter[] = { > > + BPF_JUMP(BPF_JMP|BPF_K|BPF_JEQ, 1, 0, 1) > > + }; > > + TE

Re: [PATCH v4 06/11] tests: check decoding of packet_diag_msg attributes

2017-07-06 Thread Dmitry V. Levin
On Thu, Jul 06, 2017 at 09:57:32AM +0800, JingPiao Chen wrote: > * tests/nlattr_packet_diag_msg.c: New file. > * tests/gen_tests.in (nlattr_packet_diag_msg): New entry. > * tests/pure_executables.list: Add nlattr_packet_diag_msg. > * tests/.gitignore: Likewise. > --- > tests/.gitignore

[PATCH v4 06/11] tests: check decoding of packet_diag_msg attributes

2017-07-05 Thread JingPiao Chen
* tests/nlattr_packet_diag_msg.c: New file. * tests/gen_tests.in (nlattr_packet_diag_msg): New entry. * tests/pure_executables.list: Add nlattr_packet_diag_msg. * tests/.gitignore: Likewise. --- tests/.gitignore | 1 + tests/gen_tests.in | 1 + tests/nlattr_packet_dia