netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andy Lutomirski <luto@amacapital.net>
To: Network Development <netdev@vger.kernel.org>
Subject: iproute2 bug: please specify a netlink destination
Date: Fri, 30 May 2014 11:36:04 -0700	[thread overview]
Message-ID: <CALCETrUpynVUaWWOKf=ko3jYmTcTB9CH8tK0ton1uLuDvx1yzg@mail.gmail.com> (raw)

strace ip link says:

socket(PF_NETLINK, SOCK_RAW|SOCK_CLOEXEC, 0) = 3
setsockopt(3, SOL_SOCKET, SO_SNDBUF, [32768], 4) = 0
setsockopt(3, SOL_SOCKET, SO_RCVBUF, [1048576], 4) = 0
bind(3, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 0
getsockname(3, {sa_family=AF_NETLINK, pid=3853, groups=00000000}, [12]) = 0
sendto(3, "(\0\0\0\22\0\1\3\351\316\210S\0\0\0\0\21\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
40, 0, NULL, 0) = 40

The fact that sendto doesn't return -ENOTCONN is a straight up bug,
and, of course, it's now unfixable.  But please at least fix iproute2
to minimize future pain.

--Andy

                 reply	other threads:[~2014-05-30 18:36 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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='CALCETrUpynVUaWWOKf=ko3jYmTcTB9CH8tK0ton1uLuDvx1yzg@mail.gmail.com' \
    --to=luto@amacapital.net \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
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;
as well as URLs for NNTP newsgroup(s).