Home
last modified time | relevance | path

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

1234

/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()
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()
107 struct nlattr *nla; in libbpf_nla_parse() local
149 struct nlattr *nla, in libbpf_nla_parse_nested()
/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_nl_gen.c652 struct nlattr *nla; in __drbd_cfg_context_from_attrs() local
710 struct nlattr *nla; in __disk_conf_from_attrs() local
867 struct nlattr *nla; in __res_opts_from_attrs() local
917 struct nlattr *nla; in __net_conf_from_attrs() local
1083 struct nlattr *nla; in __set_role_parms_from_attrs() local
1129 struct nlattr *nla; in __resize_parms_from_attrs() local
1191 struct nlattr *nla; in __start_ov_parms_from_attrs() local
1241 struct nlattr *nla; in __new_c_uuid_parms_from_attrs() local
1287 struct nlattr *nla; in __disconnect_parms_from_attrs() local
1333 struct nlattr *nla; in __detach_parms_from_attrs() local
[all …]
/linux/net/sched/
H A Dact_tunnel_key.c86 tunnel_key_copy_geneve_opt(const struct nlattr *nla, void *dst, int dst_len, 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()
165 tunnel_key_copy_erspan_opt(const struct nlattr *nla, void *dst, int dst_len, in tunnel_key_copy_erspan_opt()
217 static int tunnel_key_copy_opts(const struct nlattr *nla, u8 *dst, 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()
361 static int tunnel_key_init(struct net *net, struct nlattr *nla, in tunnel_key_init()
H A Dact_bpf.c100 struct nlattr *nla; in tcf_bpf_dump_bpf_info() local
118 struct nlattr *nla; in tcf_bpf_dump_ebpf_info() local
277 tcf_bpf_init(struct net * net,struct nlattr * nla,struct nlattr * est,struct tc_action ** act,struct tcf_proto * tp,u32 flags,struct netlink_ext_ack * extack) tcf_bpf_init() argument
[all...]
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_api.c1334 tc_action_load_ops(struct nlattr * nla,u32 flags,struct netlink_ext_ack * extack) tc_action_load_ops() argument
1398 tcf_action_init_1(struct net * net,struct tcf_proto * tp,struct nlattr * nla,struct nlattr * est,struct tc_action_ops * a_o,int * init_res,u32 flags,struct netlink_ext_ack * extack) tcf_action_init_1() argument
1466 tcf_action_init(struct net * net,struct tcf_proto * tp,struct nlattr * nla,struct nlattr * est,struct tc_action * actions[],int init_res[],size_t * attr_size,u32 flags,u32 fl_flags,struct netlink_ext_ack * extack) tcf_action_init() argument
1706 tcf_action_get_1(struct net * net,struct nlattr * nla,struct nlmsghdr * n,u32 portid,struct netlink_ext_ack * extack) tcf_action_get_1() argument
1750 tca_action_flush(struct net * net,struct nlattr * nla,struct nlmsghdr * n,u32 portid,struct netlink_ext_ack * extack) tca_action_flush() argument
2009 tca_action_gd(struct net * net,struct nlattr * nla,struct nlmsghdr * n,u32 portid,int event,struct netlink_ext_ack * extack) tca_action_gd() argument
2096 tcf_action_add(struct net * net,struct nlattr * nla,struct nlmsghdr * n,u32 portid,u32 flags,struct netlink_ext_ack * extack) tcf_action_add() argument
2181 find_dump_kind(struct nlattr ** nla) find_dump_kind() argument
[all...]
H A Dact_pedit.c45 static struct tcf_pedit_key_ex *tcf_pedit_keys_ex_parse(struct nlattr *nla, in tcf_pedit_keys_ex_parse() argument
159 static int tcf_pedit_init(struct net *net, struct nlattr *nla, in tcf_pedit_init() argument
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()
H A Dact_connmark.c98 static int tcf_connmark_init(struct net *net, struct nlattr *nla, in tcf_connmark_init()
H A Dact_skbmod.c101 tcf_skbmod_init(struct net * net,struct nlattr * nla,struct nlattr * est,struct tc_action ** a,struct tcf_proto * tp,u32 flags,struct netlink_ext_ack * extack) tcf_skbmod_init() argument
/linux/net/netfilter/
H A Dnf_tables_api.c160 const struct nlattr * const *nla) in nft_ctx_init() argument
985 const struct nlattr *nla, in nft_table_lookup() argument
1012 nft_table_lookup_byhandle(const struct net * net,const struct nlattr * nla,int family,u8 genmask,u32 nlpid) nft_table_lookup_byhandle() argument
1052 __nf_tables_chain_type_lookup(const struct nlattr * nla,u8 family) __nf_tables_chain_type_lookup() argument
1122 nf_tables_chain_type_lookup(struct net * net,const struct nlattr * nla,u8 family,bool autoload) nf_tables_chain_type_lookup() argument
1312 nf_tables_gettable(struct sk_buff * skb,const struct nfnl_info * info,const struct nlattr * const nla[]) nf_tables_gettable() argument
1577 nf_tables_newtable(struct sk_buff * skb,const struct nfnl_info * info,const struct nlattr * const nla[]) nf_tables_newtable() argument
1750 const struct nlattr * const *nla = ctx->nla; nft_flush() local
1781 nf_tables_deltable(struct sk_buff * skb,const struct nfnl_info * info,const struct nlattr * const nla[]) nf_tables_deltable() argument
1888 nft_chain_lookup(struct net * net,struct nft_table * table,const struct nlattr * nla,u8 genmask) nft_chain_lookup() argument
2248 nf_tables_getchain(struct sk_buff * skb,const struct nfnl_info * info,const struct nlattr * const nla[]) nf_tables_getchain() argument
2553 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
2753 const struct nlattr * const *nla = ctx->nla; nf_tables_addchain() local
2900 const struct nlattr * const *nla = ctx->nla; nf_tables_updchain() local
3096 nft_chain_lookup_byid(const struct net * net,const struct nft_table * table,const struct nlattr * nla,u8 genmask) nft_chain_lookup_byid() argument
3113 nf_tables_newchain(struct sk_buff * skb,const struct nfnl_info * info,const struct nlattr * const nla[]) nf_tables_newchain() argument
3244 const struct nlattr * const *nla = ctx->nla; nft_delchain_hook() local
3295 nf_tables_delchain(struct sk_buff * skb,const struct nfnl_info * info,const struct nlattr * const nla[]) nf_tables_delchain() argument
3421 __nft_expr_type_get(u8 family,struct nlattr * nla) __nft_expr_type_get() argument
3438 nft_expr_type_request_module(struct net * net,u8 family,struct nlattr * nla) nft_expr_type_request_module() argument
3450 nft_expr_type_get(struct net * net,u8 family,struct nlattr * nla) nft_expr_type_get() argument
3532 nf_tables_expr_parse(const struct nft_ctx * ctx,const struct nlattr * nla,struct nft_expr_info * info) nf_tables_expr_parse() argument
3585 nft_expr_inner_parse(const struct nft_ctx * ctx,const struct nlattr * nla,struct nft_expr_info * info) nft_expr_inner_parse() argument
3665 nft_expr_init(const struct nft_ctx * ctx,const struct nlattr * nla) nft_expr_init() argument
3749 nft_rule_lookup(const struct net * net,const struct nft_chain * chain,const struct nlattr * nla) nft_rule_lookup() argument
4001 const struct nlattr * const *nla = cb->data; nf_tables_dump_rules_start() local
4035 nf_tables_getrule_single(u32 portid,const struct nfnl_info * info,const struct nlattr * const nla[],bool reset) nf_tables_getrule_single() argument
4081 nf_tables_getrule(struct sk_buff * skb,const struct nfnl_info * info,const struct nlattr * const nla[]) nf_tables_getrule() argument
4316 nf_tables_newrule(struct sk_buff * skb,const struct nfnl_info * info,const struct nlattr * const nla[]) nf_tables_newrule() argument
4555 nft_rule_lookup_byid(const struct net * net,const struct nft_chain * chain,const struct nlattr * nla) nft_rule_lookup_byid() argument
4571 nf_tables_delrule(struct sk_buff * skb,const struct nfnl_info * info,const struct nlattr * const nla[]) nf_tables_delrule() argument
4782 nft_set_lookup(const struct net * net,const struct nft_table * table,const struct nlattr * nla,u8 genmask) nft_set_lookup() argument
4799 nft_set_lookup_byhandle(const struct nft_table * table,const struct nlattr * nla,u8 genmask) nft_set_lookup_byhandle() argument
4814 nft_set_lookup_byid(const struct net * net,const struct nft_table * table,const struct nlattr * nla,u8 genmask) nft_set_lookup_byid() argument
4908 nf_msecs_to_jiffies64(const struct nlattr * nla,u64 * result) nf_msecs_to_jiffies64() argument
5209 nf_tables_getset(struct sk_buff * skb,const struct nfnl_info * info,const struct nlattr * const nla[]) nf_tables_getset() argument
5299 nft_set_desc_concat(struct nft_set_desc * desc,const struct nlattr * nla) nft_set_desc_concat() argument
5328 nf_tables_set_desc_parse(struct nft_set_desc * desc,const struct nlattr * nla) nf_tables_set_desc_parse() argument
5347 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
5437 nf_tables_newset(struct sk_buff * skb,const struct nfnl_info * info,const struct nlattr * const nla[]) nf_tables_newset() argument
5777 nf_tables_delset(struct sk_buff * skb,const struct nfnl_info * info,const struct nlattr * const nla[]) nf_tables_delset() argument
6540 struct nlattr *nla[NFTA_SET_ELEM_MAX + 1]; nft_get_set_elem() local
6600 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
6633 nf_tables_getsetelem(struct sk_buff * skb,const struct nfnl_info * info,const struct nlattr * const nla[]) nf_tables_getsetelem() argument
7206 nft_setelem_valid_key_end(const struct nft_set * set,struct nlattr ** nla,u32 flags) nft_setelem_valid_key_end() argument
7249 struct nlattr *nla[NFTA_SET_ELEM_MAX + 1]; nft_add_set_elem() local
7666 nf_tables_newsetelem(struct sk_buff * skb,const struct nfnl_info * info,const struct nlattr * const nla[]) nf_tables_newsetelem() argument
7828 struct nlattr *nla[NFTA_SET_ELEM_MAX + 1]; nft_del_setelem() local
8007 nf_tables_delsetelem(struct sk_buff * skb,const struct nfnl_info * info,const struct nlattr * const nla[]) nf_tables_delsetelem() argument
8097 nft_obj_lookup(const struct net * net,struct nft_table * table,const struct nlattr * nla,u32 objtype,u8 genmask) nft_obj_lookup() argument
8129 nft_obj_lookup_byhandle(const struct nft_table * table,const struct nlattr * nla,u32 objtype,u8 genmask) nft_obj_lookup_byhandle() argument
8299 nf_tables_newobj(struct sk_buff * skb,const struct nfnl_info * info,const struct nlattr * const nla[]) nf_tables_newobj() argument
8541 const struct nlattr * const *nla = cb->data; nf_tables_dump_obj_start() local
8572 nf_tables_getobj_single(u32 portid,const struct nfnl_info * info,const struct nlattr * const nla[],bool reset) nf_tables_getobj_single() argument
8617 nf_tables_getobj(struct sk_buff * skb,const struct nfnl_info * info,const struct nlattr * const nla[]) nf_tables_getobj() argument
8670 nf_tables_delobj(struct sk_buff * skb,const struct nfnl_info * info,const struct nlattr * const nla[]) nf_tables_delobj() argument
8821 nft_flowtable_lookup(const struct net * net,const struct nft_table * table,const struct nlattr * nla,u8 genmask) nft_flowtable_lookup() argument
8854 nft_flowtable_lookup_byhandle(const struct nft_table * table,const struct nlattr * nla,u8 genmask) nft_flowtable_lookup_byhandle() argument
8879 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
9117 const struct nlattr * const *nla = ctx->nla; nft_flowtable_update() local
9207 nf_tables_newflowtable(struct sk_buff * skb,const struct nfnl_info * info,const struct nlattr * const nla[]) nf_tables_newflowtable() argument
9353 const struct nlattr * const *nla = ctx->nla; nft_delflowtable_hook() local
9403 nf_tables_delflowtable(struct sk_buff * skb,const struct nfnl_info * info,const struct nlattr * const nla[]) nf_tables_delflowtable() argument
9586 const struct nlattr * const *nla = cb->data; nf_tables_dump_flowtable_start() local
9622 nf_tables_getflowtable(struct sk_buff * skb,const struct nfnl_info * info,const struct nlattr * const nla[]) nf_tables_getflowtable() argument
9914 nf_tables_getgen(struct sk_buff * skb,const struct nfnl_info * info,const struct nlattr * const nla[]) nf_tables_getgen() argument
11767 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
11877 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
11924 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.c413 const struct nlattr * const *nla = cb->data; in nfnl_hook_dump_start() local
462 const struct nlattr * const nla[]) in nfnl_hook_get()
H A Dnft_set_bitmap.c257 static u64 nft_bitmap_privsize(const struct nlattr * const nla[], in nft_bitmap_privsize()
267 const struct nlattr * const nla[]) in nft_bitmap_init()
/linux/net/openvswitch/
H A Dmeter.c240 struct nlattr *nla; in ovs_meter_cmd_reply_stats() local
282 struct nlattr *nla, *band_nla; in ovs_meter_cmd_features() local
333 struct nlattr *nla; in dp_meter_create() 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
1739 struct nlattr *nla; in nlattr_set() local
1992 struct nlattr *nla; in __ovs_nla_put_key() local
2245 struct nlattr *nla; in ovs_nla_put_key() local
3840 struct nlattr *nla; in masked_set_action_to_set_action_attr() local
H A Dconntrack.h50 ovs_ct_copy_action(struct net * net,const struct nlattr * nla,const struct sw_flow_key * key,struct sw_flow_actions ** acts,bool log) ovs_ct_copy_action() argument
/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/net/
H A Dbpf_sk_storage.h47 bpf_sk_storage_diag_alloc(const struct nlattr *nla) in bpf_sk_storage_diag_alloc()
/linux/net/ipv6/
H A Drpl_iptunnel.c67 static int rpl_build_state(struct net *net, struct nlattr *nla, in rpl_build_state()
328 struct nlattr *nla; in nla_put_rpl_srh() local
H A Dfib6_rules.c359 static int fib6_nl2rule_dscp(const struct nlattr *nla, struct fib6_rule *rule6, in fib6_nl2rule_dscp()
374 static int fib6_nl2rule_dscp_mask(const struct nlattr *nla, in fib6_nl2rule_dscp_mask()
/linux/net/ipv4/
H A Dfib_rules.c231 fib4_nl2rule_dscp(const struct nlattr * nla,struct fib4_rule * rule4,struct netlink_ext_ack * extack) fib4_nl2rule_dscp() argument
246 fib4_nl2rule_dscp_mask(const struct nlattr * nla,struct fib4_rule * rule4,struct netlink_ext_ack * extack) fib4_nl2rule_dscp_mask() argument
/linux/net/mpls/
H A Daf_mpls.c754 static int nla_get_via(const struct nlattr *nla, u8 *via_alen, u8 *via_table, in nla_get_via()
881 struct nlattr *nla, *attrs = rtnh_attrs(rtnh); in mpls_count_nexthops() local
1136 struct nlattr *nla; in mpls_fill_stats_af() local
1730 struct nlattr *nla; in nla_put_via() local
1750 struct nlattr *nla; in nla_put_labels() local
1769 int nla_get_labels(const struct nlattr *nla, u8 max_labels, u8 *labels, in nla_get_labels()
1920 struct nlattr *nla = tb[index]; in rtm_to_route_config() local
/linux/net/ieee802154/
H A Dnl802154.c1304 struct nlattr *nla; in nl802154_prep_scan_event_msg() local
1727 struct nlattr *nla; in nl802154_send_peer_info() local
1823 ieee802154_llsec_parse_dev_addr(struct nlattr *nla, in ieee802154_llsec_parse_dev_addr()
1863 ieee802154_llsec_parse_key_id(struct nlattr *nla, in ieee802154_llsec_parse_key_id()
2261 ieee802154_llsec_parse_device(struct nlattr *nla, in ieee802154_llsec_parse_device()
2613 llsec_parse_seclevel(struct nlattr *nla, struct ieee802154_llsec_seclevel *sl) in llsec_parse_seclevel()

1234