Home
last modified time | relevance | path

Searched refs:nla_get_be32 (Results 1 – 45 of 45) sorted by relevance

/linux-4.1.27/net/netfilter/
Dnft_payload.c67 priv->base = ntohl(nla_get_be32(tb[NFTA_PAYLOAD_BASE])); in nft_payload_init()
68 priv->offset = ntohl(nla_get_be32(tb[NFTA_PAYLOAD_OFFSET])); in nft_payload_init()
69 priv->len = ntohl(nla_get_be32(tb[NFTA_PAYLOAD_LEN])); in nft_payload_init()
121 base = ntohl(nla_get_be32(tb[NFTA_PAYLOAD_BASE])); in nft_payload_select_ops()
131 offset = ntohl(nla_get_be32(tb[NFTA_PAYLOAD_OFFSET])); in nft_payload_select_ops()
132 len = ntohl(nla_get_be32(tb[NFTA_PAYLOAD_LEN])); in nft_payload_select_ops()
Dnfnetlink_cthelper.c145 ntohl(nla_get_be32(tb[NFCTH_POLICY_EXPECT_MAX])); in nfnl_cthelper_expect_policy()
147 ntohl(nla_get_be32(tb[NFCTH_POLICY_EXPECT_TIMEOUT])); in nfnl_cthelper_expect_policy()
174 ntohl(nla_get_be32(tb[NFCTH_POLICY_SET_NUM])); in nfnl_cthelper_parse_expect_policy()
220 helper->data_len = ntohl(nla_get_be32(tb[NFCTH_PRIV_DATA_LEN])); in nfnl_cthelper_create()
231 helper->queue_num = ntohl(nla_get_be32(tb[NFCTH_QUEUE_NUM])); in nfnl_cthelper_create()
234 int status = ntohl(nla_get_be32(tb[NFCTH_STATUS])); in nfnl_cthelper_create()
272 helper->queue_num = ntohl(nla_get_be32(tb[NFCTH_QUEUE_NUM])); in nfnl_cthelper_update()
275 int status = ntohl(nla_get_be32(tb[NFCTH_STATUS])); in nfnl_cthelper_update()
Dnft_byteorder.c91 priv->op = ntohl(nla_get_be32(tb[NFTA_BYTEORDER_OP])); in nft_byteorder_init()
100 priv->size = ntohl(nla_get_be32(tb[NFTA_BYTEORDER_SIZE])); in nft_byteorder_init()
110 priv->len = ntohl(nla_get_be32(tb[NFTA_BYTEORDER_LEN])); in nft_byteorder_init()
Dnft_log.c79 ntohl(nla_get_be32(tb[NFTA_LOG_LEVEL])); in nft_log_init()
85 ntohl(nla_get_be32(tb[NFTA_LOG_FLAGS])); in nft_log_init()
92 ntohl(nla_get_be32(tb[NFTA_LOG_SNAPLEN])); in nft_log_init()
Dnft_exthdr.c70 priv->offset = ntohl(nla_get_be32(tb[NFTA_EXTHDR_OFFSET])); in nft_exthdr_init()
71 priv->len = ntohl(nla_get_be32(tb[NFTA_EXTHDR_LEN])); in nft_exthdr_init()
Dnft_nat.c130 switch (ntohl(nla_get_be32(tb[NFTA_NAT_TYPE]))) { in nft_nat_init()
148 family = ntohl(nla_get_be32(tb[NFTA_NAT_FAMILY])); in nft_nat_init()
207 priv->flags = ntohl(nla_get_be32(tb[NFTA_NAT_FLAGS])); in nft_nat_init()
Dnf_conntrack_netlink.c769 filter->mark.val = ntohl(nla_get_be32(cda[CTA_MARK])); in ctnetlink_alloc_filter()
770 filter->mark.mask = ntohl(nla_get_be32(cda[CTA_MARK_MASK])); in ctnetlink_alloc_filter()
1088 u_int32_t id = ntohl(nla_get_be32(cda[CTA_ID])); in ctnetlink_del_conntrack()
1352 unsigned int status = ntohl(nla_get_be32(cda[CTA_STATUS])); in ctnetlink_change_status()
1462 u_int32_t timeout = ntohl(nla_get_be32(cda[CTA_TIMEOUT])); in ctnetlink_change_timeout()
1520 ntohl(nla_get_be32(cda[CTA_SEQADJ_CORRECTION_POS])); in change_seq_adj()
1526 ntohl(nla_get_be32(cda[CTA_SEQADJ_OFFSET_BEFORE])); in change_seq_adj()
1532 ntohl(nla_get_be32(cda[CTA_SEQADJ_OFFSET_AFTER])); in change_seq_adj()
1629 ct->mark = ntohl(nla_get_be32(cda[CTA_MARK])); in ctnetlink_change_conntrack()
1665 ct->timeout.expires = ntohl(nla_get_be32(cda[CTA_TIMEOUT])); in ctnetlink_create_conntrack()
[all …]
Dnft_cmp.c87 priv->op = ntohl(nla_get_be32(tb[NFTA_CMP_OP])); in nft_cmp_init()
187 op = ntohl(nla_get_be32(tb[NFTA_CMP_OP])); in nft_cmp_select_ops()
Dnft_compat.c195 flags = ntohl(nla_get_be32(tb[NFTA_RULE_COMPAT_FLAGS])); in nft_parse_compat()
201 *proto = ntohl(nla_get_be32(tb[NFTA_RULE_COMPAT_PROTO])); in nft_parse_compat()
537 rev = ntohl(nla_get_be32(tb[NFTA_COMPAT_REV])); in nfnl_compat_get()
538 target = ntohl(nla_get_be32(tb[NFTA_COMPAT_TYPE])); in nfnl_compat_get()
642 rev = ntohl(nla_get_be32(tb[NFTA_MATCH_REV])); in nft_match_select_ops()
722 rev = ntohl(nla_get_be32(tb[NFTA_TARGET_REV])); in nft_target_select_ops()
Dnf_conntrack_proto_tcp.c1310 ntohl(nla_get_be32(tb[CTA_TIMEOUT_TCP_SYN_SENT]))*HZ; in tcp_timeout_nlattr_to_obj()
1314 ntohl(nla_get_be32(tb[CTA_TIMEOUT_TCP_SYN_RECV]))*HZ; in tcp_timeout_nlattr_to_obj()
1318 ntohl(nla_get_be32(tb[CTA_TIMEOUT_TCP_ESTABLISHED]))*HZ; in tcp_timeout_nlattr_to_obj()
1322 ntohl(nla_get_be32(tb[CTA_TIMEOUT_TCP_FIN_WAIT]))*HZ; in tcp_timeout_nlattr_to_obj()
1326 ntohl(nla_get_be32(tb[CTA_TIMEOUT_TCP_CLOSE_WAIT]))*HZ; in tcp_timeout_nlattr_to_obj()
1330 ntohl(nla_get_be32(tb[CTA_TIMEOUT_TCP_LAST_ACK]))*HZ; in tcp_timeout_nlattr_to_obj()
1334 ntohl(nla_get_be32(tb[CTA_TIMEOUT_TCP_TIME_WAIT]))*HZ; in tcp_timeout_nlattr_to_obj()
1338 ntohl(nla_get_be32(tb[CTA_TIMEOUT_TCP_CLOSE]))*HZ; in tcp_timeout_nlattr_to_obj()
1342 ntohl(nla_get_be32(tb[CTA_TIMEOUT_TCP_SYN_SENT2]))*HZ; in tcp_timeout_nlattr_to_obj()
1346 ntohl(nla_get_be32(tb[CTA_TIMEOUT_TCP_RETRANS]))*HZ; in tcp_timeout_nlattr_to_obj()
[all …]
Dnft_masq.c53 priv->flags = ntohl(nla_get_be32(tb[NFTA_MASQ_FLAGS])); in nft_masq_init()
Dnft_reject.c38 priv->type = ntohl(nla_get_be32(tb[NFTA_REJECT_TYPE])); in nft_reject_init()
Dnfnetlink_acct.c94 flags = ntohl(nla_get_be32(tb[NFACCT_FLAGS])); in nfnl_acct_new()
250 filter->mask = ntohl(nla_get_be32(tb[NFACCT_FILTER_MASK])); in nfacct_filter_alloc()
251 filter->value = ntohl(nla_get_be32(tb[NFACCT_FILTER_VALUE])); in nfacct_filter_alloc()
Dnft_redir.c77 priv->flags = ntohl(nla_get_be32(tb[NFTA_REDIR_FLAGS])); in nft_redir_init()
Dnf_conntrack_proto_udp.c172 ntohl(nla_get_be32(tb[CTA_TIMEOUT_UDP_UNREPLIED])) * HZ; in udp_timeout_nlattr_to_obj()
176 ntohl(nla_get_be32(tb[CTA_TIMEOUT_UDP_REPLIED])) * HZ; in udp_timeout_nlattr_to_obj()
Dnft_meta.c223 priv->key = ntohl(nla_get_be32(tb[NFTA_META_KEY])); in nft_meta_get_init()
274 priv->key = ntohl(nla_get_be32(tb[NFTA_META_KEY])); in nft_meta_set_init()
Dnf_conntrack_proto_udplite.c187 ntohl(nla_get_be32(tb[CTA_TIMEOUT_UDPLITE_UNREPLIED])) * HZ; in udplite_timeout_nlattr_to_obj()
191 ntohl(nla_get_be32(tb[CTA_TIMEOUT_UDPLITE_REPLIED])) * HZ; in udplite_timeout_nlattr_to_obj()
Dnft_reject_inet.c75 priv->type = ntohl(nla_get_be32(tb[NFTA_REJECT_TYPE])); in nft_reject_inet_init()
Dnft_ct.c230 priv->key = ntohl(nla_get_be32(tb[NFTA_CT_KEY])); in nft_ct_get_init()
330 priv->key = ntohl(nla_get_be32(tb[NFTA_CT_KEY])); in nft_ct_set_init()
Dnf_conntrack_proto_gre.c319 ntohl(nla_get_be32(tb[CTA_TIMEOUT_GRE_UNREPLIED])) * HZ; in gre_timeout_nlattr_to_obj()
323 ntohl(nla_get_be32(tb[CTA_TIMEOUT_GRE_REPLIED])) * HZ; in gre_timeout_nlattr_to_obj()
Dnf_tables_api.c300 ntohl(nla_get_be32(ctx->nla[NFTA_SET_ID])); in nft_trans_set_add()
604 flags = ntohl(nla_get_be32(ctx->nla[NFTA_TABLE_FLAGS])); in nf_tables_updtable()
677 flags = ntohl(nla_get_be32(nla[NFTA_TABLE_FLAGS])); in nf_tables_newtable()
1233 policy = ntohl(nla_get_be32(nla[NFTA_CHAIN_POLICY])); in nf_tables_newchain()
1317 hooknum = ntohl(nla_get_be32(ha[NFTA_HOOK_HOOKNUM])); in nf_tables_newchain()
1320 priority = ntohl(nla_get_be32(ha[NFTA_HOOK_PRIORITY])); in nf_tables_newchain()
2207 features = ntohl(nla_get_be32(nla[NFTA_SET_FLAGS])); in nft_select_set_ops()
2323 u32 id = ntohl(nla_get_be32(nla)); in nf_tables_set_lookup_byid()
2617 desc->size = ntohl(nla_get_be32(da[NFTA_SET_DESC_SIZE])); in nf_tables_set_desc_parse()
2651 ktype = ntohl(nla_get_be32(nla[NFTA_SET_KEY_TYPE])); in nf_tables_newset()
[all …]
Dnft_bitwise.c64 priv->len = ntohl(nla_get_be32(tb[NFTA_BITWISE_LEN])); in nft_bitwise_init()
Dnf_conntrack_proto_generic.c109 ntohl(nla_get_be32(tb[CTA_TIMEOUT_GENERIC_TIMEOUT])) * HZ; in generic_timeout_nlattr_to_obj()
Dnf_conntrack_proto_sctp.c548 nla_get_be32(tb[CTA_PROTOINFO_SCTP_VTAG_ORIGINAL]); in nlattr_to_sctp()
550 nla_get_be32(tb[CTA_PROTOINFO_SCTP_VTAG_REPLY]); in nlattr_to_sctp()
582 timeouts[i] = ntohl(nla_get_be32(tb[i])) * HZ; in sctp_timeout_nlattr_to_obj()
Dnfnetlink_queue_core.c972 entry->skb->mark = ntohl(nla_get_be32(nfqa[NFQA_MARK])); in nfqnl_recv_verdict_batch()
1035 entry->skb->mark = ntohl(nla_get_be32(nfqa[NFQA_MARK])); in nfqnl_recv_verdict()
1160 flags = ntohl(nla_get_be32(nfqa[NFQA_CFG_FLAGS])); in nfqnl_recv_config()
1161 mask = ntohl(nla_get_be32(nfqa[NFQA_CFG_MASK])); in nfqnl_recv_config()
Dnfnetlink_log.c874 __be32 timeout = nla_get_be32(nfula[NFULA_CFG_TIMEOUT]); in nfulnl_recv_config()
884 __be32 nlbufsiz = nla_get_be32(nfula[NFULA_CFG_NLBUFSIZ]); in nfulnl_recv_config()
894 __be32 qthresh = nla_get_be32(nfula[NFULA_CFG_QTHRESH]); in nfulnl_recv_config()
Dnft_dynset.c126 priv->op = ntohl(nla_get_be32(tb[NFTA_DYNSET_OP])); in nft_dynset_init()
Dnf_conntrack_proto_dccp.c730 timeouts[i] = ntohl(nla_get_be32(tb[i])) * HZ; in dccp_timeout_nlattr_to_obj()
/linux-4.1.27/net/bridge/netfilter/
Dnft_meta_bridge.c58 priv->key = ntohl(nla_get_be32(tb[NFTA_META_KEY])); in nft_meta_bridge_get_init()
Dnft_reject_bridge.c338 priv->type = ntohl(nla_get_be32(tb[NFTA_REJECT_TYPE])); in nft_reject_bridge_init()
/linux-4.1.27/net/ipv4/netfilter/
Dnf_nat_l3proto_ipv4.c162 range->min_addr.ip = nla_get_be32(tb[CTA_NAT_V4_MINIP]); in nf_nat_ipv4_nlattr_to_range()
167 range->max_addr.ip = nla_get_be32(tb[CTA_NAT_V4_MAXIP]); in nf_nat_ipv4_nlattr_to_range()
Dnf_conntrack_proto_icmp.c291 ntohl(nla_get_be32(tb[CTA_TIMEOUT_ICMP_TIMEOUT])) * HZ; in icmp_timeout_nlattr_to_obj()
/linux-4.1.27/net/ipv4/
Dip_vti.c459 parms->i_key = nla_get_be32(data[IFLA_VTI_IKEY]); in vti_netlink_parms()
462 parms->o_key = nla_get_be32(data[IFLA_VTI_OKEY]); in vti_netlink_parms()
Dip_gre.c619 parms->i_key = nla_get_be32(data[IFLA_GRE_IKEY]); in ipgre_netlink_parms()
622 parms->o_key = nla_get_be32(data[IFLA_GRE_OKEY]); in ipgre_netlink_parms()
Dfib_frontend.c631 cfg->fc_dst = nla_get_be32(attr); in rtm_to_fib_config()
637 cfg->fc_gw = nla_get_be32(attr); in rtm_to_fib_config()
643 cfg->fc_prefsrc = nla_get_be32(attr); in rtm_to_fib_config()
/linux-4.1.27/net/ipv6/netfilter/
Dnf_conntrack_proto_icmpv6.c298 ntohl(nla_get_be32(tb[CTA_TIMEOUT_ICMPV6_TIMEOUT])) * HZ; in icmpv6_timeout_nlattr_to_obj()
/linux-4.1.27/net/ipv6/
Dip6_vti.c925 parms->i_key = nla_get_be32(data[IFLA_VTI_IKEY]); in vti6_netlink_parms()
928 parms->o_key = nla_get_be32(data[IFLA_VTI_OKEY]); in vti6_netlink_parms()
Dsit.c1446 parms->iph.saddr = nla_get_be32(data[IFLA_IPTUN_LOCAL]); in ipip6_netlink_parms()
1449 parms->iph.daddr = nla_get_be32(data[IFLA_IPTUN_REMOTE]); in ipip6_netlink_parms()
1524 nla_get_be32(data[IFLA_IPTUN_6RD_RELAY_PREFIX]); in ipip6_netlink_6rd_parms()
Dip6_gre.c1435 parms->i_key = nla_get_be32(data[IFLA_GRE_IKEY]); in ip6gre_netlink_parms()
1438 parms->o_key = nla_get_be32(data[IFLA_GRE_OKEY]); in ip6gre_netlink_parms()
Dip6_tunnel.c1661 parms->flowinfo = nla_get_be32(data[IFLA_IPTUN_FLOWINFO]); in ip6_tnl_netlink_parms()
/linux-4.1.27/include/linux/netfilter/ipset/
Dip_set.h467 return ntohl(nla_get_be32(attr)); in ip_set_get_h32()
/linux-4.1.27/include/net/
Dnetlink.h1001 static inline __be32 nla_get_be32(const struct nlattr *nla) in nla_get_be32() function
/linux-4.1.27/drivers/net/bonding/
Dbond_netlink.c233 target = nla_get_be32(attr); in bond_changelink()
/linux-4.1.27/net/netfilter/ipset/
Dip_set_core.c301 *ipaddr = nla_get_be32(tb[IPSET_ATTR_IPADDR_IPV4]); in ip_set_get_ipaddr4()
422 ext->skbprio = be32_to_cpu(nla_get_be32( in ip_set_get_extensions()
/linux-4.1.27/net/netfilter/ipvs/
Dip_vs_ctl.c3095 usvc->netmask = nla_get_be32(nla_netmask); in ip_vs_genl_parse_service()