/net/netfilter/ |
D | nft_cmp.c | 21 u8 sreg; member 33 d = memcmp(®s->data[priv->sreg], &priv->data, priv->len); in nft_cmp_eval() 86 err = nft_parse_register_load(tb[NFTA_CMP_SREG], &priv->sreg, desc.len); in nft_cmp_init() 99 if (nft_dump_register(skb, NFTA_CMP_SREG, priv->sreg)) in nft_cmp_dump() 142 struct nft_offload_reg *reg = &ctx->regs[priv->sreg]; in __nft_cmp_offload() 224 err = nft_parse_register_load(tb[NFTA_CMP_SREG], &priv->sreg, desc.len); in nft_cmp_fast_init() 248 .sreg = priv->sreg, in nft_cmp_fast_offload() 262 if (nft_dump_register(skb, NFTA_CMP_SREG, priv->sreg)) in nft_cmp_fast_dump() 324 err = nft_parse_register_load(tb[NFTA_CMP_SREG], &priv->sreg, desc.len); in nft_cmp16_fast_init() 342 .sreg = priv->sreg, in nft_cmp16_fast_offload() [all …]
|
D | nft_bitwise.c | 19 u8 sreg; member 67 const u32 *src = ®s->data[priv->sreg]; in nft_bitwise_eval() 174 err = nft_parse_register_load(tb[NFTA_BITWISE_SREG], &priv->sreg, in nft_bitwise_init() 240 if (nft_dump_register(skb, NFTA_BITWISE_SREG, priv->sreg)) in nft_bitwise_dump() 275 priv->sreg != priv->dreg || priv->len != reg->len) in nft_bitwise_offload() 292 if (!track->regs[priv->sreg].selector) in nft_bitwise_reduce() 296 if (track->regs[priv->sreg].selector == track->regs[priv->dreg].selector && in nft_bitwise_reduce() 297 track->regs[priv->sreg].num_reg == 0 && in nft_bitwise_reduce() 300 priv->sreg == bitwise->sreg && in nft_bitwise_reduce() 311 if (track->regs[priv->sreg].bitwise || in nft_bitwise_reduce() [all …]
|
D | nft_range.c | 18 u8 sreg; member 29 d1 = memcmp(®s->data[priv->sreg], &priv->data_from, priv->len); in nft_range_eval() 30 d2 = memcmp(®s->data[priv->sreg], &priv->data_to, priv->len); in nft_range_eval() 86 err = nft_parse_register_load(tb[NFTA_RANGE_SREG], &priv->sreg, in nft_range_init() 118 if (nft_dump_register(skb, NFTA_RANGE_SREG, priv->sreg)) in nft_range_dump()
|
D | nft_byteorder.c | 19 u8 sreg; member 31 u32 *src = ®s->data[priv->sreg]; in nft_byteorder_eval() 142 err = nft_parse_register_load(tb[NFTA_BYTEORDER_SREG], &priv->sreg, in nft_byteorder_init() 156 if (nft_dump_register(skb, NFTA_BYTEORDER_SREG, priv->sreg)) in nft_byteorder_dump()
|
D | nft_objref.c | 101 u8 sreg; member 116 found = nft_set_do_lookup(net, set, ®s->data[priv->sreg], &ext); in nft_objref_map_eval() 146 err = nft_parse_register_load(tb[NFTA_OBJREF_SET_SREG], &priv->sreg, in nft_objref_map_init() 165 if (nft_dump_register(skb, NFTA_OBJREF_SET_SREG, priv->sreg) || in nft_objref_map_dump()
|
D | nft_lookup.c | 20 u8 sreg; member 67 found = nft_set_do_lookup(net, set, ®s->data[priv->sreg], &ext) ^ in nft_lookup_eval() 114 err = nft_parse_register_load(tb[NFTA_LOOKUP_SREG], &priv->sreg, in nft_lookup_init() 188 if (nft_dump_register(skb, NFTA_LOOKUP_SREG, priv->sreg)) in nft_lookup_dump()
|
D | nft_hash.c | 17 u8 sreg; member 31 const void *data = ®s->data[priv->sreg]; in nft_jhash_eval() 94 err = nft_parse_register_load(tb[NFTA_HASH_SREG], &priv->sreg, len); in nft_jhash_init() 146 if (nft_dump_register(skb, NFTA_HASH_SREG, priv->sreg)) in nft_jhash_dump()
|
D | nft_meta.c | 424 u32 *sreg = ®s->data[meta->sreg]; in nft_meta_set_eval() local 425 u32 value = *sreg; in nft_meta_set_eval() 436 value8 = nft_reg_load8(sreg); in nft_meta_set_eval() 444 value8 = nft_reg_load8(sreg); in nft_meta_set_eval() 660 err = nft_parse_register_load(tb[NFTA_META_SREG], &priv->sreg, len); in nft_meta_set_init() 693 if (nft_dump_register(skb, NFTA_META_SREG, priv->sreg)) in nft_meta_set_dump()
|
D | nft_ct.c | 32 u8 sreg; member 241 u16 value = nft_reg_load16(®s->data[priv->sreg]); in nft_ct_set_zone_eval() 288 u32 value = regs->data[priv->sreg]; in nft_ct_set_eval() 317 ®s->data[priv->sreg], in nft_ct_set_eval() 318 ®s->data[priv->sreg], in nft_ct_set_eval() 325 u32 ctmask = regs->data[priv->sreg]; in nft_ct_set_eval() 617 err = nft_parse_register_load(tb[NFTA_CT_SREG], &priv->sreg, len); in nft_ct_set_init() 713 if (nft_dump_register(skb, NFTA_CT_SREG, priv->sreg)) in nft_ct_set_dump()
|
D | nf_tables_core.c | 63 u32 *src = ®s->data[priv->sreg]; in nft_bitwise_fast_eval() 74 if (((regs->data[priv->sreg] & priv->mask) == priv->data) ^ priv->inv) in nft_cmp_fast_eval() 83 const u64 *reg_data = (const u64 *)®s->data[priv->sreg]; in nft_cmp16_fast_eval()
|
D | nft_exthdr.c | 26 u8 sreg; member 275 ®s->data[priv->sreg]); in nft_exthdr_tcp_set_eval() 293 new.v32 = nft_reg_load_be32(®s->data[priv->sreg]); in nft_exthdr_tcp_set_eval() 592 return nft_parse_register_load(tb[NFTA_EXTHDR_SREG], &priv->sreg, in nft_exthdr_tcp_set_init() 688 if (nft_dump_register(skb, NFTA_EXTHDR_SREG, priv->sreg)) in nft_exthdr_dump_set()
|
D | nft_payload.c | 674 const u32 *src = ®s->data[priv->sreg]; in nft_payload_set_eval() 786 return nft_parse_register_load(tb[NFTA_PAYLOAD_SREG], &priv->sreg, in nft_payload_set_init() 794 if (nft_dump_register(skb, NFTA_PAYLOAD_SREG, priv->sreg) || in nft_payload_set_dump()
|
D | nf_tables_api.c | 10371 int nft_parse_register_load(const struct nlattr *attr, u8 *sreg, u32 len) in nft_parse_register_load() argument 10384 *sreg = reg; in nft_parse_register_load()
|