diff options
author | Jarno Rajahalme <jrajahalme@nicira.com> | 2015-02-02 12:35:12 -0800 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2015-02-13 15:11:00 +0100 |
commit | a3cd4dfb85b3ee9194ea82eb5185f9df2cb4ecf8 (patch) | |
tree | 3ec95e459b8b961e920099be94c739d3072cf4ed /m4 | |
parent | 1c68250df4ca260392f532bf968fa28c40a7f974 (diff) | |
download | conntrack-tools-a3cd4dfb85b3ee9194ea82eb5185f9df2cb4ecf8.tar.gz conntrack-tools-a3cd4dfb85b3ee9194ea82eb5185f9df2cb4ecf8.zip |
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 'm4')
0 files changed, 0 insertions, 0 deletions