On 2/23/18 12:32 PM, Donald Sharp wrote:
> @@ -391,6 +404,10 @@ static int flush_rule(const struct sockaddr_nl *who,
> struct nlmsghdr *n,
>
> parse_rtattr(tb, FRA_MAX, RTM_RTA(frh), len);
>
> + if (tb[FRA_PROTOCOL] &&
> +
> (filter.protocol^rta_getattr_u8(tb[FRA_PROTOCOL]))
Modify 'ip rule' command to notice when the kernel passes
to us the originating protocol.
Add code to allow the `ip rule flush protocol XXX`
command to be accepted and properly handled.
Modify the documentation to reflect these code changes.
Signed-off-by: Donald Sharp
---
ip/iprule.c|