Lines Matching refs:cb
42 decode_attr_f *cb; /* decoder function to call */ member
262 if (s != NULL && s->cb != NULL) { in nl_decode_attrs_raw()
266 s->cb(fp, nla, s->attr_name, s->args); in nl_decode_attrs_raw()
275 { .type = PF_GR_ANCHOR, .attr_name = "anchor", .cb = nlattr_decode_string },
276 { .type = PF_GR_ACTION, .attr_name = "action", .cb = nlattr_decode_uint8 },
277 { .type = PF_GR_NR, .attr_name = "nr", .cb = nlattr_decode_uint32 },
278 { .type = PF_GR_TICKET, .attr_name = "ticket", .cb = nlattr_decode_uint32 },
279 { .type = PF_GR_CLEAR, .attr_name = "clear", .cb = nlattr_decode_uint8 },
284 { .type = PF_LI_INDEX, .attr_name = "index", .cb = nlattr_decode_uint32 },
285 { .type = PF_LI_LIMIT, .attr_name = "limit", .cb = nlattr_decode_uint32 },
290 { .type = PF_AT_ADDR, .attr_name = "addr", .cb = nlattr_decode_in6_addr },
291 { .type = PF_AT_MASK, .attr_name = "mask", .cb = nlattr_decode_in6_addr },
292 { .type = PF_AT_IFNAME, .attr_name = "ifname", .cb = nlattr_decode_string },
293 { .type = PF_AT_TABLENAME, .attr_name = "tablename", .cb = nlattr_decode_string },
294 { .type = PF_AT_TYPE, .attr_name = "type", .cb = nlattr_decode_uint8 },
295 { .type = PF_AT_IFLAGS, .attr_name = "iflags", .cb = nlattr_decode_uint8 },
300 { .type = PF_PA_ADDR, .attr_name = "addr", .cb = nlattr_decode_nested, .args = &addr_wrap_decoder},
301 { .type = PF_PA_IFNAME, .attr_name = "ifname", .cb = nlattr_decode_string },
306 { .type = PF_AA_ACTION, .attr_name = "action", .cb = nlattr_decode_uint32 },
307 { .type = PF_AA_TICKET, .attr_name = "ticket", .cb = nlattr_decode_uint32 },
308 { .type = PF_AA_NR, .attr_name = "nr", .cb = nlattr_decode_uint32 },
309 { .type = PF_AA_R_NUM, .attr_name = "r_num", .cb = nlattr_decode_uint32 },
310 { .type = PF_AA_R_ACTION, .attr_name = "r_action", .cb = nlattr_decode_uint8 },
311 { .type = PF_AA_R_LAST, .attr_name = "r_last", .cb = nlattr_decode_uint8 },
312 { .type = PF_AA_AF, .attr_name = "af", .cb = nlattr_decode_uint8 },
313 { .type = PF_AA_ANCHOR, .attr_name = "anchor", .cb = nlattr_decode_string },
314 …{ .type = PF_AA_ADDR, .attr_name = "addr", .cb = nlattr_decode_nested , .args = &pool_addr_decoder…
315 { .type = PF_AA_WHICH, .attr_name = "which", .cb = nlattr_decode_uint32 },
320 …{ .type = PF_RAT_ADDR, .attr_name = "addr", .cb = nlattr_decode_nested, .args = &addr_wrap_decoder…
321 { .type = PF_RAT_SRC_PORT, .attr_name = "src_port", .cb = nlattr_decode_uint16 },
322 { .type = PF_RAT_DST_PORT, .attr_name = "dst_port", .cb = nlattr_decode_uint16 },
323 { .type = PF_RAT_NEG, .attr_name = "neg", .cb = nlattr_decode_uint8 },
324 { .type = PF_RAT_OP, .attr_name = "op", .cb = nlattr_decode_uint8 },
329 { .type = PF_CS_CMP_ID, .attr_name = "cmp_id", .cb = nlattr_decode_uint64 },
330 { .type = PF_CS_CMP_CREATORID, .attr_name = "cmp_creatorid", .cb = nlattr_decode_uint32 },
331 { .type = PF_CS_CMP_DIR, .attr_name = "cmp_dir", .cb = nlattr_decode_uint8 },
332 { .type = PF_CS_AF, .attr_name = "af", .cb = nlattr_decode_uint8 },
333 { .type = PF_CS_PROTO, .attr_name = "proto", .cb = nlattr_decode_uint8 },
334 { .type = PF_CS_SRC, .attr_name = "src", .cb = nlattr_decode_nested, .args = &rule_addr_decoder },
335 { .type = PF_CS_DST, .attr_name = "dst", .cb = nlattr_decode_nested, .args = &rule_addr_decoder },
336 …{ .type = PF_CS_RT_ADDR, .attr_name = "rt_addr", .cb = nlattr_decode_nested, .args = &rule_addr_de…
337 { .type = PF_CS_IFNAME, .attr_name = "ifname", .cb = nlattr_decode_string },
338 { .type = PF_CS_LABEL, .attr_name = "label", .cb = nlattr_decode_string },
339 { .type = PF_CS_KILL_MATCH, .attr_name = "kill_match", .cb = nlattr_decode_bool },
340 { .type = PF_CS_NAT, .attr_name = "nat", .cb = nlattr_decode_bool },
345 { .type = PF_RS_PATH, .attr_name = "path", .cb = nlattr_decode_string },
346 { .type = PF_RS_NR, .attr_name = "nr", .cb = nlattr_decode_uint32 },