All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Zoll dzoll@nyscul.org
To: lartc@vger.kernel.org
Subject: [LARTC] Getting "ip" command to work
Date: Thu, 26 Oct 2000 21:49:50 +0000	[thread overview]
Message-ID: <marc-lartc-98373938216854@msgid-missing> (raw)
In-Reply-To: <marc-lartc-98373938216852@msgid-missing>

<PRE>bert hubert wrote:
&gt;<i> 
</I>&gt;<i> On Thu, Oct 26, 2000 at 05:03:01PM -0400, David Zoll wrote:
</I>&gt;<i> 
</I>&gt;<i> &gt; I'm running a Debian 2.2 system with the iproute package installed.  I
</I>&gt;<i> &gt; first tried with the included kernel, but it wouldn't work, so I rolled
</I>&gt;<i> &gt; my own (version 2.2.17) to see if that would let me use the command.  I
</I>&gt;<i> &gt; think I've turned everything required on:
</I>&gt;<i> 
</I>&gt;<i> Did the included version give the exact same error?
</I>
I believe it did.

 
&gt;<i> This is very weird. Can you verify with 'uname -a' that you are running the
</I>&gt;<i> kernel you think you are running?
</I>
Yes I am.

 
&gt;<i> Attached is the output of 'strace /sbin/ip link list', which you can verify
</I>&gt;<i> with yours to see what is happening differently.
</I>[snip]
&gt;<i> 
</I>&gt;<i> execve(&quot;/sbin/ip&quot;, [&quot;/sbin/ip&quot;, &quot;link&quot;, &quot;list&quot;], [/* 30 vars */]) = 0
</I>
This line is &quot;execve(&quot;/sbin/ip&quot;, [&quot;/sbin/ip&quot;, &quot;link&quot;, &quot;list&quot;, &quot;3&quot;], [/*
20 vars */]) = 0&quot; 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.

&gt;<i> sendto(4, &quot;\24\0\0\0\22\0\1\3]\236\3709\0\0\0\0\21\0\0\0&quot;, 20, 0, {sin_family¯_NETLINK, {sa_family\x16, sa_data=&quot;\0\0\0\0\0\0\0\0\0\0\24\0\0\0&quot;}, 12) = 20
</I>
Here I get &quot;sendto(3,
&quot;\24\0\0\0\22\0\1\3\205\241\3709\0\0\0\0\21\0\0\0&quot;, 20, 0,
{sin_family¯_NETLINK, {sa_family\x16, sa_data=&quot;\0\0\0\0\0\0\0\0\0\0\2
4\0\0\0&quot;}, 12) = -1 ECONNREFUSED (Connection refused)&quot;

&gt;<i>From this point, it writes the error message and exits rather than
</I>continuing on with brk(0).

-David Zoll


</PRE>

  reply	other threads:[~2000-10-26 21:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-10-26 21:03 [LARTC] Getting "ip" command to work David
2000-10-26 21:49 ` David [this message]
2000-10-26 22:02 ` bert
2000-10-26 22:50 ` David
2000-10-26 22:59 ` bert

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=marc-lartc-98373938216854@msgid-missing \
    --to=lartc@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.