diff options
author | Lorenzo Colitti <lorenzo@google.com> | 2016-11-03 20:23:42 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-11-04 21:45:23 +0300 |
commit | 622ec2c9d52405973c9f1ca5116eb1c393adfc7d (patch) | |
tree | a3de4c86ceba4dca3217e0207adc76daa9d8eaf9 /include/uapi/linux/fib_rules.h | |
parent | 86741ec25462e4c8cdce6df2f41ead05568c7d5e (diff) | |
download | linux-622ec2c9d52405973c9f1ca5116eb1c393adfc7d.tar.xz |
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.h | 6 |
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 }; |