[PATCH] nl-route-add: Add NLM_F_EXCL flag to route add

roopa at cumulusnetworks.com roopa at cumulusnetworks.com
Sat Mar 23 20:42:59 EDT 2013


From: roopa <roopa at cumulusnetworks.com>

Signed-off-by: Roopa Prabhu <roopa at cumulusnetworks.com>
---
 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) {
-- 
1.7.2.5




More information about the libnl mailing list