Home
last modified time | relevance | path

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

123

/Linux-v4.19/include/linux/
Dgenl_magic_func.h36 #define __field(attr_nr, attr_flag, name, nla_type, _type, __get, \ argument
38 [attr_nr] = { .type = nla_type },
41 #define __array(attr_nr, attr_flag, name, nla_type, _type, maxlen, \ argument
43 [attr_nr] = { .type = nla_type, \
44 .len = maxlen - (nla_type == NLA_NUL_STRING) },
55 static void dprint_field(const char *dir, int nla_type, in dprint_field() argument
59 switch (nla_type) { in dprint_field()
78 static void dprint_array(const char *dir, int nla_type, in dprint_array() argument
81 switch (nla_type) { in dprint_array()
101 #define DPRINT_FIELD(dir, nla_type, name, s, nla) \ argument
[all …]
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
227 #define __field(attr_nr, attr_flag, name, nla_type, type, __get, __put, \ argument
232 #define __array(attr_nr, attr_flag, name, nla_type, type, maxlen, \ argument
251 #define __field(attr_nr, attr_flag, name, nla_type, type, __get, __put, \ argument
256 #define __array(attr_nr, attr_flag, name, nla_type, type, maxlen, \ argument
270 #define __field(attr_nr, attr_flag, name, nla_type, type, __get, __put, \ argument
275 #define __array(attr_nr, attr_flag, name, nla_type, type, maxlen, \ argument
/Linux-v4.19/drivers/block/drbd/
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-v4.19/tools/lib/bpf/
Dnlattr.c54 static int nla_type(const struct nlattr *nla) in nla_type() function
56 return nla->nla_type & NLA_TYPE_MASK; in nla_type()
64 int type = nla_type(nla); in validate_nla()
126 int type = nla_type(nla); in nla_parse()
Dbpf.c559 nla->nla_type = NLA_F_NESTED | IFLA_XDP; in bpf_set_link_xdp_fd()
564 nla_xdp->nla_type = IFLA_XDP_FD; in bpf_set_link_xdp_fd()
572 nla_xdp->nla_type = IFLA_XDP_FLAGS; in bpf_set_link_xdp_fd()
/Linux-v4.19/tools/accounting/
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()
472 switch (na->nla_type) { in main()
482 switch (na->nla_type) { in main()
514 na->nla_type); in main()
528 na->nla_type); in main()
/Linux-v4.19/net/netlabel/
Dnetlabel_cipso_v4.c108 if (nla_type(nla) == NLBL_CIPSOV4_A_TAG) { in netlbl_cipsov4_add_common()
172 if (nla_type(nla_a) == NLBL_CIPSOV4_A_MLSLVL) { in netlbl_cipsov4_add_std()
178 switch (nla_type(nla_b)) { in netlbl_cipsov4_add_std()
220 if (nla_type(nla_a) == NLBL_CIPSOV4_A_MLSLVL) { in netlbl_cipsov4_add_std()
245 if (nla_type(nla_a) == NLBL_CIPSOV4_A_MLSCAT) { in netlbl_cipsov4_add_std()
252 switch (nla_type(nla_b)) { in netlbl_cipsov4_add_std()
296 if (nla_type(nla_a) == NLBL_CIPSOV4_A_MLSCAT) { in netlbl_cipsov4_add_std()
/Linux-v4.19/lib/
Dnlattr.c75 int minlen = 0, attrlen = nla_len(nla), type = nla_type(nla); in validate_nla()
250 u16 type = nla_type(nla); in nla_parse()
290 if (nla_type(nla) == attrtype) in nla_find()
434 nla->nla_type = attrtype; in __nla_reserve()
/Linux-v4.19/net/openvswitch/
Dflow_netlink.c70 u16 action = nla_type(nla); in actions_may_change_flow()
482 u16 type = nla_type(nla); in __parse_flow_nlattrs()
594 int type = nla_type(a); in vxlan_tun_opt_from_nlattr()
675 int type = nla_type(a); in ip_tun_from_nlattr()
1283 int type = nla_type(a); in nsh_hdr_from_nlattr()
1331 int type = nla_type(a); in nsh_key_from_nlattr()
1378 int type = nla_type(a); in nsh_key_put_from_nlattr()
1715 if (tbl[nla_type(nla)].len == OVS_ATTR_NESTED) in nlattr_set()
1716 nlattr_set(nla, val, tbl[nla_type(nla)].next ? : tbl); in nlattr_set()
1720 if (nla_type(nla) == OVS_KEY_ATTR_CT_STATE) in nlattr_set()
[all …]
Dactions.c991 switch (nla_type(a)) { in output_userspace()
1102 if (nla_type(a) == OVS_KEY_ATTR_TUNNEL_INFO) { in execute_set_action()
1123 switch (nla_type(a)) { in execute_masked_set_action()
1223 switch (nla_type(a)) { in do_execute_actions()
/Linux-v4.19/net/ipv4/
Dmetrics.c19 int type = nla_type(nla); in ip_metrics_convert()
/Linux-v4.19/tools/include/uapi/linux/
Dnetlink.h212 __u16 nla_type; member
/Linux-v4.19/include/uapi/linux/
Dnetlink.h212 __u16 nla_type; member
/Linux-v4.19/include/linux/netfilter/ipset/
Dip_set.h382 return tb[type] && (tb[type]->nla_type & NLA_F_NET_BYTEORDER); in ip_set_attr_netorder()
388 return !tb[type] || (tb[type]->nla_type & NLA_F_NET_BYTEORDER); in ip_set_optattr_netorder()
/Linux-v4.19/net/sched/
Dsch_fifo.c157 nla->nla_type = RTM_NEWQDISC; in fifo_set_limit()
Dact_tunnel_key.c133 switch (nla_type(attr)) { in tunnel_key_copy_opts()
171 switch (nla_type(nla_data(nla))) { in tunnel_key_opts_set()
Dsch_mqprio.c195 if (nla_type(attr) != TCA_MQPRIO_MIN_RATE64) in mqprio_init()
211 if (nla_type(attr) != TCA_MQPRIO_MAX_RATE64) in mqprio_init()
Dematch.c351 if (rt_match->nla_type != (idx + 1)) in tcf_em_tree_validate()
Dact_pedit.c67 if (nla_type(ka) != TCA_PEDIT_KEY_EX) { in tcf_pedit_keys_ex_parse()
/Linux-v4.19/net/netfilter/
Dxt_RATEEST.c153 cfg.opt.nla_type = TCA_STATS_RATE_EST; in xt_rateest_tg_checkentry()
/Linux-v4.19/net/psample/
Dpsample.c268 nla->nla_type = PSAMPLE_ATTR_DATA; in psample_sample_packet()
/Linux-v4.19/include/net/
Dnetlink.h686 static inline int nla_type(const struct nlattr *nla) in nla_type() function
688 return nla->nla_type & NLA_TYPE_MASK; in nla_type()
/Linux-v4.19/net/core/
Dgen_stats.c89 if (ret == 0 && d->tail->nla_type == padattr) in gnet_stats_start_copy_compat()
/Linux-v4.19/net/netfilter/ipset/
Dip_set_core.c282 return nla->nla_type & NLA_F_NESTED; in flag_nested()
1273 pr_debug("type: %u, len %u\n", nla_type(attr), attr->nla_len); in dump_attrs()
1588 if (nla_type(nla) != IPSET_ATTR_DATA || in ip_set_uadd()
1643 if (nla_type(nla) != IPSET_ATTR_DATA || in ip_set_udel()
/Linux-v4.19/net/dcb/
Ddcbnl.c743 data[i]->nla_type - DCB_PFC_UP_ATTR_0, value); in dcbnl_setpfccfg()
956 data[i]->nla_type - DCB_BCN_ATTR_RP_0, value_byte); in dcbnl_bcn_setcfg()
1484 if (nla_type(attr) != DCB_ATTR_IEEE_APP) in dcbnl_ieee_set()
1544 if (nla_type(attr) != DCB_ATTR_IEEE_APP) in dcbnl_ieee_del()

123