| /linux-6.15/net/netfilter/ |
| H A D | nft_queue.c | 109 priv->queuenum = ntohs(nla_get_be16(tb[NFTA_QUEUE_NUM])); in nft_queue_init() 112 priv->queues_total = ntohs(nla_get_be16(tb[NFTA_QUEUE_TOTAL])); in nft_queue_init() 124 priv->flags = ntohs(nla_get_be16(tb[NFTA_QUEUE_FLAGS])); in nft_queue_init() 144 priv->flags = ntohs(nla_get_be16(tb[NFTA_QUEUE_FLAGS])); in nft_queue_sreg_init()
|
| H A D | nft_log.c | 197 li->u.ulog.group = ntohs(nla_get_be16(tb[NFTA_LOG_GROUP])); in nft_log_init() 205 ntohs(nla_get_be16(tb[NFTA_LOG_QTHRESHOLD])); in nft_log_init()
|
| H A D | nft_tunnel.c | 369 opt->opt_class = nla_get_be16(tb[NFTA_TUNNEL_KEY_GENEVE_CLASS]); in nft_tunnel_obj_geneve_init() 477 info.key.tp_src = nla_get_be16(tb[NFTA_TUNNEL_KEY_SPORT]); in nft_tunnel_obj_init() 480 info.key.tp_dst = nla_get_be16(tb[NFTA_TUNNEL_KEY_DPORT]); in nft_tunnel_obj_init()
|
| H A D | nft_ct.c | 953 l3num = ntohs(nla_get_be16(tb[NFTA_CT_TIMEOUT_L3PROTO])); in nft_ct_timeout_obj_init() 1073 family = ntohs(nla_get_be16(tb[NFTA_CT_HELPER_L3PROTO])); in nft_ct_helper_obj_init() 1256 priv->l3num = ntohs(nla_get_be16(tb[NFTA_CT_EXPECT_L3PROTO])); in nft_ct_expect_obj_init() 1282 priv->dport = nla_get_be16(tb[NFTA_CT_EXPECT_DPORT]); in nft_ct_expect_obj_init()
|
| H A D | nfnetlink_cttimeout.c | 117 l3num = ntohs(nla_get_be16(cda[CTA_TIMEOUT_L3PROTO])); in cttimeout_new_timeout() 446 l3num = ntohs(nla_get_be16(cda[CTA_TIMEOUT_L3PROTO])); in cttimeout_default_get()
|
| H A D | nf_conntrack_proto_icmp.c | 299 tuple->src.u.icmp.id = nla_get_be16(tb[CTA_PROTO_ICMP_ID]); in icmp_nlattr_to_tuple()
|
| H A D | nf_conntrack_proto_icmpv6.c | 277 tuple->src.u.icmp.id = nla_get_be16(tb[CTA_PROTO_ICMPV6_ID]); in icmpv6_nlattr_to_tuple()
|
| H A D | nft_synproxy.c | 161 priv->info.mss = ntohs(nla_get_be16(tb[NFTA_SYNPROXY_MSS])); in nft_synproxy_do_init()
|
| /linux-6.15/net/ipv4/ |
| H A D | ip_tunnel_core.c | 498 opt->opt_class = nla_get_be16(attr); in ip_tun_parse_opts_geneve() 713 nla_get_be16(tb[LWTUNNEL_IP_FLAGS])); in ip_tun_build_state() 999 data = nla_get_be16(tb[LWTUNNEL_IP6_FLAGS]); in ip6_tun_build_state() 1122 encap->sport = nla_get_be16(data[IFLA_IPTUN_ENCAP_SPORT]); in ip_tunnel_netlink_encap_parms() 1127 encap->dport = nla_get_be16(data[IFLA_IPTUN_ENCAP_DPORT]); in ip_tunnel_netlink_encap_parms() 1161 flags = nla_get_be16(data[IFLA_IPTUN_FLAGS]); in ip_tunnel_netlink_parms()
|
| H A D | ip_gre.c | 1093 flags |= nla_get_be16(data[IFLA_GRE_IFLAGS]); in ipgre_tunnel_validate() 1095 flags |= nla_get_be16(data[IFLA_GRE_OFLAGS]); in ipgre_tunnel_validate() 1151 flags |= nla_get_be16(data[IFLA_GRE_OFLAGS]); in erspan_validate() 1153 flags |= nla_get_be16(data[IFLA_GRE_IFLAGS]); in erspan_validate() 1192 nla_get_be16(data[IFLA_GRE_IFLAGS])); in ipgre_netlink_parms() 1196 nla_get_be16(data[IFLA_GRE_OFLAGS])); in ipgre_netlink_parms() 1308 ipencap->sport = nla_get_be16(data[IFLA_GRE_ENCAP_SPORT]); in ipgre_netlink_encap_parms() 1313 ipencap->dport = nla_get_be16(data[IFLA_GRE_ENCAP_DPORT]); in ipgre_netlink_encap_parms()
|
| H A D | fou_core.c | 693 port = nla_get_be16(info->attrs[FOU_ATTR_PORT]); in parse_nl_config() 736 port = nla_get_be16(info->attrs[FOU_ATTR_PEER_PORT]); in parse_nl_config()
|
| /linux-6.15/net/netfilter/ipset/ |
| H A D | ip_set_hash_ipport.c | 143 e.port = nla_get_be16(tb[IPSET_ATTR_PORT]); in hash_ipport4_uadt() 322 e.port = nla_get_be16(tb[IPSET_ATTR_PORT]); in hash_ipport6_uadt()
|
| H A D | ip_set_hash_ipportip.c | 139 e.port = nla_get_be16(tb[IPSET_ATTR_PORT]); in hash_ipportip4_uadt() 317 e.port = nla_get_be16(tb[IPSET_ATTR_PORT]); in hash_ipportip6_uadt()
|
| H A D | ip_set_hash_netport.c | 190 e.port = nla_get_be16(tb[IPSET_ATTR_PORT]); in hash_netport4_uadt() 413 e.port = nla_get_be16(tb[IPSET_ATTR_PORT]); in hash_netport6_uadt()
|
| H A D | ip_set_hash_ipportnet.c | 201 e.port = nla_get_be16(tb[IPSET_ATTR_PORT]); in hash_ipportnet4_uadt() 467 e.port = nla_get_be16(tb[IPSET_ATTR_PORT]); in hash_ipportnet6_uadt()
|
| H A D | ip_set_hash_netportnet.c | 234 e.port = nla_get_be16(tb[IPSET_ATTR_PORT]); in hash_netportnet4_uadt() 523 e.port = nla_get_be16(tb[IPSET_ATTR_PORT]); in hash_netportnet6_uadt()
|
| /linux-6.15/net/sched/ |
| H A D | act_mpls.c | 222 if (!eth_proto_is_802_3(nla_get_be16(tb[TCA_MPLS_PROTO]))) { in tcf_mpls_init() 250 !eth_p_mpls(nla_get_be16(tb[TCA_MPLS_PROTO]))) { in tcf_mpls_init()
|
| H A D | act_tunnel_key.c | 126 nla_get_be16(tb[TCA_TUNNEL_KEY_ENC_OPT_GENEVE_CLASS]); in tunnel_key_copy_geneve_opt() 427 dst_port = nla_get_be16(tb[TCA_TUNNEL_KEY_ENC_DST_PORT]); in tunnel_key_init()
|
| H A D | act_vlan.c | 179 push_proto = nla_get_be16(tb[TCA_VLAN_PUSH_VLAN_PROTOCOL]); in tcf_vlan_init()
|
| /linux-6.15/net/ipv6/ |
| H A D | ip6_gre.c | 1670 flags |= nla_get_be16(data[IFLA_GRE_IFLAGS]); in ip6gre_tunnel_validate() 1672 flags |= nla_get_be16(data[IFLA_GRE_OFLAGS]); in ip6gre_tunnel_validate() 1719 flags |= nla_get_be16(data[IFLA_GRE_OFLAGS]); in ip6erspan_tap_validate() 1721 flags |= nla_get_be16(data[IFLA_GRE_IFLAGS]); in ip6erspan_tap_validate() 1803 nla_get_be16(data[IFLA_GRE_IFLAGS])); in ip6gre_netlink_parms() 1807 nla_get_be16(data[IFLA_GRE_OFLAGS])); in ip6gre_netlink_parms() 1962 ipencap->sport = nla_get_be16(data[IFLA_GRE_ENCAP_SPORT]); in ip6gre_netlink_encap_parms() 1967 ipencap->dport = nla_get_be16(data[IFLA_GRE_ENCAP_DPORT]); in ip6gre_netlink_encap_parms()
|
| /linux-6.15/net/openvswitch/ |
| H A D | flow_netlink.c | 747 nla_get_be16(a), is_mask); in ip_tun_from_nlattr() 751 nla_get_be16(a), is_mask); in ip_tun_from_nlattr() 996 tci = nla_get_be16(a[OVS_KEY_ATTR_VLAN]); in encode_vlan_from_nlattrs() 999 tpid = nla_get_be16(a[OVS_KEY_ATTR_ETHERTYPE]); in encode_vlan_from_nlattrs() 1019 eth_type_vlan(nla_get_be16(a[OVS_KEY_ATTR_ETHERTYPE])))) { in validate_vlan_from_nlattrs() 1031 tci = nla_get_be16(a[OVS_KEY_ATTR_VLAN]); in validate_vlan_from_nlattrs() 1072 tci = nla_get_be16(a[OVS_KEY_ATTR_VLAN]); in validate_vlan_mask_from_nlattrs() 1075 tpid = nla_get_be16(a[OVS_KEY_ATTR_ETHERTYPE]); in validate_vlan_mask_from_nlattrs() 1155 eth_type = nla_get_be16(a[OVS_KEY_ATTR_ETHERTYPE]); in parse_eth_type_from_nlattrs() 1704 nla_get_be16(a[OVS_KEY_ATTR_TCP_FLAGS]), in ovs_key_from_nlattrs() [all …]
|
| /linux-6.15/net/8021q/ |
| H A D | vlan_netlink.c | 63 switch (nla_get_be16(data[IFLA_VLAN_PROTOCOL])) { in vlan_validate()
|
| /linux-6.15/lib/ |
| H A D | nlattr.c | 201 value = ntohs(nla_get_be16(nla)); in nla_validate_range_unsigned() 376 value = ntohs(nla_get_be16(nla)); in nla_validate_mask()
|
| /linux-6.15/include/linux/netfilter/ipset/ |
| H A D | ip_set.h | 398 return ntohs(nla_get_be16(attr)); in ip_set_get_h16()
|
| /linux-6.15/include/net/ |
| H A D | netlink.h | 1790 static inline __be16 nla_get_be16(const struct nlattr *nla) in nla_get_be16() function 1807 return nla_get_be16(nla); in nla_get_be16_default()
|