Home
last modified time | relevance | path

Searched refs:nla_type (Results 1 – 25 of 71) sorted by relevance

123

/linux/include/linux/
A Dgenl_magic_func.h38 [attr_nr] = { .type = nla_type },
43 [attr_nr] = { .type = nla_type, \
59 switch (nla_type) { in dprint_field()
81 switch (nla_type) { in dprint_array()
104 dprint_field(dir, nla_type, #name, &s->name); \
106 dprint_field(dir, nla_type, #name, \
107 (nla_type == NLA_FLAG) ? NULL \
114 dprint_array(dir, nla_type, #name, \
117 dprint_array(dir, nla_type, #name, \
191 DPRINT_FIELD("<<", nla_type, name, s, nla))
[all …]
A Dgenl_magic_struct.h161 #define __field(attr_nr, attr_flag, name, nla_type, type, \ argument
166 #define __array(attr_nr, attr_flag, name, nla_type, type, \ argument
230 #define __field(attr_nr, attr_flag, name, nla_type, type, __get, __put, \ argument
235 #define __array(attr_nr, attr_flag, name, nla_type, type, maxlen, \ argument
254 #define __field(attr_nr, attr_flag, name, nla_type, type, __get, __put, \ argument
259 #define __array(attr_nr, attr_flag, name, nla_type, type, maxlen, \ argument
273 #define __field(attr_nr, attr_flag, name, nla_type, type, __get, __put, \ argument
278 #define __array(attr_nr, attr_flag, name, nla_type, type, maxlen, \ argument
/linux/drivers/block/drbd/
A Ddrbd_nla.c22 if (nla->nla_type & DRBD_GENLA_F_MANDATORY) { in drbd_nla_check_mandatory()
23 nla->nla_type &= ~DRBD_GENLA_F_MANDATORY; in drbd_nla_check_mandatory()
24 if (nla_type(nla) > maxtype) in drbd_nla_check_mandatory()
/linux/tools/lib/bpf/
A Dnlattr.c40 static int nla_type(const struct nlattr *nla) in nla_type() function
42 return nla->nla_type & NLA_TYPE_MASK; in nla_type()
50 int type = nla_type(nla); in validate_nla()
113 int type = nla_type(nla); in libbpf_nla_parse()
A Dnlattr.h140 nla->nla_type = type; in nlattr_add()
/linux/tools/accounting/
A Dgetdelays.c120 __u8 genl_cmd, __u16 nla_type, in send_cmd() argument
138 na->nla_type = nla_type; in send_cmd()
189 if (na->nla_type == CTRL_ATTR_FAMILY_ID) { in get_family_id()
478 switch (na->nla_type) { in main()
488 switch (na->nla_type) { in main()
520 na->nla_type); in main()
534 na->nla_type); in main()
/linux/tools/testing/selftests/nci/
A Dnci_dev.c112 __u8 genl_cmd, int nla_num, __u16 nla_type[], in send_cmd_mt_nla() argument
133 na->nla_type = nla_type[cnt]; in send_cmd_mt_nla()
206 if (na->nla_type == CTRL_ATTR_FAMILY_ID) { in get_family_id()
208 } else if (na->nla_type == CTRL_ATTR_MCAST_GROUPS) { in get_family_id()
220 if (group_na->nla_type == CTRL_ATTR_MCAST_GRP_ID) { in get_family_id()
243 __u16 nla_type = NFC_ATTR_DEVICE_INDEX; in send_cmd_with_idx() local
248 &nla_type, &nla_data, &nla_len, NLM_F_REQUEST); in send_cmd_with_idx()
290 if (na->nla_type == NFC_ATTR_DEVICE_POWERED) in get_dev_enable_state()
679 if (na->nla_type == NFC_ATTR_TARGET_INDEX) in get_taginfo()
681 else if (na->nla_type == NFC_ATTR_TARGET_SEL_RES) in get_taginfo()
[all …]
/linux/net/netlabel/
A Dnetlabel_cipso_v4.c95 if (nla_type(nla) == NLBL_CIPSOV4_A_TAG) { in netlbl_cipsov4_add_common()
160 if (nla_type(nla_a) == NLBL_CIPSOV4_A_MLSLVL) { in netlbl_cipsov4_add_std()
167 switch (nla_type(nla_b)) { in netlbl_cipsov4_add_std()
209 if (nla_type(nla_a) == NLBL_CIPSOV4_A_MLSLVL) { in netlbl_cipsov4_add_std()
235 if (nla_type(nla_a) == NLBL_CIPSOV4_A_MLSCAT) { in netlbl_cipsov4_add_std()
242 switch (nla_type(nla_b)) { in netlbl_cipsov4_add_std()
286 if (nla_type(nla_a) == NLBL_CIPSOV4_A_MLSCAT) { in netlbl_cipsov4_add_std()
/linux/net/xfrm/
A Dxfrm_compat.c228 return nla_put(dst, src->nla_type, len, nla_data(src)); in xfrm_nla_cpy()
233 switch (src->nla_type) { in xfrm_xlate64_attr()
251 return nla_put_64bit(dst, src->nla_type, nla_len(src), in xfrm_xlate64_attr()
260 return nla_put_64bit(dst, src->nla_type, nla_len(src), in xfrm_xlate64_attr()
280 pr_warn_once("unsupported nla_type %d\n", src->nla_type); in xfrm_xlate64_attr()
429 int type = nla_type(nla); in xfrm_xlate32_attr()
/linux/lib/
A Dnlattr.c363 int minlen = 0, attrlen = nla_len(nla), type = nla_type(nla); in validate_nla()
388 !(nla->nla_type & NLA_F_NESTED)) { in validate_nla()
394 pt->type != NLA_UNSPEC && (nla->nla_type & NLA_F_NESTED)) { in validate_nla()
577 u16 type = nla_type(nla); in __nla_validate_parse()
704 if (nla_type(nla) == attrtype) in nla_find()
860 nla->nla_type = attrtype; in __nla_reserve()
/linux/net/openvswitch/
A Dflow_netlink.c57 u16 action = nla_type(nla); in actions_may_change_flow()
585 int type = nla_type(a); in vxlan_tun_opt_from_nlattr()
667 int type = nla_type(a); in ip_tun_from_nlattr()
1297 int type = nla_type(a); in nsh_hdr_from_nlattr()
1345 int type = nla_type(a); in nsh_key_from_nlattr()
1392 int type = nla_type(a); in nsh_key_put_from_nlattr()
2313 switch (nla_type(a)) { in ovs_nla_free_flow_actions()
2386 a->nla_type = attrtype; in __add_action()
2448 int type = nla_type(a); in validate_and_copy_sample()
2512 int type = nla_type(a); in validate_and_copy_dec_ttl()
[all …]
A Dopenvswitch_trace.h63 __entry->action_type = nla_type(a);
A Dactions.c921 switch (nla_type(a)) { in output_userspace()
1053 if (nla_type(a) == OVS_KEY_ATTR_TUNNEL_INFO) { in execute_set_action()
1074 switch (nla_type(a)) { in execute_masked_set_action()
1255 switch (nla_type(a)) { in do_execute_actions()
/linux/net/ipv4/
A Dmetrics.c21 int type = nla_type(nla); in ip_metrics_convert()
/linux/tools/include/uapi/linux/
A Dnetlink.h213 __u16 nla_type; member
/linux/include/linux/netfilter/ipset/
A Dip_set.h375 return tb[type] && (tb[type]->nla_type & NLA_F_NET_BYTEORDER); in ip_set_attr_netorder()
381 return !tb[type] || (tb[type]->nla_type & NLA_F_NET_BYTEORDER); in ip_set_optattr_netorder()
/linux/net/ethtool/
A Dstrset.c202 if (WARN_ONCE(nla_type(attr) != ETHTOOL_A_STRINGSETS_STRINGSET, in strset_parse_request()
204 nla_type(attr))) in strset_parse_request()
/linux/include/uapi/linux/
A Dnetlink.h216 __u16 nla_type; member
/linux/include/net/
A Dnetlink.h1128 static inline int nla_type(const struct nlattr *nla) in nla_type() function
1130 return nla->nla_type & NLA_TYPE_MASK; in nla_type()
1207 if (!(nla->nla_type & NLA_F_NESTED)) { in nla_parse_nested()
/linux/net/netfilter/
A Dxt_RATEEST.c154 cfg.opt.nla_type = TCA_STATS_RATE_EST; in xt_rateest_tg_checkentry()
/linux/net/sched/
A Dsch_mqprio.c193 if (nla_type(attr) != TCA_MQPRIO_MIN_RATE64) in mqprio_init()
209 if (nla_type(attr) != TCA_MQPRIO_MAX_RATE64) in mqprio_init()
A Dsch_fifo.c241 nla->nla_type = RTM_NEWQDISC; in fifo_set_limit()
A Dact_tunnel_key.c230 switch (nla_type(attr)) { in tunnel_key_copy_opts()
301 switch (nla_type(nla_data(nla))) { in tunnel_key_opts_set()
A Dsch_ets.c524 switch (nla_type(attr)) { in ets_qdisc_priomap_parse()
563 switch (nla_type(attr)) { in ets_qdisc_quanta_parse()
/linux/net/core/
A Dbpf_sk_storage.c523 if (nla_type(nla) == SK_DIAG_BPF_STORAGE_REQ_MAP_FD) in bpf_sk_storage_diag_alloc()
535 if (nla_type(nla) != SK_DIAG_BPF_STORAGE_REQ_MAP_FD) in bpf_sk_storage_diag_alloc()

Completed in 45 milliseconds

123