summaryrefslogtreecommitdiffstats
path: root/src/read_config_lex.l
diff options
context:
space:
mode:
authorJarno Rajahalme <jrajahalme@nicira.com>2015-02-02 12:35:12 -0800
committerFlorian Westphal <fw@strlen.de>2015-02-13 15:11:00 +0100
commita3cd4dfb85b3ee9194ea82eb5185f9df2cb4ecf8 (patch)
tree3ec95e459b8b961e920099be94c739d3072cf4ed /src/read_config_lex.l
parent1c68250df4ca260392f532bf968fa28c40a7f974 (diff)
conntrack: fix setting labels in updates
When updating labels we always have to send the same sized bitmask as we received, as the bits we do omit will otherwise cleared as "padding". Mask has to have the same size as the labels, otherwise it will not be encoded by libnetfilter_conntrack, as different sizes are not accepted by the kernel either. Finally, kernel only retains old bit values that we send as zeroes in BOTH the label and the mask, due to XOR used in bit manipulation. This patch fixes all these issues and allows updates to set new labels without accidentally clearing old ones. Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com> Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'src/read_config_lex.l')
0 files changed, 0 insertions, 0 deletions