]> git.proxmox.com Git - mirror_iproute2.git/commit
ssfilter: Fix for inverted last expression
authorPhil Sutter <phil@nwl.cc>
Thu, 29 Nov 2018 12:20:37 +0000 (13:20 +0100)
committerStephen Hemminger <stephen@networkplumber.org>
Mon, 3 Dec 2018 22:33:19 +0000 (14:33 -0800)
commit6495bca92e08000b1a5ad95f9db4ef62b746bebf
treeca03a0a5fc752f56e35f69a97f6966c33405a074
parent5eead6270a19f00464052d4084f32182cfe027ff
ssfilter: Fix for inverted last expression

When fixing for shift/reduce conflicts, possibility to invert the last
expression by prefixing with '!' or 'not' was accidentally removed.

Fix this by allowing for expr to be an inverted expr so that any
reference to it in exprlist accepts the inverted prefix.

Reported-by: Eric Dumazet <edumazet@google.com>
Fixes: b2038cc0b2403 ("ssfilter: Eliminate shift/reduce conflicts")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
misc/ssfilter.y