Re: iproute2: no error message when link up command fails.

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Andreas Henriksson <andreas@...>
Cc: Stephen Hemminger <shemminger@...>, Johannes Berg <johannes@...>, <489340@...>, <netdev@...>
Date: Thursday, July 17, 2008 - 6:31 am

On Thu, 2008-17-07 at 02:31 +0200, Andreas Henriksson wrote:


Thats just how it rolls.


The receiver(kernel in this case, but it could be some other user space
user) returning a zero means success. Essentially zero is an (Positive)
ACK.
The receiver returning a non-zero implies a failure. Essentially a
N(egative) ACK. 

In the case of a NACK, the kernel must return you the original message
header you sent (similar to the way some icmp messages behave).
The returned error code is a standard errno - if you sent a bad config
you may get an EINVAL back. The sender combines the errno + the header
to figure out what went wrong.

Does that make sense? So the kernel fix is required (as Stephen noted).

cheers,
jamal

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
iproute2: no error message when link up command fails., Andreas Henriksson, (Wed Jul 16, 6:00 pm)
Re: iproute2: no error message when link up command fails., Stephen Hemminger, (Wed Jul 16, 6:03 pm)
Re: iproute2: no error message when link up command fails., Andreas Henriksson, (Wed Jul 16, 6:27 pm)
Re: iproute2: no error message when link up command fails., Stephen Hemminger, (Wed Jul 16, 6:26 pm)
Re: iproute2: no error message when link up command fails., Stephen Hemminger, (Wed Jul 16, 6:53 pm)
Re: iproute2: no error message when link up command fails., Andreas Henriksson, (Wed Jul 16, 8:31 pm)
Re: iproute2: no error message when link up command fails., jamal, (Thu Jul 17, 6:31 am)
Re: iproute2: no error message when link up command fails., Patrick McHardy, (Thu Jul 17, 5:26 am)
Re: iproute2: no error message when link up command fails., Jarek Poplawski, (Thu Jul 17, 5:59 am)