]> git.proxmox.com Git - mirror_iproute2.git/commit
ip a flush: unnecessarily chatty when there's nothing to flush
authorAndreas Henriksson <andreas@fatal.se>
Fri, 29 Aug 2008 17:52:48 +0000 (19:52 +0200)
committerStephen Hemminger <stephen.hemminger@vyatta.com>
Mon, 15 Sep 2008 20:57:12 +0000 (13:57 -0700)
commitf0b34d2d98ffcd135c92dcba563d4bc47632333c
tree47156c6c4c371d786f614c7249a4e1d16be6c1a0
parent2ca4abdcb823e708b88156f947fa5b493055618a
ip a flush: unnecessarily chatty when there's nothing to flush

On tis, 2008-07-22 at 20:21 +0200, martin f krafft wrote:
> piper:~|master|% sudo ip a flush dev eth0 >/dev/null
> Nothing to flush.
>
> It should just shut up, shouldn't it? :)

The patch below makes the "Nothing to flush" only visible when show
statistics flag is given, and then only to stdout rather then stderr.

$ sudo ./ip/ip -s addr flush dev skif
Nothing to flush.
$ sudo ./ip/ip addr flush dev skif
$

(See http://bugs.debian.org/492196 )
ip/ipaddress.c
ip/ipneigh.c
ip/iproute.c