diff options
author | Patrick McHardy <kaber@trash.net> | 2014-02-16 20:35:37 +0000 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2014-02-17 17:17:18 +0000 |
commit | 5a140c9cf95724f971ec9cb40217bea8fc4d089f (patch) | |
tree | 19733bb86ac658978291abeb5139a8d1de156b90 /files | |
parent | 6bad82aba5d304c7a2dd1b19fe57464dca327f4a (diff) |
binop: take care of operator precedence when printing binop arguments
When the argument of a binop is a binop itself, we may need to add parens
if the precedence of the argument is lower then the binop.
Before:
tcp flags & syn | ack == syn | ack
tcp flags & syn | ack != syn | ack
After:
tcp flags & (syn | ack) == syn | ack
tcp flags & (syn | ack) != syn | ack
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'files')
0 files changed, 0 insertions, 0 deletions