History

net: fib_rules: Add port mask attributes

Add attributes that allow matching on source and destination ports with a mask. Matching on the source port with a mask is needed in deployments where users encode path information into certain bits of the UDP source port. Temporarily set the type of the attributes to 'NLA_REJECT' while support is being added.

Ido Schimmel committed 1 year ago

Commit 39f970a1 parent dfc4b672 files · +4 −0Browse files

Showing the changes to include/uapi (1 of 2 files). Show all

Unified · Split

include/uapi/linux/fib_rules.h+2−0
@@ -70,6 +70,8 @@ enum { · 69 unmodified lines
7070 FRA_DSCP, /* dscp */
7171 FRA_FLOWLABEL, /* flowlabel */
7272 FRA_FLOWLABEL_MASK, /* flowlabel mask */
73+ FRA_SPORT_MASK, /* sport mask */
74+ FRA_DPORT_MASK, /* dport mask */
7375 __FRA_MAX
7476 };
7577