net: Allow a rule to track originating protocol

Allow a rule that is being added/deleted/modified or
dumped to contain the originating protocol's id.

The protocol is handled just like a routes originating
protocol is.  This is especially useful because there
is starting to be a plethora of different user space
programs adding rules.

Allow the vrf device to specify that the kernel is the originator
of the rule created for this device.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Donald Sharp 2018-02-20 08:55:58 -05:00 committed by David S. Miller
parent af9090c237
commit cac56209a6
4 changed files with 10 additions and 3 deletions

View file

@ -23,8 +23,8 @@ struct fib_rule_hdr {
__u8 tos;
__u8 table;
__u8 proto;
__u8 res1; /* reserved */
__u8 res2; /* reserved */
__u8 action;
__u32 flags;