Lines Matching refs:sinfo

33 	struct xt_connbytes_info *sinfo = cb->data;  in connbytes_parse()  local
39 sinfo->count.from = cb->val.u64_range[0]; in connbytes_parse()
40 sinfo->count.to = UINT64_MAX; in connbytes_parse()
42 sinfo->count.to = cb->val.u64_range[1]; in connbytes_parse()
44 if (sinfo->count.to < sinfo->count.from) in connbytes_parse()
46 (unsigned long long)sinfo->count.from, in connbytes_parse()
47 (unsigned long long)sinfo->count.to); in connbytes_parse()
49 i = sinfo->count.from; in connbytes_parse()
50 sinfo->count.from = sinfo->count.to; in connbytes_parse()
51 sinfo->count.to = i; in connbytes_parse()
56 sinfo->direction = XT_CONNBYTES_DIR_ORIGINAL; in connbytes_parse()
58 sinfo->direction = XT_CONNBYTES_DIR_REPLY; in connbytes_parse()
60 sinfo->direction = XT_CONNBYTES_DIR_BOTH; in connbytes_parse()
67 sinfo->what = XT_CONNBYTES_PKTS; in connbytes_parse()
69 sinfo->what = XT_CONNBYTES_BYTES; in connbytes_parse()
71 sinfo->what = XT_CONNBYTES_AVGPKT; in connbytes_parse()
79 static void print_mode(const struct xt_connbytes_info *sinfo) in print_mode() argument
81 switch (sinfo->what) { in print_mode()
97 static void print_direction(const struct xt_connbytes_info *sinfo) in print_direction() argument
99 switch (sinfo->direction) { in print_direction()
115 static void print_from_to(const struct xt_connbytes_info *sinfo, const char *prefix) in print_from_to() argument
119 if (sinfo->count.from > sinfo->count.to) { in print_from_to()
121 from = sinfo->count.to; in print_from_to()
122 to = sinfo->count.from; in print_from_to()
124 to = sinfo->count.to; in print_from_to()
125 from = sinfo->count.from; in print_from_to()
135 const struct xt_connbytes_info *sinfo = (const void *)match->data; in connbytes_print() local
137 print_from_to(sinfo, ""); in connbytes_print()
140 print_mode(sinfo); in connbytes_print()
143 print_direction(sinfo); in connbytes_print()
148 const struct xt_connbytes_info *sinfo = (const void *)match->data; in connbytes_save() local
150 print_from_to(sinfo, "--"); in connbytes_save()
153 print_mode(sinfo); in connbytes_save()
156 print_direction(sinfo); in connbytes_save()