Home
last modified time | relevance | path

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

/linux-4.4.14/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.c88 li->u.ulog.group = ntohs(nla_get_be16(tb[NFTA_LOG_GROUP])); in nft_log_init()
95 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()
389 l3num = ntohs(nla_get_be16(cda[CTA_TIMEOUT_L3PROTO])); in cttimeout_default_set()
476 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.c1338 t->src.u.tcp.port = nla_get_be16(tb[CTA_PROTO_SRC_PORT]); in nf_ct_port_nlattr_to_tuple()
1339 t->dst.u.tcp.port = nla_get_be16(tb[CTA_PROTO_DST_PORT]); in nf_ct_port_nlattr_to_tuple()
Dnfnetlink_log.c854 flags = ntohs(nla_get_be16(nfula[NFULA_CFG_FLAGS])); in nfulnl_recv_config()
Dnf_conntrack_netlink.c963 zone->id = ntohs(nla_get_be16(attr)); in ctnetlink_parse_zone()
/linux-4.4.14/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.4.14/net/ipv4/
Dip_gre.c925 flags |= nla_get_be16(data[IFLA_GRE_IFLAGS]); in ipgre_tunnel_validate()
927 flags |= nla_get_be16(data[IFLA_GRE_OFLAGS]); in ipgre_tunnel_validate()
974 parms->i_flags = gre_flags_to_tnl_flags(nla_get_be16(data[IFLA_GRE_IFLAGS])); in ipgre_netlink_parms()
977 parms->o_flags = gre_flags_to_tnl_flags(nla_get_be16(data[IFLA_GRE_OFLAGS])); in ipgre_netlink_parms()
1030 ipencap->sport = nla_get_be16(data[IFLA_GRE_ENCAP_SPORT]); in ipgre_netlink_encap_parms()
1035 ipencap->dport = nla_get_be16(data[IFLA_GRE_ENCAP_DPORT]); in ipgre_netlink_encap_parms()
Dipip.c367 ipencap->sport = nla_get_be16(data[IFLA_IPTUN_ENCAP_SPORT]); in ipip_netlink_encap_parms()
372 ipencap->dport = nla_get_be16(data[IFLA_IPTUN_ENCAP_DPORT]); in ipip_netlink_encap_parms()
Dfou.c577 __be16 port = nla_get_be16(info->attrs[FOU_ATTR_PORT]); in parse_nl_config()
/linux-4.4.14/net/netfilter/ipset/
Dip_set_hash_ipport.c135 e.port = nla_get_be16(tb[IPSET_ATTR_PORT]); in hash_ipport4_uadt()
301 e.port = nla_get_be16(tb[IPSET_ATTR_PORT]); in hash_ipport6_uadt()
Dip_set_hash_ipportip.c142 e.port = nla_get_be16(tb[IPSET_ATTR_PORT]); in hash_ipportip4_uadt()
316 e.port = nla_get_be16(tb[IPSET_ATTR_PORT]); in hash_ipportip6_uadt()
Dip_set_hash_netport.c193 e.port = nla_get_be16(tb[IPSET_ATTR_PORT]); in hash_netport4_uadt()
411 e.port = nla_get_be16(tb[IPSET_ATTR_PORT]); in hash_netport6_uadt()
Dip_set_hash_ipportnet.c204 e.port = nla_get_be16(tb[IPSET_ATTR_PORT]); in hash_ipportnet4_uadt()
464 e.port = nla_get_be16(tb[IPSET_ATTR_PORT]); in hash_ipportnet6_uadt()
Dip_set_hash_netportnet.c226 e.port = nla_get_be16(tb[IPSET_ATTR_PORT]); in hash_netportnet4_uadt()
508 e.port = nla_get_be16(tb[IPSET_ATTR_PORT]); in hash_netportnet6_uadt()
Dip_set_core.c441 ext->skbqueue = be16_to_cpu(nla_get_be16( in ip_set_get_extensions()
/linux-4.4.14/net/openvswitch/
Dflow_netlink.c617 nla_get_be16(a), is_mask); in ip_tun_from_nlattr()
621 nla_get_be16(a), is_mask); in ip_tun_from_nlattr()
927 tci = nla_get_be16(a[OVS_KEY_ATTR_VLAN]); in ovs_key_from_nlattrs()
944 eth_type = nla_get_be16(a[OVS_KEY_ATTR_ETHERTYPE]); in ovs_key_from_nlattrs()
1067 nla_get_be16(a[OVS_KEY_ATTR_TCP_FLAGS]), in ovs_key_from_nlattrs()
1197 (nla_get_be16(a[OVS_KEY_ATTR_ETHERTYPE]) == htons(ETH_P_8021Q))) { in ovs_nla_get_match()
1207 tci = nla_get_be16(a[OVS_KEY_ATTR_VLAN]); in ovs_nla_get_match()
1281 eth_type = nla_get_be16(a[OVS_KEY_ATTR_ETHERTYPE]); in ovs_nla_get_match()
1298 tci = nla_get_be16(a[OVS_KEY_ATTR_VLAN]); in ovs_nla_get_match()
Dactions.c1065 err = pop_mpls(skb, key, nla_get_be16(a)); in do_execute_actions()
/linux-4.4.14/net/sched/
Dact_vlan.c101 push_proto = nla_get_be16(tb[TCA_VLAN_PUSH_VLAN_PROTOCOL]); in tcf_vlan_init()
/linux-4.4.14/net/ipv6/netfilter/
Dnf_conntrack_proto_icmpv6.c271 tuple->src.u.icmp.id = nla_get_be16(tb[CTA_PROTO_ICMPV6_ID]); in icmpv6_nlattr_to_tuple()
/linux-4.4.14/net/ipv6/
Dip6_gre.c1406 flags |= nla_get_be16(data[IFLA_GRE_IFLAGS]); in ip6gre_tunnel_validate()
1408 flags |= nla_get_be16(data[IFLA_GRE_OFLAGS]); in ip6gre_tunnel_validate()
1452 parms->i_flags = nla_get_be16(data[IFLA_GRE_IFLAGS]); in ip6gre_netlink_parms()
1455 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.4.14/net/ipv4/netfilter/
Dnf_conntrack_proto_icmp.c265 tuple->src.u.icmp.id = nla_get_be16(tb[CTA_PROTO_ICMP_ID]); in icmp_nlattr_to_tuple()
/linux-4.4.14/include/linux/netfilter/ipset/
Dip_set.h480 return ntohs(nla_get_be16(attr)); in ip_set_get_h16()
/linux-4.4.14/net/bridge/
Dbr_netlink.c763 switch (nla_get_be16(data[IFLA_BR_VLAN_PROTOCOL])) { in br_validate()
908 __be16 vlan_proto = nla_get_be16(data[IFLA_BR_VLAN_PROTOCOL]); in br_changelink()
/linux-4.4.14/include/net/
Dnetlink.h1028 static inline __be16 nla_get_be16(const struct nlattr *nla) in nla_get_be16() function
/linux-4.4.14/drivers/net/
Dgeneve.c1264 dst_port = nla_get_be16(data[IFLA_GENEVE_PORT]); in geneve_newlink()
Dvxlan.c795 *port = nla_get_be16(tb[NDA_PORT]); in vxlan_fdb_parse()
2980 conf.dst_port = nla_get_be16(data[IFLA_VXLAN_PORT]); in vxlan_newlink()
/linux-4.4.14/net/netfilter/ipvs/
Dip_vs_ctl.c3077 usvc->port = nla_get_be16(nla_port); in ip_vs_genl_parse_service()
3261 udest->port = nla_get_be16(nla_port); in ip_vs_genl_parse_dest()