Home | History | Annotate | Download | only in extensions

Lines Matching refs:info

66 parse_string(const char *s, struct ipt_string_info *info)
69 strncpy(info->pattern, s, IPT_STRING_MAX_PATTERN_SIZE);
70 info->patlen = strlen(s);
77 parse_algo(const char *s, struct ipt_string_info *info)
80 strncpy(info->algo, s, IPT_STRING_MAX_ALGO_NAME_SIZE);
87 parse_hex_string(const char *s, struct ipt_string_info *info)
126 info->pattern[sindex] = s[i+1];
148 info->pattern[sindex] = (char) schar;
154 info->pattern[sindex] = s[i];
161 info->patlen = sindex;
296 const struct ipt_string_info *info =
299 if (is_hex_string(info->pattern, info->patlen)) {
300 printf("STRING match %s", (info->invert) ? "!" : "");
301 print_hex_string(info->pattern, info->patlen);
303 printf("STRING match %s", (info->invert) ? "!" : "");
304 print_string(info->pattern, info->patlen);
306 printf("ALGO name %s ", info->algo);
307 if (info->from_offset != 0)
308 printf("FROM %u ", info->from_offset);
309 if (info->to_offset != 0)
310 printf("TO %u ", info->to_offset);
318 const struct ipt_string_info *info =
321 if (is_hex_string(info->pattern, info->patlen)) {
322 printf("--hex-string %s", (info->invert) ? "! ": "");
323 print_hex_string(info->pattern, info->patlen);
325 printf("--string %s", (info->invert) ? "! ": "");
326 print_string(info->pattern, info->patlen);
328 printf("--algo %s ", info->algo);
329 if (info->from_offset != 0)
330 printf("--from %u ", info->from_offset);
331 if (info->to_offset != 0)
332 printf("--to %u ", info->to_offset);