]> git.proxmox.com Git - mirror_iproute2.git/commit - tc/f_u32.c
tc: fix ipv6 filter selector attribute for some prefix lengths
authorYulia Kartseva <hex@fb.com>
Sun, 1 Oct 2017 03:18:40 +0000 (20:18 -0700)
committerStephen Hemminger <stephen@networkplumber.org>
Sun, 1 Oct 2017 20:41:29 +0000 (13:41 -0700)
commit73451259daaa84185bd151461252590ba67cdee0
tree6b080ff6efe2f66c8a4f5cf95dac92491535f2b8
parente4139268ba9608fff5915a9852c72f7ef69690a3
tc: fix ipv6 filter selector attribute for some prefix lengths

Wrong TCA_U32_SEL attribute packing if prefixLen AND 0x1f equals 0x1f.
These are  /31, /63, /95 and /127 prefix lengths.

Example:
ip6 dst face:b00f::/31
filter parent b: protocol ipv6 pref 2307 u32
filter parent b: protocol ipv6 pref 2307 u32 fh 800: ht divisor 1
filter parent b: protocol ipv6 pref 2307 u32 fh 800::800 order 2048
key ht 800 bkt 0
  match faceb00f/ffffffff at 24

v2: previous patch was made with a wrong repo

Signed-off-by: Yulia Kartseva <hex@fb.com>
tc/f_u32.c