On Wed, Jun 15, 2016 at 12:13:06PM +0300, Dmitry V. Levin wrote:
> On Wed, Jun 15, 2016 at 09:09:19AM +, Fabien Siron wrote:
> > Quoting Dmitry V. Levin (2016-06-14 12:00:30)
> > > On Mon, Jun 13, 2016 at 02:37:22PM +, Fabien Siron wrote:
> > > > +static void
> > > > +printsockbuf(struct tc
On Wed, Jun 15, 2016 at 09:09:19AM +, Fabien Siron wrote:
> Quoting Dmitry V. Levin (2016-06-14 12:00:30)
> > On Mon, Jun 13, 2016 at 02:37:22PM +, Fabien Siron wrote:
> > > +static void
> > > +printsockbuf(struct tcb *tcp, int fd, long addr, long addrlen)
> > > +{
> > > + int proto = g
Quoting Dmitry V. Levin (2016-06-14 12:00:30)
> On Mon, Jun 13, 2016 at 02:37:22PM +, Fabien Siron wrote:
> > +static void
> > +printsockbuf(struct tcb *tcp, int fd, long addr, long addrlen)
> > +{
> > + int proto = getfdproto(tcp, fd);
>
> This operation costs a few syscalls so it shouldn
On Mon, Jun 13, 2016 at 02:37:22PM +, Fabien Siron wrote:
> This commit introduces a general socket netlink parser which prints
> the header and a string for the remaining part of the buffer. It doesn't
> handle all the netlink flags and types because the parser needs more
> information. It wil
This commit introduces a general socket netlink parser which prints
the header and a string for the remaining part of the buffer. It doesn't
handle all the netlink flags and types because the parser needs more
information. It will be done soon.
* net.c (get_family): New function.
(do_msghdr): Call