summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/fib_rules.h
diff options
context:
space:
mode:
authorLorenzo Colitti2016-11-03 18:23:42 +0100
committerDavid S. Miller2016-11-04 19:45:23 +0100
commit622ec2c9d52405973c9f1ca5116eb1c393adfc7d (patch)
treea3de4c86ceba4dca3217e0207adc76daa9d8eaf9 /include/uapi/linux/fib_rules.h
parentnet: core: Add a UID field to struct sock. (diff)
downloadkernel-qcow2-linux-622ec2c9d52405973c9f1ca5116eb1c393adfc7d.tar.gz
kernel-qcow2-linux-622ec2c9d52405973c9f1ca5116eb1c393adfc7d.tar.xz
kernel-qcow2-linux-622ec2c9d52405973c9f1ca5116eb1c393adfc7d.zip
net: core: add UID to flows, rules, and routes
- Define a new FIB rule attributes, FRA_UID_RANGE, to describe a range of UIDs. - Define a RTA_UID attribute for per-UID route lookups and dumps. - Support passing these attributes to and from userspace via rtnetlink. The value INVALID_UID indicates no UID was specified. - Add a UID field to the flow structures. Signed-off-by: Lorenzo Colitti <lorenzo@google.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.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/uapi/linux/fib_rules.h b/include/uapi/linux/fib_rules.h
index 14404b3ebb89..bbf02a63a011 100644
--- a/include/uapi/linux/fib_rules.h
+++ b/include/uapi/linux/fib_rules.h
@@ -29,6 +29,11 @@ struct fib_rule_hdr {
__u32 flags;
};
+struct fib_rule_uid_range {
+ __u32 start;
+ __u32 end;
+};
+
enum {
FRA_UNSPEC,
FRA_DST, /* destination address */
@@ -51,6 +56,7 @@ enum {
FRA_OIFNAME,
FRA_PAD,
FRA_L3MDEV, /* iif or oif is l3mdev goto its table */
+ FRA_UID_RANGE, /* UID range */
__FRA_MAX
};