[PATCH nft] fix printing of "tcp flags syn" and "tcp flags == syn" expressions

2018-05-25 Thread Sabrina Dubroca
Commit 6979625686ec ("relational: Eliminate meta OPs") introduced some bugs when printing bitmask types. First, during the post-processing phase of delinearization, the expression for "tcp flags syn" (PAYLOAD & flag != 0) gets converted to PAYLOAD == flag, which is not equivalent. This should be P

Re: [PATCH nft] fix printing of "tcp flags syn" and "tcp flags == syn" expressions

2018-05-25 Thread Florian Westphal
Sabrina Dubroca wrote: > Commit 6979625686ec ("relational: Eliminate meta OPs") introduced some > bugs when printing bitmask types. > > First, during the post-processing phase of delinearization, the > expression for "tcp flags syn" (PAYLOAD & flag != 0) gets converted to > PAYLOAD == flag, which