Lines Matching refs:cb
66 static void ipvs_mt_parse(struct xt_option_call *cb)
68 struct xt_ipvs_mtinfo *data = cb->data;
70 xtables_option_parse(cb);
71 switch (cb->entry->id) {
73 data->l4proto = cb->val.protocol;
76 memcpy(&data->vaddr, &cb->val.haddr, sizeof(cb->val.haddr));
77 memcpy(&data->vmask, &cb->val.hmask, sizeof(cb->val.hmask));
80 if (strcasecmp(cb->arg, "ORIGINAL") == 0) {
83 } else if (strcasecmp(cb->arg, "REPLY") == 0) {
88 "ipvs", "--vdir", cb->arg);
92 if (strcasecmp(cb->arg, "GATE") == 0)
94 else if (strcasecmp(cb->arg, "IPIP") == 0)
96 else if (strcasecmp(cb->arg, "MASQ") == 0)
100 "ipvs", "--vmethod", cb->arg);
103 data->bitmask |= 1 << cb->entry->id;
104 if (cb->invert)
105 data->invert |= 1 << cb->entry->id;
108 static void ipvs_mt_check(struct xt_fcheck_call *cb)
110 struct xt_ipvs_mtinfo *info = cb->data;
112 if (cb->xflags == 0)