Lines Matching refs:cb
83 static void MARK_parse_v0(struct xt_option_call *cb) in MARK_parse_v0() argument
85 struct xt_mark_target_info *markinfo = cb->data; in MARK_parse_v0()
87 xtables_option_parse(cb); in MARK_parse_v0()
88 switch (cb->entry->id) { in MARK_parse_v0()
90 markinfo->mark = cb->val.mark; in MARK_parse_v0()
95 cb->entry->name); in MARK_parse_v0()
99 static void MARK_check(struct xt_fcheck_call *cb) in MARK_check() argument
101 if (cb->xflags == 0) in MARK_check()
107 static void MARK_parse_v1(struct xt_option_call *cb) in MARK_parse_v1() argument
109 struct xt_mark_target_info_v1 *markinfo = cb->data; in MARK_parse_v1()
111 xtables_option_parse(cb); in MARK_parse_v1()
112 switch (cb->entry->id) { in MARK_parse_v1()
123 markinfo->mark = cb->val.u32; in MARK_parse_v1()
126 static void mark_tg_parse(struct xt_option_call *cb) in mark_tg_parse() argument
128 struct xt_mark_tginfo2 *info = cb->data; in mark_tg_parse()
130 xtables_option_parse(cb); in mark_tg_parse()
131 switch (cb->entry->id) { in mark_tg_parse()
133 info->mark = cb->val.mark; in mark_tg_parse()
134 info->mask = cb->val.mask; in mark_tg_parse()
137 info->mark = cb->val.mark; in mark_tg_parse()
138 info->mask = cb->val.mark | cb->val.mask; in mark_tg_parse()
142 info->mask = ~cb->val.u32; in mark_tg_parse()
145 info->mark = info->mask = cb->val.u32; in mark_tg_parse()
148 info->mark = cb->val.u32; in mark_tg_parse()
154 static void mark_tg_check(struct xt_fcheck_call *cb) in mark_tg_check() argument
156 if (cb->xflags == 0) in mark_tg_check()