Home
last modified time | relevance | path

Searched refs:nla_put_be32 (Results 1 – 25 of 65) sorted by relevance

123

/linux-6.1.9/net/netfilter/
Dnft_hash.c150 if (nla_put_be32(skb, NFTA_HASH_LEN, htonl(priv->len))) in nft_jhash_dump()
152 if (nla_put_be32(skb, NFTA_HASH_MODULUS, htonl(priv->modulus))) in nft_jhash_dump()
155 nla_put_be32(skb, NFTA_HASH_SEED, htonl(priv->seed))) in nft_jhash_dump()
158 if (nla_put_be32(skb, NFTA_HASH_OFFSET, htonl(priv->offset))) in nft_jhash_dump()
160 if (nla_put_be32(skb, NFTA_HASH_TYPE, htonl(NFT_HASH_JENKINS))) in nft_jhash_dump()
185 if (nla_put_be32(skb, NFTA_HASH_MODULUS, htonl(priv->modulus))) in nft_symhash_dump()
188 if (nla_put_be32(skb, NFTA_HASH_OFFSET, htonl(priv->offset))) in nft_symhash_dump()
190 if (nla_put_be32(skb, NFTA_HASH_TYPE, htonl(NFT_HASH_SYM))) in nft_symhash_dump()
Dnf_tables_trace.c71 if (nla_put_be32(nlskb, NFTA_TRACE_IIF, in nf_trace_fill_dev_info()
81 if (nla_put_be32(nlskb, NFTA_TRACE_OIF, in nf_trace_fill_dev_info()
211 if (nla_put_be32(skb, NFTA_TRACE_NFPROTO, htonl(nft_pf(pkt)))) in nft_trace_notify()
214 if (nla_put_be32(skb, NFTA_TRACE_TYPE, htonl(info->type))) in nft_trace_notify()
248 if (nla_put_be32(skb, NFTA_TRACE_POLICY, in nft_trace_notify()
254 if (mark && nla_put_be32(skb, NFTA_TRACE_MARK, htonl(mark))) in nft_trace_notify()
Dnfnetlink_log.c484 if (nla_put_be32(inst->skb, NFULA_IFINDEX_INDEV, in __build_packet_message()
492 if (nla_put_be32(inst->skb, NFULA_IFINDEX_PHYSINDEV, in __build_packet_message()
498 nla_put_be32(inst->skb, NFULA_IFINDEX_INDEV, in __build_packet_message()
506 if (nla_put_be32(inst->skb, NFULA_IFINDEX_INDEV, in __build_packet_message()
512 nla_put_be32(inst->skb, NFULA_IFINDEX_PHYSINDEV, in __build_packet_message()
521 if (nla_put_be32(inst->skb, NFULA_IFINDEX_OUTDEV, in __build_packet_message()
529 if (nla_put_be32(inst->skb, NFULA_IFINDEX_PHYSOUTDEV, in __build_packet_message()
535 nla_put_be32(inst->skb, NFULA_IFINDEX_OUTDEV, in __build_packet_message()
543 if (nla_put_be32(inst->skb, NFULA_IFINDEX_OUTDEV, in __build_packet_message()
549 nla_put_be32(inst->skb, NFULA_IFINDEX_PHYSOUTDEV, in __build_packet_message()
[all …]
Dnfnetlink_queue.c276 return flags ? nla_put_be32(nlskb, NFQA_SKB_INFO, htonl(flags)) : 0; in nfqnl_put_packet_info()
289 if (nla_put_be32(skb, NFQA_UID, in nfqnl_put_sk_uidgid()
292 if (nla_put_be32(skb, NFQA_GID, in nfqnl_put_sk_uidgid()
495 if (nla_put_be32(skb, NFQA_IFINDEX_INDEV, htonl(indev->ifindex))) in nfqnl_build_packet_message()
502 if (nla_put_be32(skb, NFQA_IFINDEX_PHYSINDEV, in nfqnl_build_packet_message()
506 nla_put_be32(skb, NFQA_IFINDEX_INDEV, in nfqnl_build_packet_message()
514 if (nla_put_be32(skb, NFQA_IFINDEX_INDEV, in nfqnl_build_packet_message()
520 nla_put_be32(skb, NFQA_IFINDEX_PHYSINDEV, in nfqnl_build_packet_message()
529 if (nla_put_be32(skb, NFQA_IFINDEX_OUTDEV, htonl(outdev->ifindex))) in nfqnl_build_packet_message()
536 if (nla_put_be32(skb, NFQA_IFINDEX_PHYSOUTDEV, in nfqnl_build_packet_message()
[all …]
Dnft_byteorder.c159 if (nla_put_be32(skb, NFTA_BYTEORDER_OP, htonl(priv->op))) in nft_byteorder_dump()
161 if (nla_put_be32(skb, NFTA_BYTEORDER_LEN, htonl(priv->len))) in nft_byteorder_dump()
163 if (nla_put_be32(skb, NFTA_BYTEORDER_SIZE, htonl(priv->size))) in nft_byteorder_dump()
Dnft_payload.c203 nla_put_be32(skb, NFTA_PAYLOAD_BASE, htonl(priv->base)) || in nft_payload_dump()
204 nla_put_be32(skb, NFTA_PAYLOAD_OFFSET, htonl(priv->offset)) || in nft_payload_dump()
205 nla_put_be32(skb, NFTA_PAYLOAD_LEN, htonl(priv->len))) in nft_payload_dump()
795 nla_put_be32(skb, NFTA_PAYLOAD_BASE, htonl(priv->base)) || in nft_payload_set_dump()
796 nla_put_be32(skb, NFTA_PAYLOAD_OFFSET, htonl(priv->offset)) || in nft_payload_set_dump()
797 nla_put_be32(skb, NFTA_PAYLOAD_LEN, htonl(priv->len)) || in nft_payload_set_dump()
798 nla_put_be32(skb, NFTA_PAYLOAD_CSUM_TYPE, htonl(priv->csum_type)) || in nft_payload_set_dump()
799 nla_put_be32(skb, NFTA_PAYLOAD_CSUM_OFFSET, in nft_payload_set_dump()
801 nla_put_be32(skb, NFTA_PAYLOAD_CSUM_FLAGS, htonl(priv->csum_flags))) in nft_payload_set_dump()
Dnft_tunnel.c115 if (nla_put_be32(skb, NFTA_TUNNEL_KEY, htonl(priv->key))) in nft_tunnel_get_dump()
119 if (nla_put_be32(skb, NFTA_TUNNEL_MODE, htonl(priv->mode))) in nft_tunnel_get_dump()
550 nla_put_be32(skb, NFTA_TUNNEL_KEY_IP6_FLOWLABEL, in nft_tunnel_ip_dump()
590 if (nla_put_be32(skb, NFTA_TUNNEL_KEY_VXLAN_GBP, in nft_tunnel_opts_dump()
598 if (nla_put_be32(skb, NFTA_TUNNEL_KEY_ERSPAN_VERSION, in nft_tunnel_opts_dump()
603 if (nla_put_be32(skb, NFTA_TUNNEL_KEY_ERSPAN_V1_INDEX, in nft_tunnel_opts_dump()
668 if (nla_put_be32(skb, NFTA_TUNNEL_KEY_FLAGS, htonl(flags)) < 0) in nft_tunnel_flags_dump()
680 if (nla_put_be32(skb, NFTA_TUNNEL_KEY_ID, in nft_tunnel_obj_dump()
Dnf_conntrack_netlink.c168 if (nla_put_be32(skb, CTA_STATUS, htonl(ct->status))) in ctnetlink_dump_status()
184 if (nla_put_be32(skb, CTA_TIMEOUT, htonl(timeout))) in ctnetlink_dump_timeout()
338 if (nla_put_be32(skb, CTA_MARK, htonl(mark))) in ctnetlink_dump_mark()
443 if (nla_put_be32(skb, CTA_SEQADJ_CORRECTION_POS, in dump_ct_seq_adj()
445 nla_put_be32(skb, CTA_SEQADJ_OFFSET_BEFORE, in dump_ct_seq_adj()
447 nla_put_be32(skb, CTA_SEQADJ_OFFSET_AFTER, in dump_ct_seq_adj()
495 if (nla_put_be32(skb, CTA_SYNPROXY_ISN, htonl(synproxy->isn)) || in ctnetlink_dump_ct_synproxy()
496 nla_put_be32(skb, CTA_SYNPROXY_ITS, htonl(synproxy->its)) || in ctnetlink_dump_ct_synproxy()
497 nla_put_be32(skb, CTA_SYNPROXY_TSOFF, htonl(synproxy->tsoff))) in ctnetlink_dump_ct_synproxy()
512 if (nla_put_be32(skb, CTA_ID, id)) in ctnetlink_dump_id()
[all …]
Dnft_nat.c264 if (nla_put_be32(skb, NFTA_NAT_TYPE, htonl(NFT_NAT_SNAT))) in nft_nat_dump()
268 if (nla_put_be32(skb, NFTA_NAT_TYPE, htonl(NFT_NAT_DNAT))) in nft_nat_dump()
273 if (nla_put_be32(skb, NFTA_NAT_FAMILY, htonl(priv->family))) in nft_nat_dump()
293 if (nla_put_be32(skb, NFTA_NAT_FLAGS, htonl(priv->flags))) in nft_nat_dump()
Dnft_numgen.c102 if (nla_put_be32(skb, NFTA_NG_MODULUS, htonl(modulus))) in nft_ng_dump()
104 if (nla_put_be32(skb, NFTA_NG_TYPE, htonl(type))) in nft_ng_dump()
106 if (nla_put_be32(skb, NFTA_NG_OFFSET, htonl(offset))) in nft_ng_dump()
Dnf_conntrack_proto_tcp.c1508 if (nla_put_be32(skb, CTA_TIMEOUT_TCP_SYN_SENT, in tcp_timeout_obj_to_nlattr()
1510 nla_put_be32(skb, CTA_TIMEOUT_TCP_SYN_RECV, in tcp_timeout_obj_to_nlattr()
1512 nla_put_be32(skb, CTA_TIMEOUT_TCP_ESTABLISHED, in tcp_timeout_obj_to_nlattr()
1514 nla_put_be32(skb, CTA_TIMEOUT_TCP_FIN_WAIT, in tcp_timeout_obj_to_nlattr()
1516 nla_put_be32(skb, CTA_TIMEOUT_TCP_CLOSE_WAIT, in tcp_timeout_obj_to_nlattr()
1518 nla_put_be32(skb, CTA_TIMEOUT_TCP_LAST_ACK, in tcp_timeout_obj_to_nlattr()
1520 nla_put_be32(skb, CTA_TIMEOUT_TCP_TIME_WAIT, in tcp_timeout_obj_to_nlattr()
1522 nla_put_be32(skb, CTA_TIMEOUT_TCP_CLOSE, in tcp_timeout_obj_to_nlattr()
1524 nla_put_be32(skb, CTA_TIMEOUT_TCP_SYN_SENT2, in tcp_timeout_obj_to_nlattr()
1526 nla_put_be32(skb, CTA_TIMEOUT_TCP_RETRANS, in tcp_timeout_obj_to_nlattr()
[all …]
Dnfnetlink_cthelper.c500 if (nla_put_be32(skb, NFCTH_POLICY_SET_NUM, in nfnl_cthelper_dump_policy()
513 if (nla_put_be32(skb, NFCTH_POLICY_EXPECT_MAX, in nfnl_cthelper_dump_policy()
517 if (nla_put_be32(skb, NFCTH_POLICY_EXPECT_TIMEOUT, in nfnl_cthelper_dump_policy()
547 if (nla_put_be32(skb, NFCTH_QUEUE_NUM, htonl(helper->queue_num))) in nfnl_cthelper_fill_info()
556 if (nla_put_be32(skb, NFCTH_PRIV_DATA_LEN, htonl(helper->data_len))) in nfnl_cthelper_fill_info()
564 if (nla_put_be32(skb, NFCTH_STATUS, htonl(status))) in nfnl_cthelper_fill_info()
Dnft_fib.c128 if (nla_put_be32(skb, NFTA_FIB_RESULT, htonl(priv->result))) in nft_fib_dump()
131 if (nla_put_be32(skb, NFTA_FIB_FLAGS, htonl(priv->flags))) in nft_fib_dump()
Dnft_log.c254 if (nla_put_be32(skb, NFTA_LOG_LEVEL, htonl(li->u.log.level))) in nft_log_dump()
258 if (nla_put_be32(skb, NFTA_LOG_FLAGS, in nft_log_dump()
268 if (nla_put_be32(skb, NFTA_LOG_SNAPLEN, in nft_log_dump()
Dnfnetlink_hook.c84 ret = nla_put_be32(nlskb, NFNLA_HOOK_INFO_TYPE, in nfnl_hook_put_nft_chain_info()
166 ret = nla_put_be32(nlskb, NFNLA_HOOK_HOOKNUM, htonl(hooknum)); in nfnl_hook_dump_one()
170 ret = nla_put_be32(nlskb, NFNLA_HOOK_PRIORITY, htonl(ops->priority)); in nfnl_hook_dump_one()
Dnf_conntrack_proto_generic.c45 if (nla_put_be32(skb, CTA_TIMEOUT_GENERIC_TIMEOUT, htonl(*timeout / HZ))) in generic_timeout_obj_to_nlattr()
Dnft_bitwise.c244 if (nla_put_be32(skb, NFTA_BITWISE_LEN, htonl(priv->len))) in nft_bitwise_dump()
246 if (nla_put_be32(skb, NFTA_BITWISE_OP, htonl(priv->op))) in nft_bitwise_dump()
405 if (nla_put_be32(skb, NFTA_BITWISE_LEN, htonl(sizeof(u32)))) in nft_bitwise_fast_dump()
407 if (nla_put_be32(skb, NFTA_BITWISE_OP, htonl(NFT_BITWISE_BOOL))) in nft_bitwise_fast_dump()
Dnf_conntrack_proto_udp.c249 if (nla_put_be32(skb, CTA_TIMEOUT_UDP_UNREPLIED, in udp_timeout_obj_to_nlattr()
251 nla_put_be32(skb, CTA_TIMEOUT_UDP_REPLIED, in udp_timeout_obj_to_nlattr()
Dnft_socket.c206 if (nla_put_be32(skb, NFTA_SOCKET_KEY, htonl(priv->key))) in nft_socket_dump()
211 nla_put_be32(skb, NFTA_SOCKET_LEVEL, htonl(priv->level))) in nft_socket_dump()
Dnft_cmp.c101 if (nla_put_be32(skb, NFTA_CMP_OP, htonl(priv->op))) in nft_cmp_dump()
264 if (nla_put_be32(skb, NFTA_CMP_OP, htonl(op))) in nft_cmp_fast_dump()
357 if (nla_put_be32(skb, NFTA_CMP_OP, htonl(op))) in nft_cmp16_fast_dump()
Dnft_limit.c122 nla_put_be32(skb, NFTA_LIMIT_BURST, htonl(priv->burst)) || in nft_limit_dump()
123 nla_put_be32(skb, NFTA_LIMIT_TYPE, htonl(type)) || in nft_limit_dump()
124 nla_put_be32(skb, NFTA_LIMIT_FLAGS, htonl(flags))) in nft_limit_dump()
Dnf_conntrack_proto_gre.c268 if (nla_put_be32(skb, CTA_TIMEOUT_GRE_UNREPLIED, in gre_timeout_obj_to_nlattr()
270 nla_put_be32(skb, CTA_TIMEOUT_GRE_REPLIED, in gre_timeout_obj_to_nlattr()
Dnft_xfrm.c222 if (nla_put_be32(skb, NFTA_XFRM_KEY, htonl(priv->key))) in nft_xfrm_get_dump()
226 if (nla_put_be32(skb, NFTA_XFRM_SPNUM, htonl(priv->spnum))) in nft_xfrm_get_dump()
Dnft_connlimit.c110 if (nla_put_be32(skb, NFTA_CONNLIMIT_COUNT, htonl(priv->limit))) in nft_connlimit_do_dump()
113 nla_put_be32(skb, NFTA_CONNLIMIT_FLAGS, htonl(NFT_CONNLIMIT_F_INV))) in nft_connlimit_do_dump()
Dnft_exthdr.c565 if (nla_put_be32(skb, NFTA_EXTHDR_OFFSET, htonl(priv->offset))) in nft_exthdr_dump_common()
567 if (nla_put_be32(skb, NFTA_EXTHDR_LEN, htonl(priv->len))) in nft_exthdr_dump_common()
569 if (nla_put_be32(skb, NFTA_EXTHDR_FLAGS, htonl(priv->flags))) in nft_exthdr_dump_common()
571 if (nla_put_be32(skb, NFTA_EXTHDR_OP, htonl(priv->op))) in nft_exthdr_dump_common()

123