]> git.proxmox.com Git - mirror_iproute2.git/commit
Allow 'ip addr flush' to loop more than 10 times
authorBen Greear <greearb@candelatech.com>
Wed, 1 Dec 2010 19:13:51 +0000 (11:13 -0800)
committerStephen Hemminger <stephen.hemminger@vyatta.com>
Wed, 1 Dec 2010 19:13:51 +0000 (11:13 -0800)
commit64c7956061500611061910067d76512afcd2ddb4
treedd2e69e791d03f9207ef03b07269971c9f86a697
parent3f0a7b4c4f0a6c5462ad55b7fa4445c2d485f435
Allow 'ip addr flush' to loop more than 10 times

The default remains at 10 for backwards compatibility.

For instance:
 # ip addr flush dev eth2
 *** Flush remains incomplete after 10 rounds. ***
 # ip -l 20 addr flush dev eth2
 *** Flush remains incomplete after 20 rounds. ***
 # ip -loops 0 addr flush dev eth2
 #

This is useful for getting rid of large numbers of IP
addresses in scripts.

Signed-off-by: Ben Greear <greearb@candelatech.com>
include/utils.h
ip/ip.c
ip/ipaddress.c
man/man8/ip.8