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:
parent
23e26e9e05
commit
6c9be5a316
|
@ -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) {
|
||||||
|
|
Reference in New Issue