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

2016-06-15 Thread Dmitry V. Levin
On Wed, Jun 15, 2016 at 09:23:11AM +, Fabien Siron wrote: > Quoting Dmitry V. Levin (2016-06-14 12:03:47) > > On Mon, Jun 13, 2016 at 02:37:23PM +, Fabien Siron wrote: > > [...] > > > +static void > > > +send_query(const int fd) > > > +{ > > > + struct { > > > + struct nlmsg

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

2016-06-15 Thread Fabien Siron
Quoting Dmitry V. Levin (2016-06-14 12:03:47) > On Mon, Jun 13, 2016 at 02:37:23PM +, Fabien Siron wrote: > [...] > > +static void > > +send_query(const int fd) > > +{ > > + struct { > > + struct nlmsghdr nlh; > > + char magic[4]; > > + } req = { > > +

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

2016-06-14 Thread Dmitry V. Levin
On Mon, Jun 13, 2016 at 02:37:23PM +, Fabien Siron wrote: [...] > +static void > +send_query(const int fd) > +{ > + struct { > + struct nlmsghdr nlh; > + char magic[4]; > + } req = { > + .nlh = { > + .nlmsg_len = sizeof(req), > +