Home | History | Annotate | Download | only in extensions

Lines Matching refs:info

79 parse_string(const char *s, struct xt_string_info *info)
83 strncpy(info->pattern, s, XT_STRING_MAX_PATTERN_SIZE);
84 info->patlen = strnlen(s, XT_STRING_MAX_PATTERN_SIZE);
91 parse_hex_string(const char *s, struct xt_string_info *info)
130 info->pattern[sindex] = s[i+1];
152 info->pattern[sindex] = (char) schar;
158 info->pattern[sindex] = s[i];
165 info->patlen = sindex;
259 const struct xt_string_info *info =
262 int invert = (revision == 0 ? info->u.v0.invert :
263 info->u.v1.flags & XT_STRING_FLAG_INVERT);
265 if (is_hex_string(info->pattern, info->patlen)) {
267 print_hex_string(info->pattern, info->patlen);
270 print_string(info->pattern, info->patlen);
272 printf(" ALGO name %s", info->algo);
273 if (info->from_offset != 0)
274 printf(" FROM %u", info->from_offset);
275 if (info->to_offset != 0)
276 printf(" TO %u", info->to_offset);
277 if (revision > 0 && info->u.v1.flags & XT_STRING_FLAG_IGNORECASE)
283 const struct xt_string_info *info =
286 int invert = (revision == 0 ? info->u.v0.invert :
287 info->u.v1.flags & XT_STRING_FLAG_INVERT);
289 if (is_hex_string(info->pattern, info->patlen)) {
291 print_hex_string(info->pattern, info->patlen);
294 print_string(info->pattern, info->patlen);
296 printf(" --algo %s", info->algo);
297 if (info->from_offset != 0)
298 printf(" --from %u", info->from_offset);
299 if (info->to_offset != 0)
300 printf(" --to %u", info->to_offset);
301 if (revision > 0 && info->u.v1.flags & XT_STRING_FLAG_IGNORECASE)