buffer = strdup(mssvaluestring);
if ((cp = strchr(buffer, ':')) == NULL)
- mss_min = mss_max = parse_tcp_mssvalue(buffer);
+ *mss_min = *mss_max = parse_tcp_mssvalue(buffer);
else {
*cp = '\0';
cp++;
- mss_min = buffer[0] ? parse_tcp_mssvalue(buffer) : 0;
- mss_max = cp[0] ? parse_tcp_mssvalue(cp) : 0xFFFF;
+ *mss_min = buffer[0] ? parse_tcp_mssvalue(buffer) : 0;
+ *mss_max = cp[0] ? parse_tcp_mssvalue(cp) : 0xFFFF;
}
free(buffer);
}
(const struct ipt_tcpmss_match_info *)match->data;
printf("tcpmss match ");
- print_tcpmss(mss_info->mss_min, mss_info->mss_max,
- mss_info->invert, numeric);
+ print_tcpmss(mssinfo->mss_min, mssinfo->mss_max,
+ mssinfo->invert, numeric);
}
/* Saves the union ipt_matchinfo in parsable form to stdout. */
(const struct ipt_tcpmss_match_info *)match->data;
printf("--mss ");
- print_tcpmss(mss_info->mss_min, mss_info->mss_max,
- mss_info->invert, 0);
+ print_tcpmss(mssinfo->mss_min, mssinfo->mss_max,
+ mssinfo->invert, 0);
}
struct iptables_match tcpmss