Re: [LARTC] Getting "ip" command to work

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



bert hubert wrote:
> 
> On Thu, Oct 26, 2000 at 05:03:01PM -0400, David Zoll wrote:
> 
> > I'm running a Debian 2.2 system with the iproute package installed.  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 the command.  I
> > think I've turned everything required on:
> 
> Did the included version give the exact same error?

I believe it did.

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

Yes I am.

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

This line is "execve("/sbin/ip", ["/sbin/ip", "link", "list", "3"], [/*
20 vars */]) = 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="\0\0\0\0\0\0\0\0\0\0\24\0\0\0"}, 12) = 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="\0\0\0\0\0\0\0\0\0\0\2
4\0\0\0"}, 12) = -1 ECONNREFUSED (Connection refused)"


[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux