public inbox for netdev@vger.kernel.org 
 help / color / mirror / Atom feed
From: Stephen Hemminger <shemminger@vyatta•com>
To: Ben Hutchings <ben@decadent•org.uk>, Thomas Graf <tgraf@infradead•org>
Cc: "Bruno Prémont" <bonbons@linux-vserver•org>,
	netdev@vger•kernel.org, "Greg Rose" <gregory.v.rose@intel•com>
Subject: Re: netlink: 12 bytes leftover after parsing attributes - triggered by iproute2 libnetlink's rtnl_dump_request()
Date: Tue, 20 Mar 2012 17:02:29 -0700	[thread overview]
Message-ID: <20120320170229.49de95f5@nehalam.linuxnetplumber.net> (raw)
In-Reply-To: <1332255630.8043.11.camel@deadeye>

[-- Attachment #1: Type: text/plain, Size: 1035 bytes --]

On Tue, 20 Mar 2012 15:00:30 +0000
Ben Hutchings <ben@decadent•org.uk> wrote:

> On Tue, 2012-03-20 at 07:41 -0700, Stephen Hemminger wrote:
> > 
> > > 
> > > Should this get fixed at kernel level, iproute2 libnetlink level or
> > > at end-user level (e.g. collectd)?
> > > Three lines every 10 seconds is a damn lot!
> > > 
> > > Thanks,
> > > Bruno
> > 
> > Netlink is supposed to be encoded as Type-Length-Value and correctly written
> > programs ignore types they don't understand. So either the library is getting
> > confused by the type or the attribute is not encoded correctly.
> > 
> > 
> > The issue could be in libnetlink library. What version of collectd and libnetlink
> > are you using?
> 
> This was also reported as provoked by a client using the ntrack
> rtnetlink code: http://thread.gmane.org/gmane.linux.network/224236
> 
> Ben.
> 

The message "netlink: NN bytes leftover after processing attributes."
comes from libnl, not libnetlink.
The code in nla_parse() is getting confused.


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

  reply	other threads:[~2012-03-21  0:02 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-20 12:41 netlink: 12 bytes leftover after parsing attributes - triggered by iproute2 libnetlink's rtnl_dump_request() Bruno Prémont
2012-03-20 14:41 ` Stephen Hemminger
2012-03-20 15:00   ` Bruno Prémont
2012-03-20 15:09     ` Stephen Hemminger
2012-03-20 15:00   ` Ben Hutchings
2012-03-21  0:02     ` Stephen Hemminger [this message]
2012-04-03 10:01       ` Thomas Graf
2012-04-03 10:17         ` Bruno Prémont

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120320170229.49de95f5@nehalam.linuxnetplumber.net \
    --to=shemminger@vyatta$(echo .)com \
    --cc=ben@decadent$(echo .)org.uk \
    --cc=bonbons@linux-vserver$(echo .)org \
    --cc=gregory.v.rose@intel$(echo .)com \
    --cc=netdev@vger$(echo .)kernel.org \
    --cc=tgraf@infradead$(echo .)org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox