]> git.proxmox.com Git - mirror_iproute2.git/commit
Display Correct Error For Addrlabel Info
authorVarun Chandramohan <varunc@linux.vnet.ibm.com>
Mon, 2 Jun 2008 08:25:56 +0000 (13:55 +0530)
committerStephen Hemminger <stephen.hemminger@vyatta.com>
Fri, 25 Jul 2008 20:36:25 +0000 (13:36 -0700)
commit6579feeac4ccc0f087fa402486b3b2fcbcabc77f
tree9325e3922f579f2139a279c4b705a17ab8fa1379
parent01eb17a66dec4db6206fdba17b1dfed2f72f8ef3
Display Correct Error For Addrlabel Info

The command "ip addrlabel add/del" displays incorrect error message when provided with insufficient inputs. This patch fixes it in par with "ip addr add/del".

Currently:
# ./ip addrlabel add
RTNETLINK answers: Numerical result out of range

# ./ip addr add
Not enough information: "dev" argument is required.

After patch:
# ./ip addrlabel add
Not enough information: "prefix" argument is required.

Signed-off-by: Varun Chandramohan <varunc@linux.vnet.ibm.com>
Signed-off-by: Stephen Hemminger <stephen.hemminger@vyatta.com>
ip/ipaddrlabel.c