/net/netfilter/ |
D | nft_immediate.c | 24 nft_data_copy(®s->data[priv->dreg], &priv->data, priv->dlen); in nft_immediate_eval() 68 &priv->dreg, &priv->data, desc.type, in nft_immediate_init() 73 if (priv->dreg == NFT_REG_VERDICT) { in nft_immediate_init() 104 if (priv->dreg == NFT_REG_VERDICT) { in nft_immediate_activate() 125 return nft_data_hold(&priv->data, nft_dreg_to_type(priv->dreg)); in nft_immediate_activate() 150 if (priv->dreg == NFT_REG_VERDICT) { in nft_immediate_deactivate() 183 return nft_data_release(&priv->data, nft_dreg_to_type(priv->dreg)); in nft_immediate_deactivate() 195 if (priv->dreg != NFT_REG_VERDICT) in nft_immediate_destroy() 235 if (nft_dump_register(skb, NFTA_IMMEDIATE_DREG, priv->dreg)) in nft_immediate_dump() 239 nft_dreg_to_type(priv->dreg), priv->dlen); in nft_immediate_dump() [all …]
|
D | nft_numgen.c | 18 u8 dreg; member 42 regs->data[priv->dreg] = nft_ng_inc_gen(priv); in nft_ng_inc_eval() 70 return nft_parse_register_store(ctx, tb[NFTA_NG_DREG], &priv->dreg, in nft_ng_inc_init() 74 static int nft_ng_dump(struct sk_buff *skb, enum nft_registers dreg, in nft_ng_dump() argument 77 if (nft_dump_register(skb, NFTA_NG_DREG, dreg)) in nft_ng_dump() 96 return nft_ng_dump(skb, priv->dreg, priv->modulus, NFT_NG_INCREMENTAL, in nft_ng_inc_dump() 101 u8 dreg; member 117 regs->data[priv->dreg] = nft_ng_random_gen(priv); in nft_ng_random_eval() 136 return nft_parse_register_store(ctx, tb[NFTA_NG_DREG], &priv->dreg, in nft_ng_random_init() 144 return nft_ng_dump(skb, priv->dreg, priv->modulus, NFT_NG_RANDOM, in nft_ng_random_dump()
|
D | nft_fib.c | 108 err = nft_parse_register_store(ctx, tb[NFTA_FIB_DREG], &priv->dreg, in nft_fib_init() 121 if (nft_dump_register(skb, NFTA_FIB_DREG, priv->dreg)) in nft_fib_dump() 137 u32 *dreg = reg; in nft_fib_store_result() local 144 nft_reg_store8(dreg, !!index); in nft_fib_store_result() 146 *dreg = index; in nft_fib_store_result() 151 nft_reg_store8(dreg, !!dev); in nft_fib_store_result() 157 *dreg = 0; in nft_fib_store_result()
|
D | nft_hash.c | 18 u8 dreg; member 37 regs->data[priv->dreg] = h + priv->offset; in nft_jhash_eval() 41 u8 dreg; member 56 regs->data[priv->dreg] = h + priv->offset; in nft_symhash_eval() 112 return nft_parse_register_store(ctx, tb[NFTA_HASH_DREG], &priv->dreg, in nft_jhash_init() 137 &priv->dreg, NULL, NFT_DATA_VALUE, in nft_symhash_init() 148 if (nft_dump_register(skb, NFTA_HASH_DREG, priv->dreg)) in nft_jhash_dump() 173 if (nft_dump_register(skb, NFTA_HASH_DREG, priv->dreg)) in nft_symhash_dump()
|
D | nft_bitwise.c | 20 u8 dreg; member 68 u32 *dst = ®s->data[priv->dreg]; in nft_bitwise_eval() 180 &priv->dreg, NULL, NFT_DATA_VALUE, in nft_bitwise_init() 242 if (nft_dump_register(skb, NFTA_BITWISE_DREG, priv->dreg)) in nft_bitwise_dump() 269 struct nft_offload_reg *reg = &ctx->regs[priv->dreg]; in nft_bitwise_offload() 275 priv->sreg != priv->dreg || priv->len != reg->len) in nft_bitwise_offload() 324 err = nft_parse_register_store(ctx, tb[NFTA_BITWISE_DREG], &priv->dreg, in nft_bitwise_fast_init() 355 if (nft_dump_register(skb, NFTA_BITWISE_DREG, priv->dreg)) in nft_bitwise_fast_dump() 380 struct nft_offload_reg *reg = &ctx->regs[priv->dreg]; in nft_bitwise_fast_offload() 382 if (priv->xor || priv->sreg != priv->dreg || reg->len != sizeof(u32)) in nft_bitwise_fast_offload()
|
D | nft_osf.c | 9 u8 dreg; member 24 u32 *dest = ®s->data[priv->dreg]; in nft_osf_eval() 86 err = nft_parse_register_store(ctx, tb[NFTA_OSF_DREG], &priv->dreg, in nft_osf_init() 105 if (nft_dump_register(skb, NFTA_OSF_DREG, priv->dreg)) in nft_osf_dump()
|
D | nft_rt.c | 18 u8 dreg; member 59 u32 *dest = ®s->data[priv->dreg]; in nft_rt_get_eval() 144 return nft_parse_register_store(ctx, tb[NFTA_RT_DREG], &priv->dreg, in nft_rt_get_init() 155 if (nft_dump_register(skb, NFTA_RT_DREG, priv->dreg)) in nft_rt_get_dump()
|
D | nft_byteorder.c | 20 u8 dreg; member 32 u32 *dst = ®s->data[priv->dreg]; in nft_byteorder_eval() 148 &priv->dreg, NULL, NFT_DATA_VALUE, in nft_byteorder_init() 158 if (nft_dump_register(skb, NFTA_BYTEORDER_DREG, priv->dreg)) in nft_byteorder_dump()
|
D | nft_socket.c | 14 u8 dreg; member 89 u32 *dest = ®s->data[priv->dreg]; in nft_socket_eval() 194 return nft_parse_register_store(ctx, tb[NFTA_SOCKET_DREG], &priv->dreg, in nft_socket_init() 205 if (nft_dump_register(skb, NFTA_SOCKET_DREG, priv->dreg)) in nft_socket_dump()
|
D | nft_xfrm.c | 27 u8 dreg; member 89 return nft_parse_register_store(ctx, tb[NFTA_XFRM_DREG], &priv->dreg, in nft_xfrm_get_init() 120 u32 *dest = ®s->data[priv->dreg]; in nft_xfrm_state_get_key() 217 if (nft_dump_register(skb, NFTA_XFRM_DREG, priv->dreg)) in nft_xfrm_get_dump()
|
D | nft_lookup.c | 21 u8 dreg; member 79 nft_data_copy(®s->data[priv->dreg], in nft_lookup_eval() 139 &priv->dreg, NULL, set->dtype, in nft_lookup_init() 191 if (nft_dump_register(skb, NFTA_LOOKUP_DREG, priv->dreg)) in nft_lookup_dump()
|
D | nft_exthdr.c | 24 u8 dreg; member 51 u32 *dest = ®s->data[priv->dreg]; in nft_exthdr_ipv6_eval() 146 u32 *dest = ®s->data[priv->dreg]; in nft_exthdr_ipv4_eval() 197 u32 *dest = ®s->data[priv->dreg]; in nft_exthdr_tcp_eval() 377 u32 *dest = ®s->data[priv->dreg]; in nft_exthdr_sctp_eval() 466 &priv->dreg, NULL, NFT_DATA_VALUE, in nft_exthdr_init() 585 if (nft_dump_register(skb, NFTA_EXTHDR_DREG, priv->dreg)) in nft_exthdr_dump()
|
D | nft_payload.c | 128 u32 *dest = ®s->data[priv->dreg]; in nft_payload_eval() 194 &priv->dreg, NULL, NFT_DATA_VALUE, in nft_payload_init() 202 if (nft_dump_register(skb, NFTA_PAYLOAD_DREG, priv->dreg) || in nft_payload_dump() 245 struct nft_offload_reg *reg = &ctx->regs[priv->dreg]; in nft_payload_offload_ll() 314 struct nft_offload_reg *reg = &ctx->regs[priv->dreg]; in nft_payload_offload_ip() 354 struct nft_offload_reg *reg = &ctx->regs[priv->dreg]; in nft_payload_offload_ip6() 414 struct nft_offload_reg *reg = &ctx->regs[priv->dreg]; in nft_payload_offload_tcp() 442 struct nft_offload_reg *reg = &ctx->regs[priv->dreg]; in nft_payload_offload_udp()
|
D | nft_meta.c | 311 u32 *dest = ®s->data[priv->dreg]; in nft_meta_get_eval() 529 return nft_parse_register_store(ctx, tb[NFTA_META_DREG], &priv->dreg, in nft_meta_get_init() 672 if (nft_dump_register(skb, NFTA_META_DREG, priv->dreg)) in nft_meta_get_dump() 712 struct nft_offload_reg *reg = &ctx->regs[priv->dreg]; in nft_meta_get_offload()
|
D | nft_tunnel.c | 18 u8 dreg; member 27 u32 *dest = ®s->data[priv->dreg]; in nft_tunnel_get_eval() 104 return nft_parse_register_store(ctx, tb[NFTA_TUNNEL_DREG], &priv->dreg, in nft_tunnel_get_init() 115 if (nft_dump_register(skb, NFTA_TUNNEL_DREG, priv->dreg)) in nft_tunnel_get_dump()
|
D | nf_tables_core.c | 55 u32 *dst = ®s->data[priv->dreg]; in nft_bitwise_fast_eval() 120 u32 *dest = ®s->data[priv->dreg]; in nft_payload_fast_eval()
|
D | nft_ct.c | 30 u8 dreg; member 64 u32 *dest = ®s->data[priv->dreg]; in nft_ct_get_eval() 506 err = nft_parse_register_store(ctx, tb[NFTA_CT_DREG], &priv->dreg, NULL, in nft_ct_get_init() 648 if (nft_dump_register(skb, NFTA_CT_DREG, priv->dreg)) in nft_ct_get_dump()
|
D | nf_tables_api.c | 4971 enum nft_registers dreg; in nft_setelem_data_validate() local 4973 dreg = nft_type_to_reg(set->dtype); in nft_setelem_data_validate() 4974 return nft_validate_register_store(ctx, dreg, nft_set_ext_data(ext), in nft_setelem_data_validate() 6170 enum nft_registers dreg; in nft_add_set_elem() local 6385 dreg = nft_type_to_reg(set->dtype); in nft_add_set_elem() 6397 err = nft_validate_register_store(&bind_ctx, dreg, in nft_add_set_elem() 10035 if (priv->dreg != NFT_REG_VERDICT) in nf_tables_check_loops() 10217 const struct nlattr *attr, u8 *dreg, in nft_parse_register_store() argument 10232 *dreg = reg; in nft_parse_register_store()
|
/net/bridge/netfilter/ |
D | nft_meta_bridge.c | 27 u32 *dest = ®s->data[priv->dreg]; in nft_meta_bridge_get_eval() 90 return nft_parse_register_store(ctx, tb[NFTA_META_DREG], &priv->dreg, in nft_meta_bridge_get_init()
|
/net/ipv4/netfilter/ |
D | nft_fib_ipv4.c | 32 u32 *dst = ®s->data[priv->dreg]; in nft_fib4_eval_type() 62 u32 *dest = ®s->data[priv->dreg]; in nft_fib4_eval()
|
/net/ipv6/netfilter/ |
D | nft_fib_ipv6.c | 128 u32 *dest = ®s->data[priv->dreg]; in nft_fib6_eval_type() 158 u32 *dest = ®s->data[priv->dreg]; in nft_fib6_eval()
|