Lines Matching refs:cb
91 static void policy_parse(struct xt_option_call *cb)
93 struct xt_policy_info *info = cb->data;
96 xtables_option_parse(cb);
97 switch (cb->entry->id) {
99 info->flags |= parse_direction(cb->arg);
102 info->flags |= parse_policy(cb->arg);
112 e->invert.reqid = cb->invert;
113 e->reqid = cb->val.u32;
120 e->invert.spi = cb->invert;
121 e->spi = cb->val.u32;
129 e->invert.saddr = cb->invert;
130 memcpy(&e->saddr, &cb->val.haddr, sizeof(cb->val.haddr));
131 memcpy(&e->smask, &cb->val.hmask, sizeof(cb->val.hmask));
138 e->invert.daddr = cb->invert;
139 memcpy(&e->daddr, &cb->val.haddr, sizeof(cb->val.haddr));
140 memcpy(&e->dmask, &cb->val.hmask, sizeof(cb->val.hmask));
146 e->proto = cb->val.protocol;
152 e->invert.proto = cb->invert;
159 e->invert.mode = cb->invert;
160 e->mode = parse_mode(cb->arg);
170 static void policy_check(struct xt_fcheck_call *cb)
172 struct xt_policy_info *info = cb->data;