dect
/
libnl
Archived
13
0
Fork 0

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>
This commit is contained in:
roopa 2013-03-23 17:42:59 -07:00 committed by Thomas Graf
parent 23e26e9e05
commit 6c9be5a316
1 changed files with 1 additions and 1 deletions

View 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) {