diff options
author | Roopa Prabhu | 2018-03-02 02:55:37 +0100 |
---|---|---|
committer | David S. Miller | 2018-03-02 03:14:18 +0100 |
commit | 5f6f845b608a3fa13e5da0584eea5803710cf708 (patch) | |
tree | 951891362d74fae9fe69677c087d72146a4a1375 /include/net/fib_rules.h | |
parent | ipv6: allow userspace to add IFA_F_OPTIMISTIC addresses (diff) | |
download | kernel-qcow2-linux-5f6f845b608a3fa13e5da0584eea5803710cf708.tar.gz kernel-qcow2-linux-5f6f845b608a3fa13e5da0584eea5803710cf708.tar.xz kernel-qcow2-linux-5f6f845b608a3fa13e5da0584eea5803710cf708.zip |
fib_rules: FRA_GENERIC_POLICY updates for ip proto, sport and dport attrs
Fixes: bfff4862653b ("net: fib_rules: support for match on ip_proto, sport and dport")
Reported-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Roopa Prabhu <roopa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/fib_rules.h')
-rw-r--r-- | include/net/fib_rules.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/net/fib_rules.h b/include/net/fib_rules.h index 6dd0a00653ae..1c9e17c11953 100644 --- a/include/net/fib_rules.h +++ b/include/net/fib_rules.h @@ -112,7 +112,11 @@ struct fib_rule_notifier_info { [FRA_GOTO] = { .type = NLA_U32 }, \ [FRA_L3MDEV] = { .type = NLA_U8 }, \ [FRA_UID_RANGE] = { .len = sizeof(struct fib_rule_uid_range) }, \ - [FRA_PROTOCOL] = { .type = NLA_U8 } + [FRA_PROTOCOL] = { .type = NLA_U8 }, \ + [FRA_IP_PROTO] = { .type = NLA_U8 }, \ + [FRA_SPORT_RANGE] = { .len = sizeof(struct fib_rule_port_range) }, \ + [FRA_DPORT_RANGE] = { .len = sizeof(struct fib_rule_port_range) } + static inline void fib_rule_get(struct fib_rule *rule) { |