Home | History | Annotate | Download | only in extensions

Lines Matching refs:cb

31 static void connbytes_parse(struct xt_option_call *cb)
33 struct xt_connbytes_info *sinfo = cb->data;
36 xtables_option_parse(cb);
37 switch (cb->entry->id) {
39 sinfo->count.from = cb->val.u64_range[0];
40 sinfo->count.to = cb->val.u64_range[0];
41 if (cb->nvals == 2)
42 sinfo->count.to = cb->val.u64_range[1];
43 if (cb->invert) {
50 if (strcmp(cb->arg, "original") == 0)
52 else if (strcmp(cb->arg, "reply") == 0)
54 else if (strcmp(cb->arg, "both") == 0)
58 "Unknown --connbytes-dir `%s'", cb->arg);
61 if (strcmp(cb->arg, "packets") == 0)
63 else if (strcmp(cb->arg, "bytes") == 0)
65 else if (strcmp(cb->arg, "avgpkt") == 0)
69 "Unknown --connbytes-mode `%s'", cb->arg);