]> git.proxmox.com Git - mirror_iproute2.git/commitdiff
ip: officially support flag mngtmpaddr also for "ip addr del"
authorHeiner Kallweit <heiner.kallweit@web.de>
Thu, 10 Apr 2014 19:16:45 +0000 (21:16 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Sat, 12 Apr 2014 00:47:04 +0000 (17:47 -0700)
Kernel is being extended to support flag IFA_F_MANAGETEMPADDR also for
deletion of addresses. This will allow a userspace application to indicate
that for a global address the kernel should delete all related temporary
addresses as well.

"ip addr del" internally calls ipaddr_modify which silently accepts
any flag provided on the command line already, independent of the
actual command.
Therefore only the usage documentation needs to be extended.

Signed-off-by: Heiner Kallweit <heiner.kallweit@web.de>
ip/ipaddress.c

index e3be5b228e2ea83f0d2bd98f6f5e7fac82ada6ca..81691501887dc53a3e4df0354efe12583bded40f 100644 (file)
@@ -69,7 +69,7 @@ static void usage(void)
        }
        fprintf(stderr, "Usage: ip addr {add|change|replace} IFADDR dev STRING [ LIFETIME ]\n");
        fprintf(stderr, "                                                      [ CONFFLAG-LIST ]\n");
-       fprintf(stderr, "       ip addr del IFADDR dev STRING\n");
+       fprintf(stderr, "       ip addr del IFADDR dev STRING [mngtmpaddr]\n");
        fprintf(stderr, "       ip addr {show|save|flush} [ dev STRING ] [ scope SCOPE-ID ]\n");
        fprintf(stderr, "                            [ to PREFIX ] [ FLAG-LIST ] [ label PATTERN ] [up]\n");
        fprintf(stderr, "       ip addr {showdump|restore}\n");