[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20171004081450.20973fe8@xeon-e3>
Date: Wed, 4 Oct 2017 08:14:50 -0700
From: Stephen Hemminger <stephen@...workplumber.org>
To: David Laight <David.Laight@...LAB.COM>
Cc: 'Stefan Hajnoczi' <stefanha@...hat.com>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>,
Jorgen Hansen <jhansen@...are.com>,
Dexuan Cui <decui@...rosoft.com>
Subject: Re: [PATCH iproute2 1/3] ss: allow AF_FAMILY constants >32
On Wed, 4 Oct 2017 15:03:09 +0000
David Laight <David.Laight@...LAB.COM> wrote:
> From: Stefan Hajnoczi
> > Sent: 04 October 2017 16:01
> ...
> > > > --- a/misc/ss.c
> > > > +++ b/misc/ss.c
> > > > @@ -170,55 +170,57 @@ enum {
> > > > struct filter {
> > > > int dbs;
> > > > int states;
> > > > - int families;
> > > > + __u64 families;
> > >
> > > Since this isn't a value that is coming from kernel. It should be uint64_t
> > > rather than __u64.
> >
> > Okay, will fix in v2.
>
> But that looks like a kernel structure, not one exposed to userspace.
> So surely __u64 is correct.
>
> David
>
families is a bit field which is built from data, not from kernel.
Powered by blists - more mailing lists