Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Roopa Prabhu and committed by
David S. Miller
5f6f845b f1c02cfb

+5 -1
+5 -1
include/net/fib_rules.h
··· 112 112 [FRA_GOTO] = { .type = NLA_U32 }, \ 113 113 [FRA_L3MDEV] = { .type = NLA_U8 }, \ 114 114 [FRA_UID_RANGE] = { .len = sizeof(struct fib_rule_uid_range) }, \ 115 - [FRA_PROTOCOL] = { .type = NLA_U8 } 115 + [FRA_PROTOCOL] = { .type = NLA_U8 }, \ 116 + [FRA_IP_PROTO] = { .type = NLA_U8 }, \ 117 + [FRA_SPORT_RANGE] = { .len = sizeof(struct fib_rule_port_range) }, \ 118 + [FRA_DPORT_RANGE] = { .len = sizeof(struct fib_rule_port_range) } 119 + 116 120 117 121 static inline void fib_rule_get(struct fib_rule *rule) 118 122 {