/Linux-v6.1/tools/lib/bpf/ |
D | nlattr.h | 82 static inline void *libbpf_nla_data(const struct nlattr *nla) in libbpf_nla_data() 87 static inline uint8_t libbpf_nla_getattr_u8(const struct nlattr *nla) in libbpf_nla_getattr_u8() 92 static inline uint32_t libbpf_nla_getattr_u32(const struct nlattr *nla) in libbpf_nla_getattr_u32() 97 static inline const char *libbpf_nla_getattr_str(const struct nlattr *nla) in libbpf_nla_getattr_str() 106 static inline int libbpf_nla_len(const struct nlattr *nla) in libbpf_nla_len() 111 int libbpf_nla_parse(struct nlattr *tb[], int maxtype, struct nlattr *head, 113 int libbpf_nla_parse_nested(struct nlattr *tb[], int maxtype, 114 struct nlattr *nla, 119 static inline struct nlattr *nla_data(struct nlattr *nla) in nla_data() 121 return (struct nlattr *)((void *)nla + NLA_HDRLEN); in nla_data() [all …]
|
D | nlattr.c | 25 static struct nlattr *nla_next(const struct nlattr *nla, int *remaining) in nla_next() 30 return (struct nlattr *)((void *)nla + totlen); in nla_next() 33 static int nla_ok(const struct nlattr *nla, int remaining) in nla_ok() 40 static int nla_type(const struct nlattr *nla) in nla_type() 45 static int validate_nla(struct nlattr *nla, int maxtype, in validate_nla() 104 int libbpf_nla_parse(struct nlattr *tb[], int maxtype, struct nlattr *head, in libbpf_nla_parse() 107 struct nlattr *nla; in libbpf_nla_parse() 110 memset(tb, 0, sizeof(struct nlattr *) * (maxtype + 1)); in libbpf_nla_parse() 149 int libbpf_nla_parse_nested(struct nlattr *tb[], int maxtype, in libbpf_nla_parse_nested() 150 struct nlattr *nla, in libbpf_nla_parse_nested() [all …]
|
/Linux-v6.1/include/net/ |
D | netlink.h | 358 int (*validate)(const struct nlattr *attr, 516 int __nla_validate(const struct nlattr *head, int len, int maxtype, 519 int __nla_parse(struct nlattr **tb, int maxtype, const struct nlattr *head, 523 struct nlattr *nla_find(const struct nlattr *head, int len, int attrtype); 524 ssize_t nla_strscpy(char *dst, const struct nlattr *nla, size_t dstsize); 525 char *nla_strdup(const struct nlattr *nla, gfp_t flags); 526 int nla_memcpy(void *dest, const struct nlattr *src, int count); 527 int nla_memcmp(const struct nlattr *nla, const void *data, size_t size); 528 int nla_strcmp(const struct nlattr *nla, const char *str); 529 struct nlattr *__nla_reserve(struct sk_buff *skb, int attrtype, int attrlen); [all …]
|
D | rtnetlink.h | 83 struct net_device *(*alloc)(struct nlattr *tb[], 93 int (*validate)(struct nlattr *tb[], 94 struct nlattr *data[], 99 struct nlattr *tb[], 100 struct nlattr *data[], 103 struct nlattr *tb[], 104 struct nlattr *data[], 123 struct nlattr *tb[], 124 struct nlattr *data[], 170 const struct nlattr *attr, [all …]
|
/Linux-v6.1/net/openvswitch/ |
D | flow_netlink.h | 35 int parse_flow_nlattrs(const struct nlattr *attr, const struct nlattr *a[], 38 const struct nlattr *a[OVS_KEY_ATTR_MAX + 1], 46 const struct nlattr *key, const struct nlattr *mask, 52 bool ovs_nla_get_ufid(struct sw_flow_id *, const struct nlattr *, bool log); 53 int ovs_nla_get_identifier(struct sw_flow_id *sfid, const struct nlattr *ufid, 55 u32 ovs_nla_get_ufid_flags(const struct nlattr *attr); 57 int ovs_nla_copy_actions(struct net *net, const struct nlattr *attr, 62 int ovs_nla_put_actions(const struct nlattr *attr, 68 int nsh_key_from_nlattr(const struct nlattr *attr, struct ovs_key_nsh *nsh, 70 int nsh_hdr_from_nlattr(const struct nlattr *attr, struct nshhdr *nh,
|
D | flow_netlink.c | 51 static bool actions_may_change_flow(const struct nlattr *actions) in actions_may_change_flow() 53 struct nlattr *nla; in actions_may_change_flow() 466 static int __parse_flow_nlattrs(const struct nlattr *attr, in __parse_flow_nlattrs() 467 const struct nlattr *a[], in __parse_flow_nlattrs() 470 const struct nlattr *nla; in __parse_flow_nlattrs() 518 static int parse_flow_mask_nlattrs(const struct nlattr *attr, in parse_flow_mask_nlattrs() 519 const struct nlattr *a[], u64 *attrsp, in parse_flow_mask_nlattrs() 525 int parse_flow_nlattrs(const struct nlattr *attr, const struct nlattr *a[], in parse_flow_nlattrs() 531 static int genev_tun_opt_from_nlattr(const struct nlattr *a, in genev_tun_opt_from_nlattr() 582 static int vxlan_tun_opt_from_nlattr(const struct nlattr *attr, in vxlan_tun_opt_from_nlattr() [all …]
|
D | vport-vxlan.c | 31 struct nlattr *exts; in vxlan_get_options() 51 static int vxlan_configure_exts(struct vport *vport, struct nlattr *attr, in vxlan_configure_exts() 54 struct nlattr *exts[OVS_VXLAN_EXT_MAX + 1]; in vxlan_configure_exts() 57 if (nla_len(attr) < sizeof(struct nlattr)) in vxlan_configure_exts() 74 struct nlattr *options = parms->options; in vxlan_tnl_create() 77 struct nlattr *a; in vxlan_tnl_create()
|
D | vport.h | 35 int ovs_vport_set_options(struct vport *, struct nlattr *options); 38 int ovs_vport_set_upcall_portids(struct vport *, const struct nlattr *pids); 101 struct nlattr *options; 106 struct nlattr *upcall_portids; 132 int (*set_options)(struct vport *, struct nlattr *);
|
D | conntrack.h | 19 int ovs_ct_copy_action(struct net *, const struct nlattr *, 32 void ovs_ct_free_action(const struct nlattr *a); 50 static inline int ovs_ct_copy_action(struct net *net, const struct nlattr *nla, in ovs_ct_copy_action() 98 static inline void ovs_ct_free_action(const struct nlattr *a) { } in ovs_ct_free_action()
|
/Linux-v6.1/tools/bpf/bpftool/ |
D | netlink_dumper.c | 14 static void xdp_dump_prog_id(struct nlattr **tb, int attr, in xdp_dump_prog_id() 29 static int do_xdp_dump_one(struct nlattr *attr, unsigned int ifindex, in do_xdp_dump_one() 32 struct nlattr *tb[IFLA_XDP_MAX + 1]; in do_xdp_dump_one() 72 int do_xdp_dump(struct ifinfomsg *ifinfo, struct nlattr **tb) in do_xdp_dump() 81 static int do_bpf_dump_one_act(struct nlattr *attr) in do_bpf_dump_one_act() 83 struct nlattr *tb[TCA_ACT_BPF_MAX + 1]; in do_bpf_dump_one_act() 102 static int do_dump_one_act(struct nlattr *attr) in do_dump_one_act() 104 struct nlattr *tb[TCA_ACT_MAX + 1]; in do_dump_one_act() 119 static int do_bpf_act_dump(struct nlattr *attr) in do_bpf_act_dump() 121 struct nlattr *tb[TCA_ACT_MAX_PRIO + 1]; in do_bpf_act_dump() [all …]
|
/Linux-v6.1/lib/ |
D | nlattr.c | 55 static int __nla_validate_parse(const struct nlattr *head, int len, int maxtype, 59 struct nlattr **tb, unsigned int depth); 61 static int validate_nla_bitfield32(const struct nlattr *nla, in validate_nla_bitfield32() 84 static int nla_validate_array(const struct nlattr *head, int len, int maxtype, in nla_validate_array() 89 const struct nlattr *entry; in nla_validate_array() 165 const struct nlattr *nla, in nla_validate_range_unsigned() 278 const struct nlattr *nla, in nla_validate_int_range_signed() 313 const struct nlattr *nla, in nla_validate_int_range() 339 const struct nlattr *nla, in nla_validate_mask() 369 static int validate_nla(const struct nlattr *nla, int maxtype, in validate_nla() [all …]
|
/Linux-v6.1/drivers/block/drbd/ |
D | drbd_nla.c | 7 static int drbd_nla_check_mandatory(int maxtype, struct nlattr *nla) in drbd_nla_check_mandatory() 9 struct nlattr *head = nla_data(nla); in drbd_nla_check_mandatory() 31 int drbd_nla_parse_nested(struct nlattr *tb[], int maxtype, struct nlattr *nla, in drbd_nla_parse_nested() 44 struct nlattr *drbd_nla_find_nested(int maxtype, struct nlattr *nla, int attrtype) in drbd_nla_find_nested()
|
D | drbd_nla.h | 5 extern int drbd_nla_parse_nested(struct nlattr *tb[], int maxtype, struct nlattr *nla, 7 extern struct nlattr *drbd_nla_find_nested(int maxtype, struct nlattr *nla, int attrtype);
|
/Linux-v6.1/net/bridge/ |
D | br_mrp_netlink.c | 31 static int br_mrp_instance_parse(struct net_bridge *br, struct nlattr *attr, in br_mrp_instance_parse() 34 struct nlattr *tb[IFLA_BRIDGE_MRP_INSTANCE_MAX + 1]; in br_mrp_instance_parse() 76 struct nlattr *attr, in br_mrp_port_state_parse() 79 struct nlattr *tb[IFLA_BRIDGE_MRP_PORT_STATE_MAX + 1]; in br_mrp_port_state_parse() 105 struct nlattr *attr, in br_mrp_port_role_parse() 108 struct nlattr *tb[IFLA_BRIDGE_MRP_PORT_ROLE_MAX + 1]; in br_mrp_port_role_parse() 134 static int br_mrp_ring_state_parse(struct net_bridge *br, struct nlattr *attr, in br_mrp_ring_state_parse() 137 struct nlattr *tb[IFLA_BRIDGE_MRP_RING_STATE_MAX + 1]; in br_mrp_ring_state_parse() 168 static int br_mrp_ring_role_parse(struct net_bridge *br, struct nlattr *attr, in br_mrp_ring_role_parse() 171 struct nlattr *tb[IFLA_BRIDGE_MRP_RING_ROLE_MAX + 1]; in br_mrp_ring_role_parse() [all …]
|
D | br_cfm_netlink.c | 90 static int br_mep_create_parse(struct net_bridge *br, struct nlattr *attr, in br_mep_create_parse() 93 struct nlattr *tb[IFLA_BRIDGE_CFM_MEP_CREATE_MAX + 1]; in br_mep_create_parse() 130 static int br_mep_delete_parse(struct net_bridge *br, struct nlattr *attr, in br_mep_delete_parse() 133 struct nlattr *tb[IFLA_BRIDGE_CFM_MEP_DELETE_MAX + 1]; in br_mep_delete_parse() 153 static int br_mep_config_parse(struct net_bridge *br, struct nlattr *attr, in br_mep_config_parse() 156 struct nlattr *tb[IFLA_BRIDGE_CFM_MEP_CONFIG_MAX + 1]; in br_mep_config_parse() 195 static int br_cc_config_parse(struct net_bridge *br, struct nlattr *attr, in br_cc_config_parse() 198 struct nlattr *tb[IFLA_BRIDGE_CFM_CC_CONFIG_MAX + 1]; in br_cc_config_parse() 236 static int br_cc_peer_mep_add_parse(struct net_bridge *br, struct nlattr *attr, in br_cc_peer_mep_add_parse() 239 struct nlattr *tb[IFLA_BRIDGE_CFM_CC_PEER_MEP_MAX + 1]; in br_cc_peer_mep_add_parse() [all …]
|
/Linux-v6.1/net/tipc/ |
D | netlink_compat.c | 68 int (*format)(struct tipc_nl_compat_msg *msg, struct nlattr **attrs); 191 struct nlattr **attrbuf; in __tipc_nl_compat_dumpit() 209 sizeof(struct nlattr *), GFP_KERNEL); in __tipc_nl_compat_dumpit() 337 struct nlattr **attrbuf; in __tipc_nl_compat_doit() 345 sizeof(struct nlattr *), in __tipc_nl_compat_doit() 367 (const struct nlattr *)trans_buf->data, in __tipc_nl_compat_doit() 409 struct nlattr **attrs) in tipc_nl_compat_bearer_dump() 411 struct nlattr *bearer[TIPC_NLA_BEARER_MAX + 1]; in tipc_nl_compat_bearer_dump() 431 struct nlattr *prop; in tipc_nl_compat_bearer_enable() 432 struct nlattr *bearer; in tipc_nl_compat_bearer_enable() [all …]
|
/Linux-v6.1/net/dcb/ |
D | dcbnl.c | 208 u32 seq, struct nlattr **tb, struct sk_buff *skb) in dcbnl_getstate() 219 u32 seq, struct nlattr **tb, struct sk_buff *skb) in dcbnl_getpfccfg() 221 struct nlattr *data[DCB_PFC_UP_ATTR_MAX + 1], *nest; in dcbnl_getpfccfg() 264 u32 seq, struct nlattr **tb, struct sk_buff *skb) in dcbnl_getperm_hwaddr() 278 u32 seq, struct nlattr **tb, struct sk_buff *skb) in dcbnl_getcap() 280 struct nlattr *data[DCB_CAP_ATTR_MAX + 1], *nest; in dcbnl_getcap() 323 u32 seq, struct nlattr **tb, struct sk_buff *skb) in dcbnl_getnumtcs() 325 struct nlattr *data[DCB_NUMTCS_ATTR_MAX + 1], *nest; in dcbnl_getnumtcs() 370 u32 seq, struct nlattr **tb, struct sk_buff *skb) in dcbnl_setnumtcs() 372 struct nlattr *data[DCB_NUMTCS_ATTR_MAX + 1]; in dcbnl_setnumtcs() [all …]
|
/Linux-v6.1/net/ethtool/ |
D | bitset.c | 236 struct nlattr *nest; in ethnl_put_bitset32() 237 struct nlattr *attr; in ethnl_put_bitset32() 270 struct nlattr *bits; in ethnl_put_bitset32() 328 int ethnl_bitset_is_compact(const struct nlattr *bitset, bool *compact) in ethnl_bitset_is_compact() 330 struct nlattr *tb[ARRAY_SIZE(bitset_policy)]; in ethnl_bitset_is_compact() 378 const struct nlattr *bit_attr, bool no_mask, in ethnl_parse_bit() 382 struct nlattr *tb[ARRAY_SIZE(bit_policy)]; in ethnl_parse_bit() 430 const struct nlattr *attr, struct nlattr **tb, in ethnl_update_bitset32_verbose() 434 struct nlattr *bit_attr; in ethnl_update_bitset32_verbose() 481 const struct nlattr *nest, in ethnl_compact_sanity_checks() [all …]
|
D | bitset.h | 10 int ethnl_bitset_is_compact(const struct nlattr *bitset, bool *compact); 24 const struct nlattr *attr, ethnl_string_array_t names, 27 const struct nlattr *attr, ethnl_string_array_t names, 30 unsigned int nbits, const struct nlattr *attr,
|
/Linux-v6.1/include/linux/netfilter/ipset/ |
D | ip_set.h | 163 int (*uadt)(struct ip_set *set, struct nlattr *tb[], 229 struct nlattr *tb[], u32 flags); 329 extern int ip_set_get_ipaddr4(struct nlattr *nla, __be32 *ipaddr); 330 extern int ip_set_get_ipaddr6(struct nlattr *nla, union nf_inet_addr *ipaddr); 331 extern size_t ip_set_elem_len(struct ip_set *set, struct nlattr *tb[], 333 extern int ip_set_get_extensions(struct ip_set *set, struct nlattr *tb[], 343 ip_set_get_hostipaddr4(struct nlattr *nla, u32 *ipaddr) in ip_set_get_hostipaddr4() 373 ip_set_attr_netorder(struct nlattr *tb[], int type) in ip_set_attr_netorder() 379 ip_set_optattr_netorder(struct nlattr *tb[], int type) in ip_set_optattr_netorder() 386 ip_set_get_h32(const struct nlattr *attr) in ip_set_get_h32() [all …]
|
/Linux-v6.1/tools/accounting/ |
D | procacct.c | 129 struct nlattr *na; in send_cmd() 143 na = (struct nlattr *) GENLMSG_DATA(&msg); in send_cmd() 178 struct nlattr *na; in get_family_id() 193 na = (struct nlattr *) GENLMSG_DATA(&ans); in get_family_id() 194 na = (struct nlattr *) ((char *) na + NLA_ALIGN(na->nla_len)); in get_family_id() 224 void handle_aggr(int mother, struct nlattr *na, int fd) in handle_aggr() 230 na = (struct nlattr *) NLA_DATA(na); in handle_aggr() 257 na = (struct nlattr *)((char *)na + in handle_aggr() 269 struct nlattr *na; in main() 379 na = (struct nlattr *) GENLMSG_DATA(&msg); in main() [all …]
|
/Linux-v6.1/net/8021q/ |
D | vlan_netlink.c | 31 static inline int vlan_validate_qos_map(struct nlattr *attr) in vlan_validate_qos_map() 39 static int vlan_validate(struct nlattr *tb[], struct nlattr *data[], in vlan_validate() 104 static int vlan_changelink(struct net_device *dev, struct nlattr *tb[], in vlan_changelink() 105 struct nlattr *data[], in vlan_changelink() 110 struct nlattr *attr; in vlan_changelink() 137 struct nlattr *tb[], struct nlattr *data[], in vlan_newlink() 203 return nla_total_size(sizeof(struct nlattr)) + in vlan_qos_map_size() 224 struct nlattr *nest; in vlan_fill_info()
|
/Linux-v6.1/net/netfilter/ |
D | nf_conntrack_netlink.c | 72 struct nlattr *nest_parms; in ctnetlink_dump_tuples_proto() 113 struct nlattr *nest_parms; in ctnetlink_dump_tuples_ip() 196 struct nlattr *nest_proto; in ctnetlink_dump_protoinfo() 220 struct nlattr *nest_helper; in ctnetlink_dump_helpinfo() 257 struct nlattr *nest_count; in dump_counters() 305 struct nlattr *nest_count; in ctnetlink_dump_timestamp() 352 struct nlattr *nest_secctx; in ctnetlink_dump_secctx() 416 struct nlattr *nest_parms; in ctnetlink_dump_master() 437 struct nlattr *nest_parms; in dump_ct_seq_adj() 486 struct nlattr *nest_parms; in ctnetlink_dump_ct_synproxy() [all …]
|
D | nfnetlink_cthelper.c | 73 const struct nlattr *attr) in nfnl_cthelper_parse_tuple() 76 struct nlattr *tb[NFCTH_TUPLE_MAX+1]; in nfnl_cthelper_parse_tuple() 96 nfnl_cthelper_from_nlattr(struct nlattr *attr, struct nf_conn *ct) in nfnl_cthelper_from_nlattr() 138 const struct nlattr *attr) in nfnl_cthelper_expect_policy() 141 struct nlattr *tb[NFCTH_POLICY_MAX+1]; in nfnl_cthelper_expect_policy() 173 const struct nlattr *attr) in nfnl_cthelper_parse_expect_policy() 177 struct nlattr *tb[NFCTH_POLICY_SET_MAX+1]; in nfnl_cthelper_parse_expect_policy() 220 nfnl_cthelper_create(const struct nlattr * const tb[], in nfnl_cthelper_create() 290 const struct nlattr *attr) in nfnl_cthelper_update_policy_one() 292 struct nlattr *tb[NFCTH_POLICY_MAX + 1]; in nfnl_cthelper_update_policy_one() [all …]
|
/Linux-v6.1/net/sched/ |
D | act_tunnel_key.c | 86 tunnel_key_copy_geneve_opt(const struct nlattr *nla, void *dst, int dst_len, in tunnel_key_copy_geneve_opt() 89 struct nlattr *tb[TCA_TUNNEL_KEY_ENC_OPT_GENEVE_MAX + 1]; in tunnel_key_copy_geneve_opt() 138 tunnel_key_copy_vxlan_opt(const struct nlattr *nla, void *dst, int dst_len, in tunnel_key_copy_vxlan_opt() 141 struct nlattr *tb[TCA_TUNNEL_KEY_ENC_OPT_VXLAN_MAX + 1]; in tunnel_key_copy_vxlan_opt() 165 tunnel_key_copy_erspan_opt(const struct nlattr *nla, void *dst, int dst_len, in tunnel_key_copy_erspan_opt() 168 struct nlattr *tb[TCA_TUNNEL_KEY_ENC_OPT_ERSPAN_MAX + 1]; in tunnel_key_copy_erspan_opt() 217 static int tunnel_key_copy_opts(const struct nlattr *nla, u8 *dst, in tunnel_key_copy_opts() 221 const struct nlattr *attr, *head = nla_data(nla); in tunnel_key_copy_opts() 290 static int tunnel_key_get_opts_len(struct nlattr *nla, in tunnel_key_get_opts_len() 296 static int tunnel_key_opts_set(struct nlattr *nla, struct ip_tunnel_info *info, in tunnel_key_opts_set() [all …]
|