Re: [PATCH v3 3/7] tests: check decoding of netlink protocol

2016-06-17 Thread Dmitry V. Levin
On Fri, Jun 17, 2016 at 02:32:02PM +, Fabien Siron wrote: > Quoting Dmitry V. Levin (2016-06-16 14:54:58) > > On Thu, Jun 16, 2016 at 02:20:07PM +, Fabien Siron wrote: > > > Quoting Dmitry V. Levin (2016-06-16 10:40:18) > > > > On Wed, Jun 15, 2016 at 12:43:01PM +, Fabien Siron wrote: >

Re: [PATCH v3 3/7] tests: check decoding of netlink protocol

2016-06-17 Thread Fabien Siron
Quoting Dmitry V. Levin (2016-06-16 14:54:58) > On Thu, Jun 16, 2016 at 02:20:07PM +, Fabien Siron wrote: > > Quoting Dmitry V. Levin (2016-06-16 10:40:18) > > > On Wed, Jun 15, 2016 at 12:43:01PM +, Fabien Siron wrote: > > > [...] > > > > +static void > > > > +send_query(const int fd, cons

Re: [PATCH v3 3/7] tests: check decoding of netlink protocol

2016-06-16 Thread Dmitry V. Levin
On Thu, Jun 16, 2016 at 02:20:07PM +, Fabien Siron wrote: > Quoting Dmitry V. Levin (2016-06-16 10:40:18) > > On Wed, Jun 15, 2016 at 12:43:01PM +, Fabien Siron wrote: > > [...] > > > +static void > > > +send_query(const int fd, const unsigned int pid_magic) > > > +{ > > > + struct { >

Re: [PATCH v3 3/7] tests: check decoding of netlink protocol

2016-06-16 Thread Fabien Siron
Quoting Dmitry V. Levin (2016-06-16 10:40:18) > On Wed, Jun 15, 2016 at 12:43:01PM +, Fabien Siron wrote: > [...] > > +static void > > +send_query(const int fd, const unsigned int pid_magic) > > +{ > > + struct { > > + struct nlmsghdr nlh; > > + char magic[4]; > > +

Re: [PATCH v3 3/7] tests: check decoding of netlink protocol

2016-06-16 Thread Dmitry V. Levin
On Wed, Jun 15, 2016 at 12:43:01PM +, Fabien Siron wrote: [...] > +static void > +send_query(const int fd, const unsigned int pid_magic) > +{ > + struct { > + struct nlmsghdr nlh; > + char magic[4]; > + } req = { > + .nlh = { > + .

[PATCH v3 3/7] tests: check decoding of netlink protocol

2016-06-15 Thread Fabien Siron
* tests/netlink_parsing.test: New test. * tests/netlink_parsing.c: New file. * tests/.gitignore: Add netlink_parsing. * tests/Makefile.am (check_PROGRAMS): Likewise. --- tests/.gitignore | 1 + tests/Makefile.am | 2 + tests/netlink_parsing.c| 96 ++