Home | History | Annotate | Download | only in extensions

Lines Matching refs:info

49 	struct xt_nflog_info *info = (struct xt_nflog_info *)t->data;
51 info->threshold = XT_NFLOG_DEFAULT_THRESHOLD;
68 struct xt_nflog_info *info = cb->data;
75 info->flags |= XT_NFLOG_F_COPY_LEN;
78 static void nflog_print(const struct xt_nflog_info *info, char *prefix)
80 if (info->prefix[0] != '\0') {
82 xtables_save_string(info->prefix);
84 if (info->group)
85 printf(" %snflog-group %u", prefix, info->group);
86 if (info->flags & XT_NFLOG_F_COPY_LEN)
87 printf(" %snflog-size %u", prefix, info->len);
88 else if (info->len)
89 printf(" %snflog-range %u", prefix, info->len);
90 if (info->threshold != XT_NFLOG_DEFAULT_THRESHOLD)
91 printf(" %snflog-threshold %u", prefix, info->threshold);
97 const struct xt_nflog_info *info = (struct xt_nflog_info *)target->data;
99 nflog_print(info, "");
104 const struct xt_nflog_info *info = (struct xt_nflog_info *)target->data;
106 nflog_print(info, "--");
109 static void nflog_print_xlate(const struct xt_nflog_info *info,
113 if (info->prefix[0] != '\0') {
115 xt_xlate_add(xl, "prefix \\\"%s\\\" ", info->prefix);
117 xt_xlate_add(xl, "prefix \"%s\" ", info->prefix);
120 if (info->flags & XT_NFLOG_F_COPY_LEN)
121 xt_xlate_add(xl, "snaplen %u ", info->len);
122 if (info->threshold != XT_NFLOG_DEFAULT_THRESHOLD)
123 xt_xlate_add(xl, "queue-threshold %u ", info->threshold);
124 xt_xlate_add(xl, "group %u ", info->group);
130 const struct xt_nflog_info *info =
133 nflog_print_xlate(info, xl, params->escape_quotes);