| /Linux-v5.4/include/net/ |
| D | netlink.h | 300 int (*validate)(const struct nlattr *attr, 434 int __nla_validate(const struct nlattr *head, int len, int maxtype, 437 int __nla_parse(struct nlattr **tb, int maxtype, const struct nlattr *head, 441 struct nlattr *nla_find(const struct nlattr *head, int len, int attrtype); 442 size_t nla_strlcpy(char *dst, const struct nlattr *nla, size_t dstsize); 443 char *nla_strdup(const struct nlattr *nla, gfp_t flags); 444 int nla_memcpy(void *dest, const struct nlattr *src, int count); 445 int nla_memcmp(const struct nlattr *nla, const void *data, size_t size); 446 int nla_strcmp(const struct nlattr *nla, const char *str); 447 struct nlattr *__nla_reserve(struct sk_buff *skb, int attrtype, int attrlen); [all …]
|
| D | rtnetlink.h | 69 int (*validate)(struct nlattr *tb[], 70 struct nlattr *data[], 75 struct nlattr *tb[], 76 struct nlattr *data[], 79 struct nlattr *tb[], 80 struct nlattr *data[], 99 struct nlattr *tb[], 100 struct nlattr *data[], 146 const struct nlattr *attr); 148 const struct nlattr *attr); [all …]
|
| D | act_api.h | 94 int (*init)(struct net *net, struct nlattr *nla, 95 struct nlattr *est, struct tc_action **act, int ovr, 155 int tcf_idr_create(struct tc_action_net *tn, u32 index, struct nlattr *est, 176 int tcf_action_init(struct net *net, struct tcf_proto *tp, struct nlattr *nla, 177 struct nlattr *est, char *name, int ovr, int bind, 181 struct nlattr *nla, struct nlattr *est,
|
| /Linux-v5.4/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() 461 static int __parse_flow_nlattrs(const struct nlattr *attr, in __parse_flow_nlattrs() 462 const struct nlattr *a[], in __parse_flow_nlattrs() 465 const struct nlattr *nla; in __parse_flow_nlattrs() 506 static int parse_flow_mask_nlattrs(const struct nlattr *attr, in parse_flow_mask_nlattrs() 507 const struct nlattr *a[], u64 *attrsp, in parse_flow_mask_nlattrs() 513 int parse_flow_nlattrs(const struct nlattr *attr, const struct nlattr *a[], in parse_flow_nlattrs() 519 static int genev_tun_opt_from_nlattr(const struct nlattr *a, in genev_tun_opt_from_nlattr() 570 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); 97 struct nlattr *options; 102 struct nlattr *upcall_portids; 128 int (*set_options)(struct vport *, struct nlattr *);
|
| D | conntrack.h | 19 int ovs_ct_copy_action(struct net *, const struct nlattr *, 31 void ovs_ct_free_action(const struct nlattr *a); 49 static inline int ovs_ct_copy_action(struct net *net, const struct nlattr *nla, in ovs_ct_copy_action() 96 static inline void ovs_ct_free_action(const struct nlattr *a) { } in ovs_ct_free_action()
|
| /Linux-v5.4/tools/lib/bpf/ |
| D | nlattr.c | 24 static struct nlattr *nla_next(const struct nlattr *nla, int *remaining) in nla_next() 29 return (struct nlattr *) ((char *) nla + totlen); in nla_next() 32 static int nla_ok(const struct nlattr *nla, int remaining) in nla_ok() 39 static int nla_type(const struct nlattr *nla) in nla_type() 44 static int validate_nla(struct nlattr *nla, int maxtype, in validate_nla() 103 int libbpf_nla_parse(struct nlattr *tb[], int maxtype, struct nlattr *head, in libbpf_nla_parse() 106 struct nlattr *nla; in libbpf_nla_parse() 109 memset(tb, 0, sizeof(struct nlattr *) * (maxtype + 1)); in libbpf_nla_parse() 148 int libbpf_nla_parse_nested(struct nlattr *tb[], int maxtype, in libbpf_nla_parse_nested() 149 struct nlattr *nla, in libbpf_nla_parse_nested() [all …]
|
| D | nlattr.h | 69 static inline void *libbpf_nla_data(const struct nlattr *nla) in libbpf_nla_data() 74 static inline uint8_t libbpf_nla_getattr_u8(const struct nlattr *nla) in libbpf_nla_getattr_u8() 79 static inline uint32_t libbpf_nla_getattr_u32(const struct nlattr *nla) in libbpf_nla_getattr_u32() 84 static inline const char *libbpf_nla_getattr_str(const struct nlattr *nla) in libbpf_nla_getattr_str() 93 static inline int libbpf_nla_len(const struct nlattr *nla) in libbpf_nla_len() 98 int libbpf_nla_parse(struct nlattr *tb[], int maxtype, struct nlattr *head, 100 int libbpf_nla_parse_nested(struct nlattr *tb[], int maxtype, 101 struct nlattr *nla,
|
| D | netlink.c | 134 struct nlattr *nla, *nla_xdp; in bpf_set_link_xdp_fd() 156 nla = (struct nlattr *)(((char *)&req) in bpf_set_link_xdp_fd() 162 nla_xdp = (struct nlattr *)((char *)nla + nla->nla_len); in bpf_set_link_xdp_fd() 170 nla_xdp = (struct nlattr *)((char *)nla + nla->nla_len); in bpf_set_link_xdp_fd() 193 struct nlattr *tb[IFLA_MAX + 1], *attr; in __dump_link_nlmsg() 198 attr = (struct nlattr *) ((void *) ifi + NLMSG_ALIGN(sizeof(*ifi))); in __dump_link_nlmsg() 219 static int get_xdp_id(void *cookie, void *msg, struct nlattr **tb) in get_xdp_id() 221 struct nlattr *xdp_tb[IFLA_XDP_MAX + 1]; in get_xdp_id() 310 struct nlattr *tb[TCA_MAX + 1], *attr; in __dump_class_nlmsg() 315 attr = (struct nlattr *) ((void *) t + NLMSG_ALIGN(sizeof(*t))); in __dump_class_nlmsg() [all …]
|
| /Linux-v5.4/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-v5.4/lib/ |
| D | nlattr.c | 47 static int validate_nla_bitfield32(const struct nlattr *nla, in validate_nla_bitfield32() 70 static int nla_validate_array(const struct nlattr *head, int len, int maxtype, in nla_validate_array() 75 const struct nlattr *entry; in nla_validate_array() 100 const struct nlattr *nla, in nla_validate_int_range() 157 static int validate_nla(const struct nlattr *nla, int maxtype, in validate_nla() 357 static int __nla_validate_parse(const struct nlattr *head, int len, int maxtype, in __nla_validate_parse() 361 struct nlattr **tb) in __nla_validate_parse() 363 const struct nlattr *nla; in __nla_validate_parse() 367 memset(tb, 0, sizeof(struct nlattr *) * (maxtype + 1)); in __nla_validate_parse() 389 tb[type] = (struct nlattr *)nla; in __nla_validate_parse() [all …]
|
| /Linux-v5.4/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-v5.4/net/tipc/ |
| D | netlink_compat.c | 68 int (*format)(struct tipc_nl_compat_msg *msg, struct nlattr **attrs); 210 struct nlattr **attrs; in __tipc_nl_compat_dumpit() 304 struct nlattr **attrbuf; in __tipc_nl_compat_doit() 312 sizeof(struct nlattr *), in __tipc_nl_compat_doit() 334 (const struct nlattr *)trans_buf->data, in __tipc_nl_compat_doit() 376 struct nlattr **attrs) in tipc_nl_compat_bearer_dump() 378 struct nlattr *bearer[TIPC_NLA_BEARER_MAX + 1]; in tipc_nl_compat_bearer_dump() 398 struct nlattr *prop; in tipc_nl_compat_bearer_enable() 399 struct nlattr *bearer; in tipc_nl_compat_bearer_enable() 442 struct nlattr *bearer; in tipc_nl_compat_bearer_disable() [all …]
|
| /Linux-v5.4/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-v5.4/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() 133 struct nlattr *tb[], struct nlattr *data[], in vlan_newlink() 193 return nla_total_size(sizeof(struct nlattr)) + in vlan_qos_map_size() 214 struct nlattr *nest; in vlan_fill_info()
|
| /Linux-v5.4/net/netfilter/ |
| D | nf_conntrack_netlink.c | 64 struct nlattr *nest_parms; in ctnetlink_dump_tuples_proto() 105 struct nlattr *nest_parms; in ctnetlink_dump_tuples_ip() 183 struct nlattr *nest_proto; in ctnetlink_dump_protoinfo() 207 struct nlattr *nest_helper; in ctnetlink_dump_helpinfo() 241 struct nlattr *nest_count; in dump_counters() 289 struct nlattr *nest_count; in ctnetlink_dump_timestamp() 331 struct nlattr *nest_secctx; in ctnetlink_dump_secctx() 395 struct nlattr *nest_parms; in ctnetlink_dump_master() 416 struct nlattr *nest_parms; in dump_ct_seq_adj() 465 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() 134 const struct nlattr *attr) in nfnl_cthelper_expect_policy() 137 struct nlattr *tb[NFCTH_POLICY_MAX+1]; in nfnl_cthelper_expect_policy() 169 const struct nlattr *attr) in nfnl_cthelper_parse_expect_policy() 173 struct nlattr *tb[NFCTH_POLICY_SET_MAX+1]; in nfnl_cthelper_parse_expect_policy() 216 nfnl_cthelper_create(const struct nlattr * const tb[], in nfnl_cthelper_create() 285 const struct nlattr *attr) in nfnl_cthelper_update_policy_one() 287 struct nlattr *tb[NFCTH_POLICY_MAX + 1]; in nfnl_cthelper_update_policy_one() [all …]
|
| D | nft_tunnel.c | 74 const struct nlattr * const tb[]) in nft_tunnel_get_init() 163 const struct nlattr *attr, in nft_tunnel_obj_ip_init() 166 struct nlattr *tb[NFTA_TUNNEL_KEY_IP_MAX + 1]; in nft_tunnel_obj_ip_init() 192 const struct nlattr *attr, in nft_tunnel_obj_ip6_init() 195 struct nlattr *tb[NFTA_TUNNEL_KEY_IP6_MAX + 1]; in nft_tunnel_obj_ip6_init() 228 static int nft_tunnel_obj_vxlan_init(const struct nlattr *attr, in nft_tunnel_obj_vxlan_init() 231 struct nlattr *tb[NFTA_TUNNEL_KEY_VXLAN_MAX + 1]; in nft_tunnel_obj_vxlan_init() 256 static int nft_tunnel_obj_erspan_init(const struct nlattr *attr, in nft_tunnel_obj_erspan_init() 259 struct nlattr *tb[NFTA_TUNNEL_KEY_ERSPAN_MAX + 1]; in nft_tunnel_obj_erspan_init() 306 const struct nlattr *attr, in nft_tunnel_obj_opts_init() [all …]
|
| /Linux-v5.4/net/sched/ |
| D | act_api.c | 220 struct nlattr *nest; in tcf_dump_walker() 290 struct nlattr *nest; in tcf_del_walker() 400 int tcf_idr_create(struct tc_action_net *tn, u32 index, struct nlattr *est, in tcf_idr_create() 627 static struct tc_action_ops *tc_lookup_action(struct nlattr *kind) in tc_lookup_action() 758 struct nlattr *nest; in tcf_action_dump_1() 796 struct nlattr *nest; in tcf_action_dump() 818 static struct tc_cookie *nla_memdup_cookie(struct nlattr **tb) in nla_memdup_cookie() 843 struct nlattr *nla, struct nlattr *est, in tcf_action_init_1() 852 struct nlattr *tb[TCA_ACT_MAX + 1]; in tcf_action_init_1() 853 struct nlattr *kind; in tcf_action_init_1() [all …]
|
| /Linux-v5.4/include/linux/netfilter/ipset/ |
| D | ip_set.h | 164 int (*uadt)(struct ip_set *set, struct nlattr *tb[], 214 struct nlattr *tb[], u32 flags); 333 extern int ip_set_get_ipaddr4(struct nlattr *nla, __be32 *ipaddr); 334 extern int ip_set_get_ipaddr6(struct nlattr *nla, union nf_inet_addr *ipaddr); 335 extern size_t ip_set_elem_len(struct ip_set *set, struct nlattr *tb[], 337 extern int ip_set_get_extensions(struct ip_set *set, struct nlattr *tb[], 347 ip_set_get_hostipaddr4(struct nlattr *nla, u32 *ipaddr) in ip_set_get_hostipaddr4() 377 ip_set_attr_netorder(struct nlattr *tb[], int type) in ip_set_attr_netorder() 383 ip_set_optattr_netorder(struct nlattr *tb[], int type) in ip_set_optattr_netorder() 390 ip_set_get_h32(const struct nlattr *attr) in ip_set_get_h32() [all …]
|
| /Linux-v5.4/include/linux/ |
| D | inet_diag.h | 10 struct nlattr; 19 struct nlattr *bc); 52 struct nlattr *bc); 61 int inet_diag_bc_sk(const struct nlattr *_bc, struct sock *sk);
|
| /Linux-v5.4/net/xfrm/ |
| D | xfrm_user.c | 37 static int verify_one_alg(struct nlattr **attrs, enum xfrm_attr_type_t type) in verify_one_alg() 39 struct nlattr *rt = attrs[type]; in verify_one_alg() 63 static int verify_auth_trunc(struct nlattr **attrs) in verify_auth_trunc() 65 struct nlattr *rt = attrs[XFRMA_ALG_AUTH_TRUNC]; in verify_auth_trunc() 79 static int verify_aead(struct nlattr **attrs) in verify_aead() 81 struct nlattr *rt = attrs[XFRMA_ALG_AEAD]; in verify_aead() 95 static void verify_one_addr(struct nlattr **attrs, enum xfrm_attr_type_t type, in verify_one_addr() 98 struct nlattr *rt = attrs[type]; in verify_one_addr() 104 static inline int verify_sec_ctx_len(struct nlattr **attrs) in verify_sec_ctx_len() 106 struct nlattr *rt = attrs[XFRMA_SEC_CTX]; in verify_sec_ctx_len() [all …]
|