Home
last modified time | relevance | path

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

12

/linux/net/netfilter/
H A Dnft_queue.c159 if (nla_put_be16(skb, NFTA_QUEUE_NUM, htons(priv->queuenum)) || in nft_queue_dump()
160 nla_put_be16(skb, NFTA_QUEUE_TOTAL, htons(priv->queues_total)) || in nft_queue_dump()
161 nla_put_be16(skb, NFTA_QUEUE_FLAGS, htons(priv->flags))) in nft_queue_dump()
177 nla_put_be16(skb, NFTA_QUEUE_FLAGS, htons(priv->flags))) in nft_queue_sreg_dump()
H A Dnf_tables_trace.c75 if (nla_put_be16(nlskb, NFTA_TRACE_IIFTYPE, in nf_trace_fill_dev_info()
85 if (nla_put_be16(nlskb, NFTA_TRACE_OIFTYPE, in nf_trace_fill_dev_info()
H A Dnft_log.c265 if (nla_put_be16(skb, NFTA_LOG_GROUP, htons(li->u.ulog.group))) in nft_log_dump()
274 if (nla_put_be16(skb, NFTA_LOG_QTHRESHOLD, in nft_log_dump()
H A Dnfnetlink_log.c433 if (nla_put_be16(inst->skb, NFULA_VLAN_TCI, htons(skb->vlan_tci)) || in nfulnl_put_bridge()
434 nla_put_be16(inst->skb, NFULA_VLAN_PROTO, skb->vlan_proto)) in nfulnl_put_bridge()
585 if (nla_put_be16(inst->skb, NFULA_HWTYPE, htons(skb->dev->type)) || in __build_packet_message()
586 nla_put_be16(inst->skb, NFULA_HWLEN, in __build_packet_message()
H A Dnft_tunnel.c629 if (nla_put_be16(skb, NFTA_TUNNEL_KEY_GENEVE_CLASS, in nft_tunnel_opts_dump()
653 if (nla_put_be16(skb, NFTA_TUNNEL_KEY_SPORT, info->key.tp_src) < 0 || in nft_tunnel_ports_dump()
654 nla_put_be16(skb, NFTA_TUNNEL_KEY_DPORT, info->key.tp_dst) < 0) in nft_tunnel_ports_dump()
H A Dnft_ct.c1013 nla_put_be16(skb, NFTA_CT_TIMEOUT_L3PROTO, htons(timeout->l3num))) in nft_ct_timeout_obj_dump()
1203 if (nla_put_be16(skb, NFTA_CT_HELPER_L3PROTO, htons(family))) in nft_ct_helper_obj_dump()
1300 if (nla_put_be16(skb, NFTA_CT_EXPECT_L3PROTO, htons(priv->l3num)) || in nft_ct_expect_obj_dump()
1302 nla_put_be16(skb, NFTA_CT_EXPECT_DPORT, priv->dport) || in nft_ct_expect_obj_dump()
H A Dnfnetlink_cttimeout.c200 nla_put_be16(skb, CTA_TIMEOUT_L3PROTO, in ctnl_timeout_fill_info()
409 if (nla_put_be16(skb, CTA_TIMEOUT_L3PROTO, htons(l3num)) || in cttimeout_default_fill_info()
H A Dnf_conntrack_proto_icmp.c258 if (nla_put_be16(skb, CTA_PROTO_ICMP_ID, t->src.u.icmp.id) || in icmp_tuple_to_nlattr()
H A Dnf_conntrack_proto_icmpv6.c235 if (nla_put_be16(skb, CTA_PROTO_ICMPV6_ID, t->src.u.icmp.id) || in icmpv6_tuple_to_nlattr()
H A Dnft_synproxy.c230 if (nla_put_be16(skb, NFTA_SYNPROXY_MSS, htons(priv->info.mss)) || in nft_synproxy_do_dump()
H A Dnfnetlink_cthelper.c475 if (nla_put_be16(skb, NFCTH_TUPLE_L3PROTONUM, in nfnl_cthelper_dump_tuple()
/linux/net/ipv4/
H A Dipip.c537 nla_put_be16(skb, IFLA_IPTUN_ENCAP_SPORT, in ipip_fill_info()
539 nla_put_be16(skb, IFLA_IPTUN_ENCAP_DPORT, in ipip_fill_info()
H A Dip_tunnel_core.c750 if (nla_put_be16(skb, LWTUNNEL_IP_OPT_GENEVE_CLASS, in ip_tun_fill_encap_opts_geneve()
856 nla_put_be16(skb, LWTUNNEL_IP_FLAGS, in ip_tun_fill_encap_info()
1026 nla_put_be16(skb, LWTUNNEL_IP6_FLAGS, in ip6_tun_fill_encap_info()
H A Dfou_core.c786 nla_put_be16(msg, FOU_ATTR_PORT, fou->port) || in fou_fill_info()
787 nla_put_be16(msg, FOU_ATTR_PEER_PORT, sk->sk_dport) || in fou_fill_info()
/linux/net/psample/
H A Dpsample.c267 nla_put_be16(skb, PSAMPLE_TUNNEL_KEY_ATTR_TP_SRC, tun_key->tp_src)) in __psample_ip_tun_to_nlattr()
270 nla_put_be16(skb, PSAMPLE_TUNNEL_KEY_ATTR_TP_DST, tun_key->tp_dst)) in __psample_ip_tun_to_nlattr()
/linux/net/ethtool/
H A Dtunnels.c142 if (nla_put_be16(skb, ETHTOOL_A_TUNNEL_UDP_ENTRY_PORT, in ethnl_tunnel_info_fill_reply()
/linux/fs/nfsd/
H A Dnfsctl.c1469 nla_put_be16(skb, NFSD_A_RPC_STATUS_SPORT, in create_proc_exports_entry()
1471 nla_put_be16(skb, NFSD_A_RPC_STATUS_DPORT, in create_proc_exports_entry()
1485 nla_put_be16(skb, NFSD_A_RPC_STATUS_SPORT, in nfsd_genl_rpc_status_compose_msg()
1487 nla_put_be16(skb, NFSD_A_RPC_STATUS_DPORT, in nfsd_genl_rpc_status_compose_msg()
/linux/net/sched/
H A Dact_tunnel_key.c585 if (nla_put_be16(skb, TCA_TUNNEL_KEY_ENC_OPT_GENEVE_CLASS, in tunnel_key_geneve_opts_dump()
749 nla_put_be16(skb, TCA_TUNNEL_KEY_ENC_DST_PORT, in tunnel_key_dump()
H A Dact_vlan.c310 nla_put_be16(skb, TCA_VLAN_PUSH_VLAN_PROTOCOL, in tcf_vlan_dump()
H A Dcls_flower.c3176 if (nla_put_be16(skb, TCA_FLOWER_KEY_ENC_OPT_GENEVE_CLASS, in fl_dump_key_geneve_opt()
3482 nla_put_be16(skb, TCA_FLOWER_KEY_VLAN_ETH_TYPE, in fl_dump_key()
3488 if (nla_put_be16(skb, TCA_FLOWER_KEY_CVLAN_ETH_TYPE, in fl_dump_key()
3492 if (nla_put_be16(skb, TCA_FLOWER_KEY_VLAN_ETH_TYPE, in fl_dump_key()
3507 if (nla_put_be16(skb, TCA_FLOWER_KEY_PPPOE_SID, in fl_dump_key()
3512 if (nla_put_be16(skb, TCA_FLOWER_KEY_PPP_PROTO, in fl_dump_key()
H A Dact_ct.c1496 if (nla_put_be16(skb, TCA_CT_NAT_PORT_MIN, in tcf_ct_dump_nat()
1499 if (nla_put_be16(skb, TCA_CT_NAT_PORT_MAX, in tcf_ct_dump_nat()
/linux/net/openvswitch/
H A Dflow_netlink.c931 nla_put_be16(skb, OVS_TUNNEL_KEY_ATTR_TP_SRC, output->tp_src)) in __ip_tun_to_nlattr()
934 nla_put_be16(skb, OVS_TUNNEL_KEY_ATTR_TP_DST, output->tp_dst)) in __ip_tun_to_nlattr()
1990 if (nla_put_be16(skb, OVS_KEY_ATTR_ETHERTYPE, eth_type) || in ovs_nla_put_vlan()
1991 nla_put_be16(skb, OVS_KEY_ATTR_VLAN, vh->tci)) in ovs_nla_put_vlan()
2106 if (nla_put_be16(skb, OVS_KEY_ATTR_ETHERTYPE, in __ovs_nla_put_key()
2113 if (nla_put_be16(skb, OVS_KEY_ATTR_ETHERTYPE, output->eth.type)) in __ovs_nla_put_key()
2206 if (nla_put_be16(skb, OVS_KEY_ATTR_TCP_FLAGS, in __ovs_nla_put_key()
/linux/net/ipv6/
H A Dip6_gre.c2169 nla_put_be16(skb, IFLA_GRE_IFLAGS, in ip6gre_fill_info()
2171 nla_put_be16(skb, IFLA_GRE_OFLAGS, in ip6gre_fill_info()
2186 nla_put_be16(skb, IFLA_GRE_ENCAP_SPORT, in ip6gre_fill_info()
2188 nla_put_be16(skb, IFLA_GRE_ENCAP_DPORT, in ip6gre_fill_info()
H A Dsit.c1704 nla_put_be16(skb, IFLA_IPTUN_FLAGS, in ipip6_fill_info()
1723 nla_put_be16(skb, IFLA_IPTUN_ENCAP_SPORT, in ipip6_fill_info()
1725 nla_put_be16(skb, IFLA_IPTUN_ENCAP_DPORT, in ipip6_fill_info()
/linux/net/mptcp/
H A Dpm_netlink.c2095 if (nla_put_be16(skb, MPTCP_ATTR_SPORT, issk->inet_sport)) in mptcp_event_add_subflow()
2097 if (nla_put_be16(skb, MPTCP_ATTR_DPORT, issk->inet_dport)) in mptcp_event_add_subflow()
2248 if (nla_put_be16(skb, MPTCP_ATTR_DPORT, in mptcp_event_addr_announced()
2300 if (nla_put_be16(skb, MPTCP_ATTR_SPORT, issk->inet_sport)) in mptcp_event_pm_listener()

12