iprule: coding style line up
[project/netifd.git] / system-linux.c
index 0ac4ae6..06c6abd 100644 (file)
@@ -2171,6 +2171,9 @@ static int system_iprule(struct iprule *rule, int cmd)
                        nla_put_u32(msg, FRA_TABLE, rule->lookup);
        }
 
+       if (rule->flags & IPRULE_SUP_PREFIXLEN)
+               nla_put_u32(msg, FRA_SUPPRESS_PREFIXLEN, rule->sup_prefixlen);
+
        if (rule->flags & IPRULE_GOTO)
                nla_put_u32(msg, FRA_GOTO, rule->gotoid);
 
@@ -2737,7 +2740,7 @@ static int system_add_sit_tunnel(const char *name, const unsigned int link, stru
                        p6.prefixlen = mask;
                }
 
-               if ((cur = tb[SIXRD_DATA_RELAY_PREFIX])) {
+               if ((cur = tb_data[SIXRD_DATA_RELAY_PREFIX])) {
                        if (!parse_ip_and_netmask(AF_INET, blobmsg_data(cur),
                                                &p6.relay_prefix, &mask) || mask > 32) {
                                ret = -EINVAL;