From: Mateusz Bajorski
Date: Fri, 20 May 2016 17:58:23 +0200
Please format your Subject line properly, it should be of the form:
[PATCH] $SUBSYSTEM: Description.
In this case "fib_fules: " would be an appropriate subsystem
specification.
> diff --git a/net/core/fib_rules.c b/net/core/
When adding rule with NLM_F_EXCL flag then check if the same rule exist.
If yes then exit with -EEXIST.
This is already implemented in iproute2:
if (cmd == RTM_NEWRULE) {
req.n.nlmsg_flags |= NLM_F_CREATE|NLM_F_EXCL;
req.r.rtm_type = RTN_UNICAST;
}