Home | History | Annotate | Download | only in extensions

Lines Matching defs:sinfo

56 	struct ipt_connbytes_info *sinfo = (struct ipt_connbytes_info *)(*match)->data;
64 parse_range(argv[optind-1], sinfo);
66 i = sinfo->count.from;
67 sinfo->count.from = sinfo->count.to;
68 sinfo->count.to = i;
74 sinfo->direction = IPT_CONNBYTES_DIR_ORIGINAL;
76 sinfo->direction = IPT_CONNBYTES_DIR_REPLY;
78 sinfo->direction = IPT_CONNBYTES_DIR_BOTH;
87 sinfo->what = IPT_CONNBYTES_PKTS;
89 sinfo->what = IPT_CONNBYTES_BYTES;
91 sinfo->what = IPT_CONNBYTES_AVGPKT;
111 static void print_mode(struct ipt_connbytes_info *sinfo)
113 switch (sinfo->what) {
129 static void print_direction(struct ipt_connbytes_info *sinfo)
131 switch (sinfo->direction) {
153 struct ipt_connbytes_info *sinfo = (struct ipt_connbytes_info *)match->data;
155 if (sinfo->count.from > sinfo->count.to)
156 printf("connbytes ! %llu:%llu ", sinfo->count.to,
157 sinfo->count.from);
159 printf("connbytes %llu:%llu ",sinfo->count.from,
160 sinfo->count.to);
163 print_mode(sinfo);
166 print_direction(sinfo);
172 struct ipt_connbytes_info *sinfo = (struct ipt_connbytes_info *)match->data;
174 if (sinfo->count.from > sinfo->count.to)
175 printf("! --connbytes %llu:%llu ", sinfo->count.to,
176 sinfo->count.from);
178 printf("--connbytes %llu:%llu ", sinfo->count.from,
179 sinfo->count.to);
182 print_mode(sinfo);
185 print_direction(sinfo);