Permalink
Browse files

nl-route-add: Add NLM_F_EXCL flag to route add

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 6c9be5a31681ddf9a669ecf643092928ab0f2138
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/nl-route-add.c
View
@@ -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) {

0 comments on commit 6c9be5a

Please sign in to comment.