static int ip_vs_genl_parse_service(struct netns_ipvs *ipvs,
                                    struct ip_vs_service_user_kern *usvc,
-                                   struct nlattr *nla, int full_entry,
+                                   struct nlattr *nla, bool full_entry,
                                    struct ip_vs_service **ret_svc)
 {
        struct nlattr *attrs[IPVS_SVC_ATTR_MAX + 1];
        struct ip_vs_service *svc;
        int ret;
 
-       ret = ip_vs_genl_parse_service(ipvs, &usvc, nla, 0, &svc);
+       ret = ip_vs_genl_parse_service(ipvs, &usvc, nla, false, &svc);
        return ret ? ERR_PTR(ret) : svc;
 }
 
 }
 
 static int ip_vs_genl_parse_dest(struct ip_vs_dest_user_kern *udest,
-                                struct nlattr *nla, int full_entry)
+                                struct nlattr *nla, bool full_entry)
 {
        struct nlattr *attrs[IPVS_DEST_ATTR_MAX + 1];
        struct nlattr *nla_addr, *nla_port;
 
 static int ip_vs_genl_set_cmd(struct sk_buff *skb, struct genl_info *info)
 {
+       bool need_full_svc = false, need_full_dest = false;
        struct ip_vs_service *svc = NULL;
        struct ip_vs_service_user_kern usvc;
        struct ip_vs_dest_user_kern udest;
        int ret = 0, cmd;
-       int need_full_svc = 0, need_full_dest = 0;
        struct net *net = sock_net(skb->sk);
        struct netns_ipvs *ipvs = net_ipvs(net);
 
         * received a valid one. We need a full service specification when
         * adding / editing a service. Only identifying members otherwise. */
        if (cmd == IPVS_CMD_NEW_SERVICE || cmd == IPVS_CMD_SET_SERVICE)
-               need_full_svc = 1;
+               need_full_svc = true;
 
        ret = ip_vs_genl_parse_service(ipvs, &usvc,
                                       info->attrs[IPVS_CMD_ATTR_SERVICE],
        if (cmd == IPVS_CMD_NEW_DEST || cmd == IPVS_CMD_SET_DEST ||
            cmd == IPVS_CMD_DEL_DEST) {
                if (cmd != IPVS_CMD_DEL_DEST)
-                       need_full_dest = 1;
+                       need_full_dest = true;
 
                ret = ip_vs_genl_parse_dest(&udest,
                                            info->attrs[IPVS_CMD_ATTR_DEST],
 
 {
        struct tcphdr *tcph;
        unsigned int tcphoff = iph->len;
+       bool payload_csum = false;
        int oldlen;
-       int payload_csum = 0;
 
 #ifdef CONFIG_IP_VS_IPV6
        if (cp->af == AF_INET6 && iph->fragoffs)
                if (ret == 1)
                        oldlen = skb->len - tcphoff;
                else
-                       payload_csum = 1;
+                       payload_csum = true;
        }
 
        tcph = (void *)skb_network_header(skb) + tcphoff;
 {
        struct tcphdr *tcph;
        unsigned int tcphoff = iph->len;
+       bool payload_csum = false;
        int oldlen;
-       int payload_csum = 0;
 
 #ifdef CONFIG_IP_VS_IPV6
        if (cp->af == AF_INET6 && iph->fragoffs)
                if (ret == 1)
                        oldlen = skb->len - tcphoff;
                else
-                       payload_csum = 1;
+                       payload_csum = true;
        }
 
        tcph = (void *)skb_network_header(skb) + tcphoff;
 
 {
        struct udphdr *udph;
        unsigned int udphoff = iph->len;
+       bool payload_csum = false;
        int oldlen;
-       int payload_csum = 0;
 
 #ifdef CONFIG_IP_VS_IPV6
        if (cp->af == AF_INET6 && iph->fragoffs)
                if (ret == 1)
                        oldlen = skb->len - udphoff;
                else
-                       payload_csum = 1;
+                       payload_csum = true;
        }
 
        udph = (void *)skb_network_header(skb) + udphoff;
 {
        struct udphdr *udph;
        unsigned int udphoff = iph->len;
+       bool payload_csum = false;
        int oldlen;
-       int payload_csum = 0;
 
 #ifdef CONFIG_IP_VS_IPV6
        if (cp->af == AF_INET6 && iph->fragoffs)
                if (ret == 1)
                        oldlen = skb->len - udphoff;
                else
-                       payload_csum = 1;
+                       payload_csum = true;
        }
 
        udph = (void *)skb_network_header(skb) + udphoff;