Home
last modified time | relevance | path

Searched refs:nla_put_be16 (Results 1 – 25 of 33) sorted by relevance

12

/Linux-v5.4/net/netfilter/
Dnft_queue.c134 if (nla_put_be16(skb, NFTA_QUEUE_NUM, htons(priv->queuenum)) || in nft_queue_dump()
135 nla_put_be16(skb, NFTA_QUEUE_TOTAL, htons(priv->queues_total)) || in nft_queue_dump()
136 nla_put_be16(skb, NFTA_QUEUE_FLAGS, htons(priv->flags))) in nft_queue_dump()
151 nla_put_be16(skb, NFTA_QUEUE_FLAGS, htons(priv->flags))) in nft_queue_sreg_dump()
Dnf_tables_trace.c91 if (nla_put_be16(nlskb, NFTA_TRACE_IIFTYPE, in nf_trace_fill_dev_info()
101 if (nla_put_be16(nlskb, NFTA_TRACE_OIFTYPE, in nf_trace_fill_dev_info()
Dnft_log.c246 if (nla_put_be16(skb, NFTA_LOG_GROUP, htons(li->u.ulog.group))) in nft_log_dump()
255 if (nla_put_be16(skb, NFTA_LOG_QTHRESHOLD, in nft_log_dump()
Dnfnetlink_log.c419 if (nla_put_be16(inst->skb, NFULA_VLAN_TCI, htons(skb->vlan_tci)) || in nfulnl_put_bridge()
420 nla_put_be16(inst->skb, NFULA_VLAN_PROTO, skb->vlan_proto)) in nfulnl_put_bridge()
575 if (nla_put_be16(inst->skb, NFULA_HWTYPE, htons(skb->dev->type)) || in __build_packet_message()
576 nla_put_be16(inst->skb, NFULA_HWLEN, in __build_packet_message()
Dnft_ct.c936 nla_put_be16(skb, NFTA_CT_TIMEOUT_L3PROTO, htons(timeout->l3num))) in nft_ct_timeout_obj_dump()
1126 if (nla_put_be16(skb, NFTA_CT_HELPER_L3PROTO, htons(family))) in nft_ct_helper_obj_dump()
1200 if (nla_put_be16(skb, NFTA_CT_EXPECT_L3PROTO, htons(priv->l3num)) || in nft_ct_expect_obj_dump()
1202 nla_put_be16(skb, NFTA_CT_EXPECT_DPORT, priv->dport) || in nft_ct_expect_obj_dump()
Dnfnetlink_cttimeout.c180 nla_put_be16(skb, CTA_TIMEOUT_L3PROTO, in ctnl_timeout_fill_info()
400 if (nla_put_be16(skb, CTA_TIMEOUT_L3PROTO, htons(l3num)) || in cttimeout_default_fill_info()
Dnft_tunnel.c504 if (nla_put_be16(skb, NFTA_TUNNEL_KEY_SPORT, htons(info->key.tp_src)) < 0 || in nft_tunnel_ports_dump()
505 nla_put_be16(skb, NFTA_TUNNEL_KEY_DPORT, htons(info->key.tp_dst)) < 0) in nft_tunnel_ports_dump()
Dnf_conntrack_proto_icmpv6.c179 if (nla_put_be16(skb, CTA_PROTO_ICMPV6_ID, t->src.u.icmp.id) || in icmpv6_tuple_to_nlattr()
Dnf_conntrack_proto_icmp.c261 if (nla_put_be16(skb, CTA_PROTO_ICMP_ID, t->src.u.icmp.id) || in icmp_tuple_to_nlattr()
Dnft_synproxy.c230 if (nla_put_be16(skb, NFTA_SYNPROXY_MSS, htons(priv->info.mss)) || in nft_synproxy_do_dump()
Dnfnetlink_queue.c354 if (nla_put_be16(skb, NFQA_VLAN_TCI, htons(entskb->vlan_tci)) || in nfqnl_put_bridge()
355 nla_put_be16(skb, NFQA_VLAN_PROTO, entskb->vlan_proto)) in nfqnl_put_bridge()
/Linux-v5.4/net/ipv4/
Dip_tunnel_core.c299 nla_put_be16(skb, LWTUNNEL_IP_FLAGS, tun_info->key.tun_flags)) in ip_tun_fill_encap_info()
399 nla_put_be16(skb, LWTUNNEL_IP6_FLAGS, tun_info->key.tun_flags)) in ip6_tun_fill_encap_info()
Dipip.c592 nla_put_be16(skb, IFLA_IPTUN_ENCAP_SPORT, in ipip_fill_info()
594 nla_put_be16(skb, IFLA_IPTUN_ENCAP_DPORT, in ipip_fill_info()
Dip_gre.c1405 nla_put_be16(skb, IFLA_GRE_IFLAGS, in ipgre_fill_info()
1407 nla_put_be16(skb, IFLA_GRE_OFLAGS, in ipgre_fill_info()
1422 nla_put_be16(skb, IFLA_GRE_ENCAP_SPORT, in ipgre_fill_info()
1424 nla_put_be16(skb, IFLA_GRE_ENCAP_DPORT, in ipgre_fill_info()
Dfou.c793 nla_put_be16(msg, FOU_ATTR_PORT, fou->port) || in fou_fill_info()
794 nla_put_be16(msg, FOU_ATTR_PEER_PORT, sk->sk_dport) || in fou_fill_info()
/Linux-v5.4/net/sched/
Dact_tunnel_key.c439 if (nla_put_be16(skb, TCA_TUNNEL_KEY_ENC_OPT_GENEVE_CLASS, in tunnel_key_geneve_opts_dump()
545 nla_put_be16(skb, TCA_TUNNEL_KEY_ENC_DST_PORT, in tunnel_key_dump()
Dact_vlan.c275 nla_put_be16(skb, TCA_VLAN_PUSH_VLAN_PROTOCOL, in tcf_vlan_dump()
Dact_ct.c807 if (nla_put_be16(skb, TCA_CT_NAT_PORT_MIN, in tcf_ct_dump_nat()
810 if (nla_put_be16(skb, TCA_CT_NAT_PORT_MAX, in tcf_ct_dump_nat()
Dact_mpls.c330 if (nla_put_be16(skb, TCA_MPLS_PROTO, p->tcfm_proto)) in tcf_mpls_dump()
Dcls_flower.c2118 if (nla_put_be16(skb, TCA_FLOWER_KEY_ENC_OPT_GENEVE_CLASS, in fl_dump_key_geneve_opt()
2248 nla_put_be16(skb, TCA_FLOWER_KEY_VLAN_ETH_TYPE, in fl_dump_key()
2254 if (nla_put_be16(skb, TCA_FLOWER_KEY_CVLAN_ETH_TYPE, in fl_dump_key()
2258 if (nla_put_be16(skb, TCA_FLOWER_KEY_VLAN_ETH_TYPE, in fl_dump_key()
/Linux-v5.4/net/8021q/
Dvlan_netlink.c217 if (nla_put_be16(skb, IFLA_VLAN_PROTOCOL, vlan->vlan_proto) || in vlan_fill_info()
/Linux-v5.4/net/openvswitch/
Dflow_netlink.c905 nla_put_be16(skb, OVS_TUNNEL_KEY_ATTR_TP_SRC, output->tp_src)) in __ip_tun_to_nlattr()
908 nla_put_be16(skb, OVS_TUNNEL_KEY_ATTR_TP_DST, output->tp_dst)) in __ip_tun_to_nlattr()
1936 if (nla_put_be16(skb, OVS_KEY_ATTR_ETHERTYPE, eth_type) || in ovs_nla_put_vlan()
1937 nla_put_be16(skb, OVS_KEY_ATTR_VLAN, vh->tci)) in ovs_nla_put_vlan()
2052 if (nla_put_be16(skb, OVS_KEY_ATTR_ETHERTYPE, in __ovs_nla_put_key()
2059 if (nla_put_be16(skb, OVS_KEY_ATTR_ETHERTYPE, output->eth.type)) in __ovs_nla_put_key()
2139 if (nla_put_be16(skb, OVS_KEY_ATTR_TCP_FLAGS, in __ovs_nla_put_key()
/Linux-v5.4/include/net/
Dnetlink.h1203 static inline int nla_put_be16(struct sk_buff *skb, int attrtype, __be16 value) in nla_put_be16() function
1220 return nla_put_be16(skb, attrtype | NLA_F_NET_BYTEORDER, tmp); in nla_put_net16()
/Linux-v5.4/net/ipv6/
Dip6_gre.c2131 nla_put_be16(skb, IFLA_GRE_IFLAGS, in ip6gre_fill_info()
2133 nla_put_be16(skb, IFLA_GRE_OFLAGS, in ip6gre_fill_info()
2148 nla_put_be16(skb, IFLA_GRE_ENCAP_SPORT, in ip6gre_fill_info()
2150 nla_put_be16(skb, IFLA_GRE_ENCAP_DPORT, in ip6gre_fill_info()
Dsit.c1712 nla_put_be16(skb, IFLA_IPTUN_FLAGS, parm->i_flags) || in ipip6_fill_info()
1730 nla_put_be16(skb, IFLA_IPTUN_ENCAP_SPORT, in ipip6_fill_info()
1732 nla_put_be16(skb, IFLA_IPTUN_ENCAP_DPORT, in ipip6_fill_info()

12