Lines Matching refs:cb
94 static void policy_parse(struct xt_option_call *cb)
96 struct xt_policy_info *info = cb->data;
99 xtables_option_parse(cb);
100 switch (cb->entry->id) {
102 info->flags |= parse_direction(cb->arg);
105 info->flags |= parse_policy(cb->arg);
115 e->invert.reqid = cb->invert;
116 e->reqid = cb->val.u32;
123 e->invert.spi = cb->invert;
124 e->spi = cb->val.u32;
132 e->invert.saddr = cb->invert;
133 memcpy(&e->saddr, &cb->val.haddr, sizeof(cb->val.haddr));
134 memcpy(&e->smask, &cb->val.hmask, sizeof(cb->val.hmask));
141 e->invert.daddr = cb->invert;
142 memcpy(&e->daddr, &cb->val.haddr, sizeof(cb->val.haddr));
143 memcpy(&e->dmask, &cb->val.hmask, sizeof(cb->val.hmask));
149 e->proto = cb->val.protocol;
155 e->invert.proto = cb->invert;
162 e->invert.mode = cb->invert;
163 e->mode = parse_mode(cb->arg);
173 static void policy_check(struct xt_fcheck_call *cb)
175 struct xt_policy_info *info = cb->data;