]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
Improve readability of bitwise operation
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Mon, 5 Sep 2011 20:25:39 +0000 (22:25 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 28 Sep 2011 18:52:48 +0000 (20:52 +0200)
CLUSTERIP: improve readability of bitwise operation

Signed-off-by: Thomas Jarosch <thomas.jarosch@intra2net.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
extensions/libipt_CLUSTERIP.c

index 301e0e1d0b32177b3b026b0f0586aec82328baf1..f4b638b2045adbd37ec8a51caa00985de9fcafbf 100644 (file)
@@ -144,7 +144,7 @@ static void CLUSTERIP_print(const void *ip,
        const struct ipt_clusterip_tgt_info *cipinfo =
                (const struct ipt_clusterip_tgt_info *)target->data;
        
-       if (!cipinfo->flags & CLUSTERIP_FLAG_NEW) {
+       if (!(cipinfo->flags & CLUSTERIP_FLAG_NEW)) {
                printf(" CLUSTERIP");
                return;
        }
@@ -164,7 +164,7 @@ static void CLUSTERIP_save(const void *ip, const struct xt_entry_target *target)
 
        /* if this is not a new entry, we don't need to save target
         * parameters */
-       if (!cipinfo->flags & CLUSTERIP_FLAG_NEW)
+       if (!(cipinfo->flags & CLUSTERIP_FLAG_NEW))
                return;
 
        printf(" --new --hashmode %s --clustermac %s --total-nodes %d --local-node %d --hash-init %u",