]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
fib_rules: FRA_GENERIC_POLICY updates for ip proto, sport and dport attrs
authorRoopa Prabhu <roopa@cumulusnetworks.com>
Fri, 2 Mar 2018 01:55:37 +0000 (17:55 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 Mar 2018 02:14:18 +0000 (21:14 -0500)
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>
include/net/fib_rules.h

index 6dd0a00653aeee0dcd193b1b9ca425ad97500ce6..1c9e17c11953cd8cfa5ccc8bc1b89ddcb49f10ac 100644 (file)
@@ -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)
 {