Home
last modified time | relevance | path

Searched refs:nla_get_be16 (Results 1 – 25 of 44) sorted by relevance

12

/OK3568_Linux_fs/kernel/net/netfilter/
H A Dnft_queue.c85 priv->queuenum = ntohs(nla_get_be16(tb[NFTA_QUEUE_NUM])); in nft_queue_init()
88 priv->queues_total = ntohs(nla_get_be16(tb[NFTA_QUEUE_TOTAL])); in nft_queue_init()
100 priv->flags = ntohs(nla_get_be16(tb[NFTA_QUEUE_FLAGS])); in nft_queue_init()
120 priv->flags = ntohs(nla_get_be16(tb[NFTA_QUEUE_FLAGS])); in nft_queue_sreg_init()
H A Dnft_log.c183 li->u.ulog.group = ntohs(nla_get_be16(tb[NFTA_LOG_GROUP])); in nft_log_init()
191 ntohs(nla_get_be16(tb[NFTA_LOG_QTHRESHOLD])); in nft_log_init()
H A Dnft_tunnel.c339 opt->opt_class = nla_get_be16(tb[NFTA_TUNNEL_KEY_GENEVE_CLASS]); in nft_tunnel_obj_geneve_init()
443 info.key.tp_src = nla_get_be16(tb[NFTA_TUNNEL_KEY_SPORT]); in nft_tunnel_obj_init()
446 info.key.tp_dst = nla_get_be16(tb[NFTA_TUNNEL_KEY_DPORT]); in nft_tunnel_obj_init()
H A Dnft_ct.c880 l3num = ntohs(nla_get_be16(tb[NFTA_CT_TIMEOUT_L3PROTO])); in nft_ct_timeout_obj_init()
1000 family = ntohs(nla_get_be16(tb[NFTA_CT_HELPER_L3PROTO])); in nft_ct_helper_obj_init()
1183 priv->l3num = ntohs(nla_get_be16(tb[NFTA_CT_EXPECT_L3PROTO])); in nft_ct_expect_obj_init()
1186 priv->dport = nla_get_be16(tb[NFTA_CT_EXPECT_DPORT]); in nft_ct_expect_obj_init()
H A Dnfnetlink_cttimeout.c94 l3num = ntohs(nla_get_be16(cda[CTA_TIMEOUT_L3PROTO])); in cttimeout_new_timeout()
429 l3num = ntohs(nla_get_be16(cda[CTA_TIMEOUT_L3PROTO])); in cttimeout_default_get()
H A Dnf_conntrack_proto_icmpv6.c223 tuple->src.u.icmp.id = nla_get_be16(tb[CTA_PROTO_ICMPV6_ID]); in icmpv6_nlattr_to_tuple()
H A Dnf_conntrack_proto_icmp.c300 tuple->src.u.icmp.id = nla_get_be16(tb[CTA_PROTO_ICMP_ID]); in icmp_nlattr_to_tuple()
H A Dnft_synproxy.c161 priv->info.mss = ntohs(nla_get_be16(tb[NFTA_SYNPROXY_MSS])); in nft_synproxy_do_init()
H A Dnf_nat_core.c872 range->min_proto.all = nla_get_be16(tb[CTA_PROTONAT_PORT_MIN]); in nf_nat_l4proto_nlattr_to_range()
877 range->max_proto.all = nla_get_be16(tb[CTA_PROTONAT_PORT_MAX]); in nf_nat_l4proto_nlattr_to_range()
/OK3568_Linux_fs/kernel/net/sched/
H A Dact_mpls.c193 if (!eth_proto_is_802_3(nla_get_be16(tb[TCA_MPLS_PROTO]))) { in tcf_mpls_init()
217 !eth_p_mpls(nla_get_be16(tb[TCA_MPLS_PROTO]))) { in tcf_mpls_init()
284 p->tcfm_proto = tb[TCA_MPLS_PROTO] ? nla_get_be16(tb[TCA_MPLS_PROTO]) : in tcf_mpls_init()
H A Dact_tunnel_key.c125 nla_get_be16(tb[TCA_TUNNEL_KEY_ENC_OPT_GENEVE_CLASS]); in tunnel_key_copy_geneve_opt()
423 dst_port = nla_get_be16(tb[TCA_TUNNEL_KEY_ENC_DST_PORT]); in tunnel_key_init()
H A Dact_vlan.c177 push_proto = nla_get_be16(tb[TCA_VLAN_PUSH_VLAN_PROTOCOL]); in tcf_vlan_init()
/OK3568_Linux_fs/kernel/net/8021q/
H A Dvlan_netlink.c63 switch (nla_get_be16(data[IFLA_VLAN_PROTOCOL])) { in vlan_validate()
163 proto = nla_get_be16(data[IFLA_VLAN_PROTOCOL]); in vlan_newlink()
/OK3568_Linux_fs/kernel/net/ipv4/
H A Dip_gre.c1046 flags |= nla_get_be16(data[IFLA_GRE_IFLAGS]); in ipgre_tunnel_validate()
1048 flags |= nla_get_be16(data[IFLA_GRE_OFLAGS]); in ipgre_tunnel_validate()
1104 flags |= nla_get_be16(data[IFLA_GRE_OFLAGS]); in erspan_validate()
1106 flags |= nla_get_be16(data[IFLA_GRE_IFLAGS]); in erspan_validate()
1144 parms->i_flags = gre_flags_to_tnl_flags(nla_get_be16(data[IFLA_GRE_IFLAGS])); in ipgre_netlink_parms()
1147 parms->o_flags = gre_flags_to_tnl_flags(nla_get_be16(data[IFLA_GRE_OFLAGS])); in ipgre_netlink_parms()
1259 ipencap->sport = nla_get_be16(data[IFLA_GRE_ENCAP_SPORT]); in ipgre_netlink_encap_parms()
1264 ipencap->dport = nla_get_be16(data[IFLA_GRE_ENCAP_DPORT]); in ipgre_netlink_encap_parms()
H A Dipip.c472 ipencap->sport = nla_get_be16(data[IFLA_IPTUN_ENCAP_SPORT]); in ipip_netlink_encap_parms()
477 ipencap->dport = nla_get_be16(data[IFLA_IPTUN_ENCAP_DPORT]); in ipip_netlink_encap_parms()
H A Dip_tunnel_core.c506 opt->opt_class = nla_get_be16(attr); in ip_tun_parse_opts_geneve()
718 (nla_get_be16(tb[LWTUNNEL_IP_FLAGS]) & in ip_tun_build_state()
997 (nla_get_be16(tb[LWTUNNEL_IP6_FLAGS]) & in ip6_tun_build_state()
H A Dfou.c700 port = nla_get_be16(info->attrs[FOU_ATTR_PORT]); in parse_nl_config()
743 port = nla_get_be16(info->attrs[FOU_ATTR_PEER_PORT]); in parse_nl_config()
/OK3568_Linux_fs/kernel/net/netfilter/ipset/
H A Dip_set_hash_ipport.c131 e.port = nla_get_be16(tb[IPSET_ATTR_PORT]); in hash_ipport4_uadt()
300 e.port = nla_get_be16(tb[IPSET_ATTR_PORT]); in hash_ipport6_uadt()
H A Dip_set_hash_ipportip.c138 e.port = nla_get_be16(tb[IPSET_ATTR_PORT]); in hash_ipportip4_uadt()
315 e.port = nla_get_be16(tb[IPSET_ATTR_PORT]); in hash_ipportip6_uadt()
H A Dip_set_hash_netport.c190 e.port = nla_get_be16(tb[IPSET_ATTR_PORT]); in hash_netport4_uadt()
417 e.port = nla_get_be16(tb[IPSET_ATTR_PORT]); in hash_netport6_uadt()
H A Dip_set_hash_ipportnet.c200 e.port = nla_get_be16(tb[IPSET_ATTR_PORT]); in hash_ipportnet4_uadt()
463 e.port = nla_get_be16(tb[IPSET_ATTR_PORT]); in hash_ipportnet6_uadt()
H A Dip_set_hash_netportnet.c223 e.port = nla_get_be16(tb[IPSET_ATTR_PORT]); in hash_netportnet4_uadt()
519 e.port = nla_get_be16(tb[IPSET_ATTR_PORT]); in hash_netportnet6_uadt()
/OK3568_Linux_fs/kernel/net/ipv6/
H A Dip6_gre.c1663 flags |= nla_get_be16(data[IFLA_GRE_IFLAGS]); in ip6gre_tunnel_validate()
1665 flags |= nla_get_be16(data[IFLA_GRE_OFLAGS]); in ip6gre_tunnel_validate()
1712 flags |= nla_get_be16(data[IFLA_GRE_OFLAGS]); in ip6erspan_tap_validate()
1714 flags |= nla_get_be16(data[IFLA_GRE_IFLAGS]); in ip6erspan_tap_validate()
1796 nla_get_be16(data[IFLA_GRE_IFLAGS])); in ip6gre_netlink_parms()
1800 nla_get_be16(data[IFLA_GRE_OFLAGS])); in ip6gre_netlink_parms()
1963 ipencap->sport = nla_get_be16(data[IFLA_GRE_ENCAP_SPORT]); in ip6gre_netlink_encap_parms()
1968 ipencap->dport = nla_get_be16(data[IFLA_GRE_ENCAP_DPORT]); in ip6gre_netlink_encap_parms()
/OK3568_Linux_fs/kernel/net/openvswitch/
H A Dflow_netlink.c726 nla_get_be16(a), is_mask); in ip_tun_from_nlattr()
730 nla_get_be16(a), is_mask); in ip_tun_from_nlattr()
970 tci = nla_get_be16(a[OVS_KEY_ATTR_VLAN]); in encode_vlan_from_nlattrs()
973 tpid = nla_get_be16(a[OVS_KEY_ATTR_ETHERTYPE]); in encode_vlan_from_nlattrs()
993 eth_type_vlan(nla_get_be16(a[OVS_KEY_ATTR_ETHERTYPE])))) { in validate_vlan_from_nlattrs()
1005 tci = nla_get_be16(a[OVS_KEY_ATTR_VLAN]); in validate_vlan_from_nlattrs()
1046 tci = nla_get_be16(a[OVS_KEY_ATTR_VLAN]); in validate_vlan_mask_from_nlattrs()
1049 tpid = nla_get_be16(a[OVS_KEY_ATTR_ETHERTYPE]); in validate_vlan_mask_from_nlattrs()
1129 eth_type = nla_get_be16(a[OVS_KEY_ATTR_ETHERTYPE]); in parse_eth_type_from_nlattrs()
1667 nla_get_be16(a[OVS_KEY_ATTR_TCP_FLAGS]), in ovs_key_from_nlattrs()
[all …]
/OK3568_Linux_fs/kernel/include/linux/netfilter/ipset/
H A Dip_set.h398 return ntohs(nla_get_be16(attr)); in ip_set_get_h16()

12