From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Zoll dzoll@nyscul.org Date: Thu, 26 Oct 2000 21:49:50 +0000 Subject: [LARTC] Getting "ip" command to work Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: lartc@vger.kernel.org
bert hubert wrote:
>=20
> On Thu, Oct 26, 2000 at 05:03:01PM -0400, David Zoll wrote:
>=20
> > I'm running a Debian 2.2 system with the iproute package i=
nstalled.  I
> > first tried with the included kernel, but it wouldn't work=
, so I rolled
> > my own (version 2.2.17) to see if that would let me use th=
e command.  I
> > think I've turned everything required on:
>=20
> Did the included version give the exact same error?

I believe it did.

=20
> This is very weird. Can you verify with 'uname -a' that you are run=
ning the
> kernel you think you are running?

Yes I am.

=20
> Attached is the output of 'strace /sbin/ip link list', which you ca=
n verify
> with yours to see what is happening differently.
[snip]
>=20
> execve("/sbin/ip", ["/sbin/ip", "link&=
quot;, "list"], [/* 30 vars */]) =3D 0

This line is "execve("/sbin/ip", ["/sbin/ip", &quo=
t;link", "list", "3"], [/*
20 vars */]) =3D 0" for me.  I used the exact same syntax to run it.

The bulk of the rest is similar enough until the sendto line.  I get
handle number 3 rather than 4, sizes are different, and the contents of
buffers have minor differences.  It appears to bind to the socket it
eventually chokes on just fine.

> sendto(4, "\24\0\0\0\22\0\1\3]\236\3709\0\0\0\0\21\0\0\0"=
, 20, 0, {sin_family=AF_NETLINK, {sa_family=16, sa_data=3D"\0\0\0\0\0\=
0\0\0\0\0\24\0\0\0"}, 12) =3D 20

Here I get "sendto(3,
"\24\0\0\0\22\0\1\3\205\241\3709\0\0\0\0\21\0\0\0", 20, 0,
{sin_family=AF_NETLINK, {sa_family=16, sa_data=3D"\0\0\0\0\0\0\0\0\0\0=
\2
4\0\0\0"}, 12) =3D -1 ECONNREFUSED (Connection refused)"

>From this point, it writes the error message and exits rather than
continuing on with brk(0).

-David Zoll