Home
last modified time | relevance | path

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

123

/kernel/linux/linux-5.10/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
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
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/tools/lib/bpf/
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()
Dnetlink.c162 nla->nla_type = NLA_F_NESTED | IFLA_XDP; in __bpf_set_link_xdp_fd_replace()
167 nla_xdp->nla_type = IFLA_XDP_FD; in __bpf_set_link_xdp_fd_replace()
175 nla_xdp->nla_type = IFLA_XDP_FLAGS; in __bpf_set_link_xdp_fd_replace()
183 nla_xdp->nla_type = IFLA_XDP_EXPECTED_FD; in __bpf_set_link_xdp_fd_replace()
/kernel/linux/linux-5.10/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()
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()
/kernel/linux/linux-5.10/net/netlabel/
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()
/kernel/linux/linux-5.10/net/xfrm/
Dxfrm_compat.c229 return nla_put(dst, src->nla_type, len, nla_data(src)); in xfrm_nla_cpy()
234 switch (src->nla_type) { in xfrm_xlate64_attr()
252 return nla_put_64bit(dst, src->nla_type, nla_len(src), in xfrm_xlate64_attr()
261 return nla_put_64bit(dst, src->nla_type, nla_len(src), in xfrm_xlate64_attr()
282 pr_warn_once("unsupported nla_type %d\n", src->nla_type); in xfrm_xlate64_attr()
431 int type = nla_type(nla); in xfrm_xlate32_attr()
/kernel/linux/linux-5.10/lib/
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()
848 nla->nla_type = attrtype; in __nla_reserve()
/kernel/linux/linux-5.10/net/openvswitch/
Dflow_netlink.c57 u16 action = nla_type(nla); in actions_may_change_flow()
473 u16 type = nla_type(nla); in __parse_flow_nlattrs()
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()
1744 if (tbl[nla_type(nla)].len == OVS_ATTR_NESTED) in nlattr_set()
1745 nlattr_set(nla, val, tbl[nla_type(nla)].next ? : tbl); in nlattr_set()
1749 if (nla_type(nla) == OVS_KEY_ATTR_CT_STATE) in nlattr_set()
[all …]
Dactions.c956 switch (nla_type(a)) { in output_userspace()
1082 if (nla_type(a) == OVS_KEY_ATTR_TUNNEL_INFO) { in execute_set_action()
1103 switch (nla_type(a)) { in execute_masked_set_action()
1281 switch (nla_type(a)) { in do_execute_actions()
/kernel/linux/linux-5.10/net/ipv4/
Dmetrics.c21 int type = nla_type(nla); in ip_metrics_convert()
/kernel/linux/linux-5.10/tools/include/uapi/linux/
Dnetlink.h213 __u16 nla_type; member
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/
Dnetlink.h146 __u16 nla_type; member
/kernel/linux/linux-5.10/net/ethtool/
Dstrset.c177 if (WARN_ONCE(nla_type(attr) != ETHTOOL_A_STRINGSETS_STRINGSET, in strset_parse_request()
179 nla_type(attr))) in strset_parse_request()
/kernel/linux/linux-5.10/include/uapi/linux/
Dnetlink.h215 __u16 nla_type; member
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
Dnetlink.h151 __u16 nla_type; member
/kernel/linux/linux-5.10/include/linux/netfilter/ipset/
Dip_set.h372 return tb[type] && (tb[type]->nla_type & NLA_F_NET_BYTEORDER); in ip_set_attr_netorder()
378 return !tb[type] || (tb[type]->nla_type & NLA_F_NET_BYTEORDER); in ip_set_optattr_netorder()
/kernel/linux/linux-5.10/net/netfilter/
Dxt_RATEEST.c153 cfg.opt.nla_type = TCA_STATS_RATE_EST; in xt_rateest_tg_checkentry()
/kernel/linux/linux-5.10/include/net/
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()
/kernel/linux/linux-5.10/net/sched/
Dsch_fifo.c241 nla->nla_type = RTM_NEWQDISC; in fifo_set_limit()
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()
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()
/kernel/linux/linux-5.10/net/core/
Dbpf_sk_storage.c449 if (nla_type(nla) == SK_DIAG_BPF_STORAGE_REQ_MAP_FD) in bpf_sk_storage_diag_alloc()
462 if (nla_type(nla) != SK_DIAG_BPF_STORAGE_REQ_MAP_FD) in bpf_sk_storage_diag_alloc()
Dgen_stats.c85 if (ret == 0 && d->tail->nla_type == padattr) in gnet_stats_start_copy_compat()

123