]> git.ipfire.org Git - thirdparty/libnl.git/commitdiff
nl-route-add: Add NLM_F_EXCL flag to route add
authorroopa <roopa@cumulusnetworks.com>
Sun, 24 Mar 2013 00:42:59 +0000 (17:42 -0700)
committerThomas Graf <tgraf@suug.ch>
Sun, 24 Mar 2013 09:58:18 +0000 (10:58 +0100)
Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: Thomas Graf <tgraf@suug.ch>
src/nl-route-add.c

index 2f187df3ea6cc5070c433cc431543ffe810205af..d4aa767e7a3117aa8741851de590a8a45aebae60 100644 (file)
@@ -120,7 +120,7 @@ int main(int argc, char *argv[])
                }
        }
 
-       if ((err = rtnl_route_add(sock, route, 0)) < 0)
+       if ((err = rtnl_route_add(sock, route, NLM_F_EXCL)) < 0)
                nl_cli_fatal(err, "Unable to add route: %s", nl_geterror(err));
 
        if (!quiet) {