summaryrefslogtreecommitdiff
path: root/include/uapi/linux/fib_rules.h
diff options
context:
space:
mode:
authorRoopa Prabhu <roopa@cumulusnetworks.com>2018-03-01 06:40:16 +0300
committerDavid S. Miller <davem@davemloft.net>2018-03-01 06:44:43 +0300
commitbfff4862653bb96001ab57c1edd6d03f48e5f035 (patch)
tree463387f66425eff78e5aff19a5c3965f85c6c082 /include/uapi/linux/fib_rules.h
parent292749915743758013e290c994f41de196d47498 (diff)
downloadlinux-bfff4862653bb96001ab57c1edd6d03f48e5f035.tar.xz
net: fib_rules: support for match on ip_proto, sport and dport
uapi for ip_proto, sport and dport range match in fib rules. Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com> Acked-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux/fib_rules.h')
-rw-r--r--include/uapi/linux/fib_rules.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/uapi/linux/fib_rules.h b/include/uapi/linux/fib_rules.h
index 77d90ae38114..232df14e1287 100644
--- a/include/uapi/linux/fib_rules.h
+++ b/include/uapi/linux/fib_rules.h
@@ -35,6 +35,11 @@ struct fib_rule_uid_range {
__u32 end;
};
+struct fib_rule_port_range {
+ __u16 start;
+ __u16 end;
+};
+
enum {
FRA_UNSPEC,
FRA_DST, /* destination address */
@@ -59,6 +64,9 @@ enum {
FRA_L3MDEV, /* iif or oif is l3mdev goto its table */
FRA_UID_RANGE, /* UID range */
FRA_PROTOCOL, /* Originator of the rule */
+ FRA_IP_PROTO, /* ip proto */
+ FRA_SPORT_RANGE, /* sport */
+ FRA_DPORT_RANGE, /* dport */
__FRA_MAX
};