Skip to content

Commit

Permalink
nl-route-add: Add NLM_F_EXCL flag to route add
Browse files Browse the repository at this point in the history
Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: Thomas Graf <tgraf@suug.ch>
  • Loading branch information
roopa-prabhu authored and tgraf committed Mar 24, 2013
1 parent 23e26e9 commit 6c9be5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nl-route-add.c
Expand Up @@ -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)); nl_cli_fatal(err, "Unable to add route: %s", nl_geterror(err));


if (!quiet) { if (!quiet) {
Expand Down

0 comments on commit 6c9be5a

Please sign in to comment.