Home
last modified time | relevance | path

Searched defs:nla (Results 1 – 25 of 93) sorted by relevance

1234

/linux/include/net/
H A Dnetlink.h1240 nla_type(const struct nlattr * nla) nla_type() argument
1249 nla_data(const struct nlattr * nla) nla_data() argument
1258 nla_len(const struct nlattr * nla) nla_len() argument
1268 nla_ok(const struct nlattr * nla,int remaining) nla_ok() argument
1283 nla_next(const struct nlattr * nla,int * remaining) nla_next() argument
1299 nla_find_nested(const struct nlattr * nla,int attrtype) nla_find_nested() argument
1315 nla_parse_nested(struct nlattr * tb[],int maxtype,const struct nlattr * nla,const struct nla_policy * policy,struct netlink_ext_ack * extack) nla_parse_nested() argument
1339 nla_parse_nested_deprecated(struct nlattr * tb[],int maxtype,const struct nlattr * nla,const struct nla_policy * policy,struct netlink_ext_ack * extack) nla_parse_nested_deprecated() argument
1696 nla_get_u32(const struct nlattr * nla) nla_get_u32() argument
1708 nla_get_u32_default(const struct nlattr * nla,u32 defvalue) nla_get_u32_default() argument
1719 nla_get_be32(const struct nlattr * nla) nla_get_be32() argument
1731 nla_get_be32_default(const struct nlattr * nla,__be32 defvalue) nla_get_be32_default() argument
1743 nla_get_le32(const struct nlattr * nla) nla_get_le32() argument
1755 nla_get_le32_default(const struct nlattr * nla,__le32 defvalue) nla_get_le32_default() argument
1767 nla_get_u16(const struct nlattr * nla) nla_get_u16() argument
1779 nla_get_u16_default(const struct nlattr * nla,u16 defvalue) nla_get_u16_default() argument
1790 nla_get_be16(const struct nlattr * nla) nla_get_be16() argument
1802 nla_get_be16_default(const struct nlattr * nla,__be16 defvalue) nla_get_be16_default() argument
1814 nla_get_le16(const struct nlattr * nla) nla_get_le16() argument
1826 nla_get_le16_default(const struct nlattr * nla,__le16 defvalue) nla_get_le16_default() argument
1838 nla_get_u8(const struct nlattr * nla) nla_get_u8() argument
1850 nla_get_u8_default(const struct nlattr * nla,u8 defvalue) nla_get_u8_default() argument
1861 nla_get_u64(const struct nlattr * nla) nla_get_u64() argument
1877 nla_get_u64_default(const struct nlattr * nla,u64 defvalue) nla_get_u64_default() argument
1888 nla_get_uint(const struct nlattr * nla) nla_get_uint() argument
1902 nla_get_uint_default(const struct nlattr * nla,u64 defvalue) nla_get_uint_default() argument
1913 nla_get_be64(const struct nlattr * nla) nla_get_be64() argument
1929 nla_get_be64_default(const struct nlattr * nla,__be64 defvalue) nla_get_be64_default() argument
1941 nla_get_le64(const struct nlattr * nla) nla_get_le64() argument
1953 nla_get_le64_default(const struct nlattr * nla,__le64 defvalue) nla_get_le64_default() argument
1965 nla_get_s32(const struct nlattr * nla) nla_get_s32() argument
1977 nla_get_s32_default(const struct nlattr * nla,s32 defvalue) nla_get_s32_default() argument
1988 nla_get_s16(const struct nlattr * nla) nla_get_s16() argument
2000 nla_get_s16_default(const struct nlattr * nla,s16 defvalue) nla_get_s16_default() argument
2011 nla_get_s8(const struct nlattr * nla) nla_get_s8() argument
2023 nla_get_s8_default(const struct nlattr * nla,s8 defvalue) nla_get_s8_default() argument
2034 nla_get_s64(const struct nlattr * nla) nla_get_s64() argument
2050 nla_get_s64_default(const struct nlattr * nla,s64 defvalue) nla_get_s64_default() argument
2061 nla_get_sint(const struct nlattr * nla) nla_get_sint() argument
2075 nla_get_sint_default(const struct nlattr * nla,s64 defvalue) nla_get_sint_default() argument
2086 nla_get_flag(const struct nlattr * nla) nla_get_flag() argument
2097 nla_get_msecs(const struct nlattr * nla) nla_get_msecs() argument
2111 nla_get_msecs_default(const struct nlattr * nla,unsigned long defvalue) nla_get_msecs_default() argument
2123 nla_get_in_addr(const struct nlattr * nla) nla_get_in_addr() argument
2135 nla_get_in_addr_default(const struct nlattr * nla,__be32 defvalue) nla_get_in_addr_default() argument
2147 nla_get_in6_addr(const struct nlattr * nla) nla_get_in6_addr() argument
2159 nla_get_bitfield32(const struct nlattr * nla) nla_get_bitfield32() argument
2384 nla_for_each_nested(pos,nla,rem) global() argument
2394 nla_for_each_nested_type(pos,type,nla,rem) global() argument
2403 nla_is_last(const struct nlattr * nla,int rem) nla_is_last() argument
[all...]
H A Dbpf_sk_storage.h47 bpf_sk_storage_diag_alloc(const struct nlattr *nla) in bpf_sk_storage_diag_alloc()
/linux/tools/lib/bpf/
H A Dnlattr.h84 static inline void *libbpf_nla_data(const struct nlattr *nla) in libbpf_nla_data()
89 static inline uint8_t libbpf_nla_getattr_u8(const struct nlattr *nla) in libbpf_nla_getattr_u8()
94 static inline uint16_t libbpf_nla_getattr_u16(const struct nlattr *nla) in libbpf_nla_getattr_u16()
99 static inline uint32_t libbpf_nla_getattr_u32(const struct nlattr *nla) in libbpf_nla_getattr_u32()
104 static inline uint64_t libbpf_nla_getattr_u64(const struct nlattr *nla) in libbpf_nla_getattr_u64()
109 static inline const char *libbpf_nla_getattr_str(const struct nlattr *nla) in libbpf_nla_getattr_str()
118 static inline int libbpf_nla_len(const struct nlattr *nla) in libbpf_nla_len()
131 static inline struct nlattr *nla_data(struct nlattr *nla) in nla_data()
144 struct nlattr *nla; in nlattr_add() local
H A Dnlattr.c25 static struct nlattr *nla_next(const struct nlattr *nla, int *remaining) in nla_next() argument
33 static int nla_ok(const struct nlattr *nla, int remaining) in nla_ok() argument
40 static int nla_type(const struct nlattr *nla) in nla_type() argument
45 validate_nla(struct nlattr * nla,int maxtype,struct libbpf_nla_policy * policy) validate_nla() argument
107 struct nlattr *nla; libbpf_nla_parse() local
150 libbpf_nla_parse_nested(struct nlattr * tb[],int maxtype,struct nlattr * nla,struct libbpf_nla_policy * policy) libbpf_nla_parse_nested() argument
[all...]
/linux/lib/
H A Dnlattr.c66 static int validate_nla_bitfield32(const struct nlattr *nla, in validate_nla_bitfield32()
171 const struct nlattr *nla, in nla_validate_range_unsigned()
288 const struct nlattr *nla, in nla_validate_int_range_signed()
326 const struct nlattr *nla, in nla_validate_int_range()
354 const struct nlattr *nla, in nla_validate_mask()
393 static int validate_nla(const struct nlattr *nla, int maxtype, in validate_nla()
610 const struct nlattr *nla; in __nla_validate_parse() local
747 const struct nlattr *nla; in nla_find() local
772 ssize_t nla_strscpy(char *dst, const struct nlattr *nla, size_t dstsize) in nla_strscpy()
808 char *nla_strdup(const struct nlattr *nla, gfp_t flags) in nla_strdup()
[all …]
/linux/drivers/block/drbd/
H A Ddrbd_nla.c7 static int drbd_nla_check_mandatory(int maxtype, struct nlattr *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()
/linux/net/sched/
H A Dact_tunnel_key.c88 tunnel_key_copy_geneve_opt(const struct nlattr *nla, void *dst, int dst_len, in tunnel_key_copy_geneve_opt()
140 tunnel_key_copy_vxlan_opt(const struct nlattr *nla, void *dst, int dst_len, in tunnel_key_copy_vxlan_opt()
167 tunnel_key_copy_erspan_opt(const struct nlattr *nla, void *dst, int dst_len, in tunnel_key_copy_erspan_opt()
219 static int tunnel_key_copy_opts(const struct nlattr *nla, u8 *dst, in tunnel_key_copy_opts()
292 static int tunnel_key_get_opts_len(struct nlattr *nla, in tunnel_key_get_opts_len()
298 static int tunnel_key_opts_set(struct nlattr *nla, struct ip_tunnel_info *info, in tunnel_key_opts_set()
357 static int tunnel_key_init(struct net *net, struct nlattr *nla, in tunnel_key_init()
H A Dact_bpf.c102 struct nlattr *nla; in tcf_bpf_dump_bpf_info() local
120 struct nlattr *nla; in tcf_bpf_dump_ebpf_info() local
279 static int tcf_bpf_init(struct net *net, struct nlattr *nla, in tcf_bpf_init()
H A Dematch.c171 struct tcf_ematch *em, struct nlattr *nla, int idx) in tcf_em_validate()
305 int tcf_em_tree_validate(struct tcf_proto *tp, struct nlattr *nla, in tcf_em_tree_validate()
H A Dact_pedit.c42 static struct tcf_pedit_key_ex *tcf_pedit_keys_ex_parse(struct nlattr *nla, in tcf_pedit_keys_ex_parse()
156 static int tcf_pedit_init(struct net *net, struct nlattr *nla, in tcf_pedit_init()
H A Dem_meta.c695 static int meta_var_change(struct meta_value *dst, struct nlattr *nla) in meta_var_change()
748 static int meta_int_change(struct meta_value *dst, struct nlattr *nla) in meta_int_change()
885 static inline int meta_change_data(struct meta_value *dst, struct nlattr *nla) in meta_change_data()
/linux/net/netfilter/
H A Dnf_tables_api.c138 const struct nlattr * const *nla) in nft_ctx_init() argument
941 nft_table_lookup(const struct net * net,const struct nlattr * nla,u8 family,u8 genmask,u32 nlpid) nft_table_lookup() argument
968 nft_table_lookup_byhandle(const struct net * net,const struct nlattr * nla,int family,u8 genmask,u32 nlpid) nft_table_lookup_byhandle() argument
1008 __nf_tables_chain_type_lookup(const struct nlattr * nla,u8 family) __nf_tables_chain_type_lookup() argument
1078 nf_tables_chain_type_lookup(struct net * net,const struct nlattr * nla,u8 family,bool autoload) nf_tables_chain_type_lookup() argument
1264 nf_tables_gettable(struct sk_buff * skb,const struct nfnl_info * info,const struct nlattr * const nla[]) nf_tables_gettable() argument
1529 nf_tables_newtable(struct sk_buff * skb,const struct nfnl_info * info,const struct nlattr * const nla[]) nf_tables_newtable() argument
1696 const struct nlattr * const *nla = ctx->nla; nft_flush() local
1727 nf_tables_deltable(struct sk_buff * skb,const struct nfnl_info * info,const struct nlattr * const nla[]) nf_tables_deltable() argument
1833 nft_chain_lookup(struct net * net,struct nft_table * table,const struct nlattr * nla,u8 genmask) nft_chain_lookup() argument
2123 nf_tables_getchain(struct sk_buff * skb,const struct nfnl_info * info,const struct nlattr * const nla[]) nf_tables_getchain() argument
2410 nft_chain_parse_hook(struct net * net,struct nft_base_chain * basechain,const struct nlattr * const nla[],struct nft_chain_hook * hook,u8 family,u32 flags,struct netlink_ext_ack * extack) nft_chain_parse_hook() argument
2607 const struct nlattr * const *nla = ctx->nla; nf_tables_addchain() local
2753 const struct nlattr * const *nla = ctx->nla; nf_tables_updchain() local
2929 nft_chain_lookup_byid(const struct net * net,const struct nft_table * table,const struct nlattr * nla,u8 genmask) nft_chain_lookup_byid() argument
2946 nf_tables_newchain(struct sk_buff * skb,const struct nfnl_info * info,const struct nlattr * const nla[]) nf_tables_newchain() argument
3051 const struct nlattr * const *nla = ctx->nla; nft_delchain_hook() local
3099 nf_tables_delchain(struct sk_buff * skb,const struct nfnl_info * info,const struct nlattr * const nla[]) nf_tables_delchain() argument
3223 __nft_expr_type_get(u8 family,struct nlattr * nla) __nft_expr_type_get() argument
3240 nft_expr_type_request_module(struct net * net,u8 family,struct nlattr * nla) nft_expr_type_request_module() argument
3252 nft_expr_type_get(struct net * net,u8 family,struct nlattr * nla) nft_expr_type_get() argument
3334 nf_tables_expr_parse(const struct nft_ctx * ctx,const struct nlattr * nla,struct nft_expr_info * info) nf_tables_expr_parse() argument
3387 nft_expr_inner_parse(const struct nft_ctx * ctx,const struct nlattr * nla,struct nft_expr_info * info) nft_expr_inner_parse() argument
3467 nft_expr_init(const struct nft_ctx * ctx,const struct nlattr * nla) nft_expr_init() argument
3549 nft_rule_lookup(const struct net * net,const struct nft_chain * chain,const struct nlattr * nla) nft_rule_lookup() argument
3818 const struct nlattr * const *nla = cb->data; nf_tables_dump_rules_start() local
3858 nf_tables_getrule_single(u32 portid,const struct nfnl_info * info,const struct nlattr * const nla[],bool reset) nf_tables_getrule_single() argument
3904 nf_tables_getrule(struct sk_buff * skb,const struct nfnl_info * info,const struct nlattr * const nla[]) nf_tables_getrule() argument
3931 nf_tables_getrule_reset(struct sk_buff * skb,const struct nfnl_info * info,const struct nlattr * const nla[]) nf_tables_getrule_reset() argument
4130 nf_tables_newrule(struct sk_buff * skb,const struct nfnl_info * info,const struct nlattr * const nla[]) nf_tables_newrule() argument
4369 nft_rule_lookup_byid(const struct net * net,const struct nft_chain * chain,const struct nlattr * nla) nft_rule_lookup_byid() argument
4385 nf_tables_delrule(struct sk_buff * skb,const struct nfnl_info * info,const struct nlattr * const nla[]) nf_tables_delrule() argument
4585 nft_set_lookup(const struct net * net,const struct nft_table * table,const struct nlattr * nla,u8 genmask) nft_set_lookup() argument
4602 nft_set_lookup_byhandle(const struct nft_table * table,const struct nlattr * nla,u8 genmask) nft_set_lookup_byhandle() argument
4617 nft_set_lookup_byid(const struct net * net,const struct nft_table * table,const struct nlattr * nla,u8 genmask) nft_set_lookup_byid() argument
4712 nf_msecs_to_jiffies64(const struct nlattr * nla,u64 * result) nf_msecs_to_jiffies64() argument
4987 nf_tables_getset(struct sk_buff * skb,const struct nfnl_info * info,const struct nlattr * const nla[]) nf_tables_getset() argument
5077 nft_set_desc_concat(struct nft_set_desc * desc,const struct nlattr * nla) nft_set_desc_concat() argument
5106 nf_tables_set_desc_parse(struct nft_set_desc * desc,const struct nlattr * nla) nf_tables_set_desc_parse() argument
5125 nft_set_expr_alloc(struct nft_ctx * ctx,struct nft_set * set,const struct nlattr * const * nla,struct nft_expr ** exprs,int * num_exprs,u32 flags) nft_set_expr_alloc() argument
5215 nf_tables_newset(struct sk_buff * skb,const struct nfnl_info * info,const struct nlattr * const nla[]) nf_tables_newset() argument
5555 nf_tables_delset(struct sk_buff * skb,const struct nfnl_info * info,const struct nlattr * const nla[]) nf_tables_delset() argument
6340 struct nlattr *nla[NFTA_SET_ELEM_MAX + 1]; nft_get_set_elem() local
6397 nft_set_dump_ctx_init(struct nft_set_dump_ctx * dump_ctx,const struct sk_buff * skb,const struct nfnl_info * info,const struct nlattr * const nla[],bool reset) nft_set_dump_ctx_init() argument
6430 nf_tables_getsetelem(struct sk_buff * skb,const struct nfnl_info * info,const struct nlattr * const nla[]) nf_tables_getsetelem() argument
6473 nf_tables_getsetelem_reset(struct sk_buff * skb,const struct nfnl_info * info,const struct nlattr * const nla[]) nf_tables_getsetelem_reset() argument
7062 nft_setelem_valid_key_end(const struct nft_set * set,struct nlattr ** nla,u32 flags) nft_setelem_valid_key_end() argument
7105 struct nlattr *nla[NFTA_SET_ELEM_MAX + 1]; nft_add_set_elem() local
7510 nf_tables_newsetelem(struct sk_buff * skb,const struct nfnl_info * info,const struct nlattr * const nla[]) nf_tables_newsetelem() argument
7671 struct nlattr *nla[NFTA_SET_ELEM_MAX + 1]; nft_del_setelem() local
7848 nf_tables_delsetelem(struct sk_buff * skb,const struct nfnl_info * info,const struct nlattr * const nla[]) nf_tables_delsetelem() argument
7938 nft_obj_lookup(const struct net * net,const struct nft_table * table,const struct nlattr * nla,u32 objtype,u8 genmask) nft_obj_lookup() argument
7971 nft_obj_lookup_byhandle(const struct nft_table * table,const struct nlattr * nla,u32 objtype,u8 genmask) nft_obj_lookup_byhandle() argument
8141 nf_tables_newobj(struct sk_buff * skb,const struct nfnl_info * info,const struct nlattr * const nla[]) nf_tables_newobj() argument
8393 const struct nlattr * const *nla = cb->data; nf_tables_dump_obj_start() local
8430 nf_tables_getobj_single(u32 portid,const struct nfnl_info * info,const struct nlattr * const nla[],bool reset) nf_tables_getobj_single() argument
8475 nf_tables_getobj(struct sk_buff * skb,const struct nfnl_info * info,const struct nlattr * const nla[]) nf_tables_getobj() argument
8501 nf_tables_getobj_reset(struct sk_buff * skb,const struct nfnl_info * info,const struct nlattr * const nla[]) nf_tables_getobj_reset() argument
8556 nf_tables_delobj(struct sk_buff * skb,const struct nfnl_info * info,const struct nlattr * const nla[]) nf_tables_delobj() argument
8698 nft_flowtable_lookup(const struct net * net,const struct nft_table * table,const struct nlattr * nla,u8 genmask) nft_flowtable_lookup() argument
8731 nft_flowtable_lookup_byhandle(const struct nft_table * table,const struct nlattr * nla,u8 genmask) nft_flowtable_lookup_byhandle() argument
8756 nft_flowtable_parse_hook(const struct nft_ctx * ctx,const struct nlattr * const nla[],struct nft_flowtable_hook * flowtable_hook,struct nft_flowtable * flowtable,struct netlink_ext_ack * extack,bool add) nft_flowtable_parse_hook() argument
8962 const struct nlattr * const *nla = ctx->nla; nft_flowtable_update() local
9034 nf_tables_newflowtable(struct sk_buff * skb,const struct nfnl_info * info,const struct nlattr * const nla[]) nf_tables_newflowtable() argument
9179 const struct nlattr * const *nla = ctx->nla; nft_delflowtable_hook() local
9226 nf_tables_delflowtable(struct sk_buff * skb,const struct nfnl_info * info,const struct nlattr * const nla[]) nf_tables_delflowtable() argument
9399 const struct nlattr * const *nla = cb->data; nf_tables_dump_flowtable_start() local
9435 nf_tables_getflowtable(struct sk_buff * skb,const struct nfnl_info * info,const struct nlattr * const nla[]) nf_tables_getflowtable() argument
9644 nf_tables_getgen(struct sk_buff * skb,const struct nfnl_info * info,const struct nlattr * const nla[]) nf_tables_getgen() argument
11511 nft_verdict_init(const struct nft_ctx * ctx,struct nft_data * data,struct nft_data_desc * desc,const struct nlattr * nla) nft_verdict_init() argument
11618 nft_value_init(const struct nft_ctx * ctx,struct nft_data * data,struct nft_data_desc * desc,const struct nlattr * nla) nft_value_init() argument
11665 nft_data_init(const struct nft_ctx * ctx,struct nft_data * data,struct nft_data_desc * desc,const struct nlattr * nla) nft_data_init() argument
[all...]
H A Dnfnetlink_hook.c346 const struct nlattr * const *nla = cb->data; in nfnl_hook_dump_start() local
395 const struct nlattr * const nla[]) in nfnl_hook_get()
/linux/net/openvswitch/
H A Dmeter.c235 struct nlattr *nla; in ovs_meter_cmd_reply_stats() local
277 struct nlattr *nla, *band_nla; in ovs_meter_cmd_features() local
328 struct nlattr *nla; in dp_meter_create() local
H A Dvport.c313 struct nlattr *nla; in ovs_vport_get_upcall_stats() local
369 struct nlattr *nla; in ovs_vport_get_options() local
H A Dflow_netlink.c55 struct nlattr *nla; in actions_may_change_flow() local
481 const struct nlattr *nla; in __parse_flow_nlattrs() local
870 struct nlattr *nla; in vxlan_opt_to_nlattr() local
963 struct nlattr *nla; in ip_tun_to_nlattr() local
1776 struct nlattr *nla; in nlattr_set() local
2029 struct nlattr *nla; in __ovs_nla_put_key() local
2282 struct nlattr *nla; in ovs_nla_put_key() local
3766 struct nlattr *nla; in masked_set_action_to_set_action_attr() local
H A Dconntrack.h50 static inline int ovs_ct_copy_action(struct net *net, const struct nlattr *nla, in ovs_ct_copy_action()
/linux/net/psample/
H A Dpsample.c293 struct nlattr *nla; in psample_ip_tun_to_nlattr() local
480 struct nlattr *nla; in psample_sample_packet() local
/linux/include/linux/
H A Dgenl_magic_func.h102 #define DPRINT_FIELD(dir, nla_type, name, s, nla) \ argument
112 #define DPRINT_ARRAY(dir, nla_type, name, s, nla) \ argument
123 #define DPRINT_FIELD(dir, nla_type, name, s, nla) do {} while (0) argument
124 #define DPRINT_ARRAY(dir, nla_type, name, s, nla) do {} while (0) argument
/linux/net/ipv6/
H A Drpl_iptunnel.c67 static int rpl_build_state(struct net *net, struct nlattr *nla, in rpl_build_state()
319 struct nlattr *nla; in nla_put_rpl_srh() local
H A Dseg6_iptunnel.c74 struct nlattr *nla; in nla_put_srh() local
639 static int seg6_build_state(struct net *net, struct nlattr *nla, in seg6_build_state()
/linux/net/ipv4/
H A Dmetrics.c15 struct nlattr *nla; in ip_metrics_convert() local
H A Dfib_rules.c231 static int fib4_nl2rule_dscp(const struct nlattr *nla, struct fib4_rule *rule4, in fib4_nl2rule_dscp()
246 static int fib4_nl2rule_dscp_mask(const struct nlattr *nla, in fib4_nl2rule_dscp_mask()
H A Dfib_semantics.c706 static int fib_gw_from_attr(__be32 *gw, struct nlattr *nla, in fib_gw_from_attr() argument
751 struct nlattr *nla, *nlav, *attrs = rtnh_attrs(rtnh); in fib_get_nhs() local
977 struct nlattr *nla, *nlav, *attrs = rtnh_attrs(rtnh); fib_nh_match() local
1041 struct nlattr *nla; fib_metrics_match() local
1619 struct nlattr *nla; fib_nexthop_info() local
[all...]
/linux/net/mpls/
H A Daf_mpls.c720 static int nla_get_via(const struct nlattr *nla, u8 *via_alen, u8 *via_table, in nla_get_via()
847 struct nlattr *nla, *attrs = rtnh_attrs(rtnh); in mpls_count_nexthops() local
1104 struct nlattr *nla; in mpls_fill_stats_af() local
1669 struct nlattr *nla; in nla_put_via() local
1689 struct nlattr *nla; in nla_put_labels() local
1708 int nla_get_labels(const struct nlattr *nla, u8 max_labels, u8 *labels, in nla_get_labels()
1859 struct nlattr *nla = tb[index]; in rtm_to_route_config() local

1234