Home
last modified time | relevance | path

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

123

/openbmc/linux/net/netfilter/
H A 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()
H A 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()
238 if (nla_put_be32(skb, NFTA_TRACE_NFPROTO, htonl(nft_pf(pkt)))) in nft_trace_notify()
241 if (nla_put_be32(skb, NFTA_TRACE_TYPE, htonl(info->type))) in nft_trace_notify()
275 if (nla_put_be32(skb, NFTA_TRACE_POLICY, in nft_trace_notify()
281 if (mark && nla_put_be32(skb, NFTA_TRACE_MARK, htonl(mark))) in nft_trace_notify()
H A Dnfnetlink_log.c493 if (nla_put_be32(inst->skb, NFULA_IFINDEX_INDEV, in __build_packet_message()
501 if (nla_put_be32(inst->skb, NFULA_IFINDEX_PHYSINDEV, in __build_packet_message()
507 nla_put_be32(inst->skb, NFULA_IFINDEX_INDEV, in __build_packet_message()
515 if (nla_put_be32(inst->skb, NFULA_IFINDEX_INDEV, in __build_packet_message()
521 nla_put_be32(inst->skb, NFULA_IFINDEX_PHYSINDEV, in __build_packet_message()
530 if (nla_put_be32(inst->skb, NFULA_IFINDEX_OUTDEV, in __build_packet_message()
544 nla_put_be32(inst->skb, NFULA_IFINDEX_OUTDEV, in __build_packet_message()
552 if (nla_put_be32(inst->skb, NFULA_IFINDEX_OUTDEV, in __build_packet_message()
622 if (nla_put_be32(inst->skb, NFULA_UID, uid) || in __build_packet_message()
623 nla_put_be32(inst->skb, NFULA_GID, gid)) in __build_packet_message()
[all …]
H A Dnfnetlink_queue.c293 if (nla_put_be32(skb, NFQA_UID, in nfqnl_put_sk_uidgid()
296 if (nla_put_be32(skb, NFQA_GID, in nfqnl_put_sk_uidgid()
522 if (nla_put_be32(skb, NFQA_IFINDEX_PHYSINDEV, in nfqnl_build_packet_message()
526 nla_put_be32(skb, NFQA_IFINDEX_INDEV, in nfqnl_build_packet_message()
534 if (nla_put_be32(skb, NFQA_IFINDEX_INDEV, in nfqnl_build_packet_message()
540 nla_put_be32(skb, NFQA_IFINDEX_PHYSINDEV, in nfqnl_build_packet_message()
556 if (nla_put_be32(skb, NFQA_IFINDEX_PHYSOUTDEV, in nfqnl_build_packet_message()
560 nla_put_be32(skb, NFQA_IFINDEX_OUTDEV, in nfqnl_build_packet_message()
568 if (nla_put_be32(skb, NFQA_IFINDEX_OUTDEV, in nfqnl_build_packet_message()
574 nla_put_be32(skb, NFQA_IFINDEX_PHYSOUTDEV, in nfqnl_build_packet_message()
[all …]
H A Dnft_byteorder.c161 if (nla_put_be32(skb, NFTA_BYTEORDER_OP, htonl(priv->op))) in nft_byteorder_dump()
163 if (nla_put_be32(skb, NFTA_BYTEORDER_LEN, htonl(priv->len))) in nft_byteorder_dump()
165 if (nla_put_be32(skb, NFTA_BYTEORDER_SIZE, htonl(priv->size))) in nft_byteorder_dump()
H A Dnft_inner.c356 if (nla_put_be32(skb, NFTA_INNER_NUM, htonl(0)) || in nft_inner_dump()
357 nla_put_be32(skb, NFTA_INNER_TYPE, htonl(priv->type)) || in nft_inner_dump()
358 nla_put_be32(skb, NFTA_INNER_FLAGS, htonl(priv->flags)) || in nft_inner_dump()
359 nla_put_be32(skb, NFTA_INNER_HDRSIZE, htonl(priv->hdrsize))) in nft_inner_dump()
H A 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()
H A Dnft_nat.c268 if (nla_put_be32(skb, NFTA_NAT_TYPE, htonl(NFT_NAT_SNAT))) in nft_nat_dump()
272 if (nla_put_be32(skb, NFTA_NAT_TYPE, htonl(NFT_NAT_DNAT))) in nft_nat_dump()
277 if (nla_put_be32(skb, NFTA_NAT_FAMILY, htonl(priv->family))) in nft_nat_dump()
297 if (nla_put_be32(skb, NFTA_NAT_FLAGS, htonl(priv->flags))) in nft_nat_dump()
H A Dnf_conntrack_netlink.c168 if (nla_put_be32(skb, CTA_STATUS, htonl(ct->status))) in ctnetlink_dump_status()
189 if (nla_put_be32(skb, CTA_TIMEOUT, htonl(timeout))) in ctnetlink_dump_timeout()
344 if (nla_put_be32(skb, CTA_MARK, htonl(mark))) in ctnetlink_dump_mark()
446 if (nla_put_be32(skb, CTA_SEQADJ_CORRECTION_POS, in dump_ct_seq_adj()
448 nla_put_be32(skb, CTA_SEQADJ_OFFSET_BEFORE, in dump_ct_seq_adj()
450 nla_put_be32(skb, CTA_SEQADJ_OFFSET_AFTER, in dump_ct_seq_adj()
515 if (nla_put_be32(skb, CTA_ID, id)) in ctnetlink_dump_id()
2499 nla_put_be32(skb, CTA_STATS_INSERT_FAILED, in ctnetlink_ct_stat_cpu_fill_info()
2504 nla_put_be32(skb, CTA_STATS_SEARCH_RESTART, in ctnetlink_ct_stat_cpu_fill_info()
2506 nla_put_be32(skb, CTA_STATS_CLASH_RESOLVE, in ctnetlink_ct_stat_cpu_fill_info()
[all …]
H A 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()
H A Dnfnetlink_hook.c69 ret = nla_put_be32(nlskb, NFNLA_HOOK_INFO_TYPE, htonl(t)); in nfnl_start_info_type()
99 ret = nla_put_be32(nlskb, NFNLA_HOOK_BPF_ID, htonl(prog->aux->id)); in nfnl_hook_put_bpf_prog_info()
208 ret = nla_put_be32(nlskb, NFNLA_HOOK_HOOKNUM, htonl(hooknum)); in nfnl_hook_dump_one()
212 ret = nla_put_be32(nlskb, NFNLA_HOOK_PRIORITY, htonl(ops->priority)); in nfnl_hook_dump_one()
H A Dnft_payload.c243 nla_put_be32(skb, NFTA_PAYLOAD_BASE, htonl(priv->base)) || in nft_payload_dump()
244 nla_put_be32(skb, NFTA_PAYLOAD_OFFSET, htonl(priv->offset)) || in nft_payload_dump()
245 nla_put_be32(skb, NFTA_PAYLOAD_LEN, htonl(priv->len))) in nft_payload_dump()
997 nla_put_be32(skb, NFTA_PAYLOAD_BASE, htonl(priv->base)) || in nft_payload_set_dump()
998 nla_put_be32(skb, NFTA_PAYLOAD_OFFSET, htonl(priv->offset)) || in nft_payload_set_dump()
999 nla_put_be32(skb, NFTA_PAYLOAD_LEN, htonl(priv->len)) || in nft_payload_set_dump()
1000 nla_put_be32(skb, NFTA_PAYLOAD_CSUM_TYPE, htonl(priv->csum_type)) || in nft_payload_set_dump()
1001 nla_put_be32(skb, NFTA_PAYLOAD_CSUM_OFFSET, in nft_payload_set_dump()
1003 nla_put_be32(skb, NFTA_PAYLOAD_CSUM_FLAGS, htonl(priv->csum_flags))) in nft_payload_set_dump()
H A 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()
H A Dnf_conntrack_proto_tcp.c1536 if (nla_put_be32(skb, CTA_TIMEOUT_TCP_SYN_SENT, in tcp_timeout_obj_to_nlattr()
1538 nla_put_be32(skb, CTA_TIMEOUT_TCP_SYN_RECV, in tcp_timeout_obj_to_nlattr()
1540 nla_put_be32(skb, CTA_TIMEOUT_TCP_ESTABLISHED, in tcp_timeout_obj_to_nlattr()
1542 nla_put_be32(skb, CTA_TIMEOUT_TCP_FIN_WAIT, in tcp_timeout_obj_to_nlattr()
1544 nla_put_be32(skb, CTA_TIMEOUT_TCP_CLOSE_WAIT, in tcp_timeout_obj_to_nlattr()
1546 nla_put_be32(skb, CTA_TIMEOUT_TCP_LAST_ACK, in tcp_timeout_obj_to_nlattr()
1548 nla_put_be32(skb, CTA_TIMEOUT_TCP_TIME_WAIT, in tcp_timeout_obj_to_nlattr()
1550 nla_put_be32(skb, CTA_TIMEOUT_TCP_CLOSE, in tcp_timeout_obj_to_nlattr()
1552 nla_put_be32(skb, CTA_TIMEOUT_TCP_SYN_SENT2, in tcp_timeout_obj_to_nlattr()
1554 nla_put_be32(skb, CTA_TIMEOUT_TCP_RETRANS, in tcp_timeout_obj_to_nlattr()
[all …]
H A Dnft_fib.c127 if (nla_put_be32(skb, NFTA_FIB_RESULT, htonl(priv->result))) in nft_fib_dump()
130 if (nla_put_be32(skb, NFTA_FIB_FLAGS, htonl(priv->flags))) in nft_fib_dump()
H A Dnft_log.c255 if (nla_put_be32(skb, NFTA_LOG_LEVEL, htonl(li->u.log.level))) in nft_log_dump()
259 if (nla_put_be32(skb, NFTA_LOG_FLAGS, in nft_log_dump()
269 if (nla_put_be32(skb, NFTA_LOG_SNAPLEN, in nft_log_dump()
H A Dnf_conntrack_proto_generic.c45 if (nla_put_be32(skb, CTA_TIMEOUT_GENERIC_TIMEOUT, htonl(*timeout / HZ))) in generic_timeout_obj_to_nlattr()
H A Dnft_bitwise.c245 if (nla_put_be32(skb, NFTA_BITWISE_LEN, htonl(priv->len))) in nft_bitwise_dump()
247 if (nla_put_be32(skb, NFTA_BITWISE_OP, htonl(priv->op))) in nft_bitwise_dump()
407 if (nla_put_be32(skb, NFTA_BITWISE_LEN, htonl(sizeof(u32)))) in nft_bitwise_fast_dump()
409 if (nla_put_be32(skb, NFTA_BITWISE_OP, htonl(NFT_BITWISE_BOOL))) in nft_bitwise_fast_dump()
H A Dnf_conntrack_proto_udp.c251 if (nla_put_be32(skb, CTA_TIMEOUT_UDP_UNREPLIED, in udp_timeout_obj_to_nlattr()
253 nla_put_be32(skb, CTA_TIMEOUT_UDP_REPLIED, in udp_timeout_obj_to_nlattr()
H A Dnft_cmp.c102 if (nla_put_be32(skb, NFTA_CMP_OP, htonl(priv->op))) in nft_cmp_dump()
266 if (nla_put_be32(skb, NFTA_CMP_OP, htonl(op))) in nft_cmp_fast_dump()
360 if (nla_put_be32(skb, NFTA_CMP_OP, htonl(op))) in nft_cmp16_fast_dump()
H A Dnft_limit.c136 nla_put_be32(skb, NFTA_LIMIT_BURST, htonl(priv->burst)) || in nft_limit_dump()
137 nla_put_be32(skb, NFTA_LIMIT_TYPE, htonl(type)) || in nft_limit_dump()
138 nla_put_be32(skb, NFTA_LIMIT_FLAGS, htonl(flags))) in nft_limit_dump()
H A 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()
H A 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()
H A Dnf_conntrack_proto_gre.c276 if (nla_put_be32(skb, CTA_TIMEOUT_GRE_UNREPLIED, in gre_timeout_obj_to_nlattr()
278 nla_put_be32(skb, CTA_TIMEOUT_GRE_REPLIED, in gre_timeout_obj_to_nlattr()
H A Dnft_socket.c242 if (nla_put_be32(skb, NFTA_SOCKET_KEY, htonl(priv->key))) in nft_socket_dump()
247 nla_put_be32(skb, NFTA_SOCKET_LEVEL, htonl(priv->level_user))) in nft_socket_dump()

123