Home
last modified time | relevance | path

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

/linux-4.1.27/net/netfilter/
Dnft_queue.c73 priv->queuenum = ntohs(nla_get_be16(tb[NFTA_QUEUE_NUM])); in nft_queue_init()
76 priv->queues_total = ntohs(nla_get_be16(tb[NFTA_QUEUE_TOTAL])); in nft_queue_init()
78 priv->flags = ntohs(nla_get_be16(tb[NFTA_QUEUE_FLAGS])); in nft_queue_init()
Dnf_nat_proto_common.c103 range->min_proto.all = nla_get_be16(tb[CTA_PROTONAT_PORT_MIN]); in nf_nat_l4proto_nlattr_to_range()
108 range->max_proto.all = nla_get_be16(tb[CTA_PROTONAT_PORT_MAX]); in nf_nat_l4proto_nlattr_to_range()
Dnft_log.c89 li->u.ulog.group = ntohs(nla_get_be16(tb[NFTA_LOG_GROUP])); in nft_log_init()
96 ntohs(nla_get_be16(tb[NFTA_LOG_QTHRESHOLD])); in nft_log_init()
Dnfnetlink_cttimeout.c90 l3num = ntohs(nla_get_be16(cda[CTA_TIMEOUT_L3PROTO])); in cttimeout_new_timeout()
360 l3num = ntohs(nla_get_be16(cda[CTA_TIMEOUT_L3PROTO])); in cttimeout_default_set()
447 l3num = ntohs(nla_get_be16(cda[CTA_TIMEOUT_L3PROTO])); in cttimeout_default_get()
Dnfnetlink_cthelper.c83 tuple->src.l3num = ntohs(nla_get_be16(tb[NFCTH_TUPLE_L3PROTONUM])); in nfnl_cthelper_parse_tuple()
Dnf_conntrack_core.c1313 t->src.u.tcp.port = nla_get_be16(tb[CTA_PROTO_SRC_PORT]); in nf_ct_port_nlattr_to_tuple()
1314 t->dst.u.tcp.port = nla_get_be16(tb[CTA_PROTO_DST_PORT]); in nf_ct_port_nlattr_to_tuple()
Dnfnetlink_log.c904 __be16 flags = nla_get_be16(nfula[NFULA_CFG_FLAGS]); in nfulnl_recv_config()
Dnf_conntrack_netlink.c972 *zone = ntohs(nla_get_be16(attr)); in ctnetlink_parse_zone()
/linux-4.1.27/net/ipv4/
Dip_gre.c566 flags |= nla_get_be16(data[IFLA_GRE_IFLAGS]); in ipgre_tunnel_validate()
568 flags |= nla_get_be16(data[IFLA_GRE_OFLAGS]); in ipgre_tunnel_validate()
613 parms->i_flags = gre_flags_to_tnl_flags(nla_get_be16(data[IFLA_GRE_IFLAGS])); in ipgre_netlink_parms()
616 parms->o_flags = gre_flags_to_tnl_flags(nla_get_be16(data[IFLA_GRE_OFLAGS])); in ipgre_netlink_parms()
663 ipencap->sport = nla_get_be16(data[IFLA_GRE_ENCAP_SPORT]); in ipgre_netlink_encap_parms()
668 ipencap->dport = nla_get_be16(data[IFLA_GRE_ENCAP_DPORT]); in ipgre_netlink_encap_parms()
Dipip.c369 ipencap->sport = nla_get_be16(data[IFLA_IPTUN_ENCAP_SPORT]); in ipip_netlink_encap_parms()
374 ipencap->dport = nla_get_be16(data[IFLA_IPTUN_ENCAP_DPORT]); in ipip_netlink_encap_parms()
Dfou.c581 __be16 port = nla_get_be16(info->attrs[FOU_ATTR_PORT]); in parse_nl_config()
/linux-4.1.27/net/8021q/
Dvlan_netlink.c58 switch (nla_get_be16(data[IFLA_VLAN_PROTOCOL])) { in vlan_validate()
134 proto = nla_get_be16(data[IFLA_VLAN_PROTOCOL]); in vlan_newlink()
/linux-4.1.27/net/openvswitch/
Dflow_netlink.c561 nla_get_be16(a), is_mask); in ipv4_tun_from_nlattr()
565 nla_get_be16(a), is_mask); in ipv4_tun_from_nlattr()
798 tci = nla_get_be16(a[OVS_KEY_ATTR_VLAN]); in ovs_key_from_nlattrs()
815 eth_type = nla_get_be16(a[OVS_KEY_ATTR_ETHERTYPE]); in ovs_key_from_nlattrs()
938 nla_get_be16(a[OVS_KEY_ATTR_TCP_FLAGS]), in ovs_key_from_nlattrs()
1061 (nla_get_be16(a[OVS_KEY_ATTR_ETHERTYPE]) == htons(ETH_P_8021Q))) { in ovs_nla_get_match()
1071 tci = nla_get_be16(a[OVS_KEY_ATTR_VLAN]); in ovs_nla_get_match()
1145 eth_type = nla_get_be16(a[OVS_KEY_ATTR_ETHERTYPE]); in ovs_nla_get_match()
1162 tci = nla_get_be16(a[OVS_KEY_ATTR_VLAN]); in ovs_nla_get_match()
Dactions.c887 err = pop_mpls(skb, key, nla_get_be16(a)); in do_execute_actions()
/linux-4.1.27/net/netfilter/ipset/
Dip_set_hash_ipport.c141 e.port = nla_get_be16(tb[IPSET_ATTR_PORT]); in hash_ipport4_uadt()
310 e.port = nla_get_be16(tb[IPSET_ATTR_PORT]); in hash_ipport6_uadt()
Dip_set_hash_ipportip.c147 e.port = nla_get_be16(tb[IPSET_ATTR_PORT]); in hash_ipportip4_uadt()
322 e.port = nla_get_be16(tb[IPSET_ATTR_PORT]); in hash_ipportip6_uadt()
Dip_set_hash_netport.c198 e.port = nla_get_be16(tb[IPSET_ATTR_PORT]); in hash_netport4_uadt()
421 e.port = nla_get_be16(tb[IPSET_ATTR_PORT]); in hash_netport6_uadt()
Dip_set_hash_ipportnet.c209 e.port = nla_get_be16(tb[IPSET_ATTR_PORT]); in hash_ipportnet4_uadt()
470 e.port = nla_get_be16(tb[IPSET_ATTR_PORT]); in hash_ipportnet6_uadt()
Dip_set_hash_netportnet.c224 e.port = nla_get_be16(tb[IPSET_ATTR_PORT]); in hash_netportnet4_uadt()
500 e.port = nla_get_be16(tb[IPSET_ATTR_PORT]); in hash_netportnet6_uadt()
Dip_set_core.c428 ext->skbqueue = be16_to_cpu(nla_get_be16( in ip_set_get_extensions()
/linux-4.1.27/net/sched/
Dact_vlan.c101 push_proto = nla_get_be16(tb[TCA_VLAN_PUSH_VLAN_PROTOCOL]); in tcf_vlan_init()
/linux-4.1.27/net/ipv6/netfilter/
Dnf_conntrack_proto_icmpv6.c269 tuple->src.u.icmp.id = nla_get_be16(tb[CTA_PROTO_ICMPV6_ID]); in icmpv6_nlattr_to_tuple()
/linux-4.1.27/net/ipv6/
Dip6_gre.c1383 flags |= nla_get_be16(data[IFLA_GRE_IFLAGS]); in ip6gre_tunnel_validate()
1385 flags |= nla_get_be16(data[IFLA_GRE_OFLAGS]); in ip6gre_tunnel_validate()
1429 parms->i_flags = nla_get_be16(data[IFLA_GRE_IFLAGS]); in ip6gre_netlink_parms()
1432 parms->o_flags = nla_get_be16(data[IFLA_GRE_OFLAGS]); in ip6gre_netlink_parms()
Dsit.c1464 parms->i_flags = nla_get_be16(data[IFLA_IPTUN_FLAGS]); in ipip6_netlink_parms()
1494 ipencap->sport = nla_get_be16(data[IFLA_IPTUN_ENCAP_SPORT]); in ipip6_netlink_encap_parms()
1499 ipencap->dport = nla_get_be16(data[IFLA_IPTUN_ENCAP_DPORT]); in ipip6_netlink_encap_parms()
/linux-4.1.27/net/ipv4/netfilter/
Dnf_conntrack_proto_icmp.c263 tuple->src.u.icmp.id = nla_get_be16(tb[CTA_PROTO_ICMP_ID]); in icmp_nlattr_to_tuple()
/linux-4.1.27/include/linux/netfilter/ipset/
Dip_set.h473 return ntohs(nla_get_be16(attr)); in ip_set_get_h16()
/linux-4.1.27/include/net/
Dnetlink.h1019 static inline __be16 nla_get_be16(const struct nlattr *nla) in nla_get_be16() function
/linux-4.1.27/drivers/net/
Dvxlan.c836 *port = nla_get_be16(tb[NDA_PORT]); in vxlan_fdb_parse()
2690 vxlan->dst_port = nla_get_be16(data[IFLA_VXLAN_PORT]); in vxlan_newlink()
/linux-4.1.27/net/netfilter/ipvs/
Dip_vs_ctl.c3055 usvc->port = nla_get_be16(nla_port); in ip_vs_genl_parse_service()
3238 udest->port = nla_get_be16(nla_port); in ip_vs_genl_parse_dest()