diff options
author | roopa <roopa@cumulusnetworks.com> | 2013-03-24 00:42:59 (GMT) |
---|---|---|
committer | Thomas Graf <tgraf@suug.ch> | 2013-03-24 09:58:18 (GMT) |
commit | 6c9be5a31681ddf9a669ecf643092928ab0f2138 (patch) | |
tree | e23c7e2a53379334417b61eb4f3ec1e74d111a52 | |
parent | 23e26e9e054f921a0c91379c628abb8126c42195 (diff) | |
download | libnl-6c9be5a31681ddf9a669ecf643092928ab0f2138.zip libnl-6c9be5a31681ddf9a669ecf643092928ab0f2138.tar.gz libnl-6c9be5a31681ddf9a669ecf643092928ab0f2138.tar.bz2 |
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>
-rw-r--r-- | src/nl-route-add.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nl-route-add.c b/src/nl-route-add.c index 2f187df..d4aa767 100644 --- a/src/nl-route-add.c +++ b/src/nl-route-add.c @@ -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) { |