| /linux/tools/lib/bpf/ |
| H A D | nlattr.c | 40 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()
|
| H A D | nlattr.h | 152 nla->nla_type = type; in nlattr_add()
|
| /linux/tools/testing/selftests/nci/ |
| H A D | nci_dev.c | 112 __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/tools/accounting/ |
| H A D | getdelays.c | 146 __u8 genl_cmd, __u16 nla_type, in send_cmd() 164 na->nla_type = nla_type; in get_family_id() 215 if (na->nla_type == CTRL_ATTR_FAMILY_ID) { in format_timespec() 692 switch (na->nla_type) { in main() 701 switch (na->nla_type) { in main() 734 " nla_type %d\n", in main() 735 na->nla_type); in main() 748 fprintf(stderr, "Unknown nla_type %d\n", 749 na->nla_type); 120 send_cmd(int sd,__u16 nlmsg_type,__u32 nlmsg_pid,__u8 genl_cmd,__u16 nla_type,void * nla_data,int nla_len) send_cmd() argument [all...] |
| H A D | delaytop.c | 420 __u8 genl_cmd, __u16 nla_type, in send_cmd() argument 442 na->nla_type = nla_type; in send_cmd() 495 if (na->nla_type == CTRL_ATTR_FAMILY_ID) in get_family_id() 688 if (na->nla_type == TASKSTATS_TYPE_AGGR_PID) { in fetch_and_fill_task_info() 692 if (nested->nla_type == TASKSTATS_TYPE_STATS) { in fetch_and_fill_task_info() 848 if (na->nla_type == CGROUPSTATS_TYPE_CGROUP_STATS) { in get_container_stats()
|
| /linux/net/netlabel/ |
| H A D | netlabel_cipso_v4.c | 95 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/devlink/ |
| H A D | param.c | 219 int nla_type, union devlink_param_value val, in devlink_nl_param_value_put() argument 224 if (nla_put_u8(msg, nla_type, val.vu8)) in devlink_nl_param_value_put() 228 if (nla_put_u16(msg, nla_type, val.vu16)) in devlink_nl_param_value_put() 232 if (nla_put_u32(msg, nla_type, val.vu32)) in devlink_nl_param_value_put() 236 if (devlink_nl_put_u64(msg, nla_type, val.vu64)) in devlink_nl_param_value_put() 240 if (nla_put_string(msg, nla_type, val.vstr)) in devlink_nl_param_value_put() 248 if (nla_put_u8(msg, nla_type, val.vbool)) in devlink_nl_param_value_put() 251 if (val.vbool && nla_put_flag(msg, nla_type)) in devlink_nl_param_value_put()
|
| H A D | health.c | 15 u8 nla_type; member 791 item->nla_type = DEVLINK_VAR_ATTR_TYPE_NUL_STRING; in devlink_fmsg_put_name() 868 item->nla_type = value_nla_type; in devlink_fmsg_put_value() 995 switch (msg->nla_type) { in devlink_fmsg_item_fill_data() 1044 item->nla_type); in devlink_fmsg_prepare_skb()
|
| /linux/tools/net/ynl/lib/ |
| H A D | ynl-priv.h | 192 return attr->nla_type & NLA_TYPE_MASK; in ynl_attr_type() 280 attr->nla_type = attr_type | NLA_F_NESTED; in ynl_attr_nest_start() 302 attr->nla_type = attr_type; in ynl_attr_put() 321 attr->nla_type = attr_type; in ynl_attr_put_str()
|
| /linux/net/openvswitch/ |
| H A D | flow_netlink.c | 59 u16 action = nla_type(nla); in actions_may_change_flow() 487 u16 type = nla_type(nla); in __parse_flow_nlattrs() 606 int type = nla_type(a); in vxlan_tun_opt_from_nlattr() 688 int type = nla_type(a); in ip_tun_from_nlattr() 1326 int type = nla_type(a); in nsh_hdr_from_nlattr() 1381 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() 2303 switch (nla_type(a)) { in ovs_nla_free_check_pkt_len_action() [all …]
|
| H A D | actions.c | 876 switch (nla_type(a)) { in output_userspace() 1028 if (nla_type(a) == OVS_KEY_ATTR_TUNNEL_INFO) { in execute_set_action() 1049 switch (nla_type(a)) { in execute_masked_set_action() 1223 switch (nla_type(a)) { in execute_psample() 1268 switch (nla_type(a)) { in do_execute_actions()
|
| H A D | openvswitch_trace.h | 63 __entry->action_type = nla_type(a);
|
| /linux/lib/ |
| H A D | nlattr.c | 399 int minlen = 0, attrlen = nla_len(nla), type = nla_type(nla); in validate_nla() 425 !(nla->nla_type & NLA_F_NESTED)) { in validate_nla() 431 pt->type != NLA_UNSPEC && (nla->nla_type & NLA_F_NESTED)) { in validate_nla() 623 u16 type = nla_type(nla); in __nla_validate_parse() 751 if (nla_type(nla) == attrtype) in nla_find() 907 nla->nla_type = attrtype; in __nla_reserve()
|
| /linux/tools/testing/selftests/net/ |
| H A D | netlink-dumps.c | 107 .nla_type = NDA_FLAGS_EXT, 192 .nla_type = CTRL_ATTR_FAMILY_ID,
|
| /linux/net/handshake/ |
| H A D | tlshd.c | 71 if (nla_type(nla) == HANDSHAKE_A_DONE_REMOTE_AUTH) in tls_handshake_remote_peerids() 81 if (nla_type(nla) == HANDSHAKE_A_DONE_REMOTE_AUTH) in tls_handshake_remote_peerids()
|
| /linux/tools/include/uapi/linux/ |
| H A D | netlink.h | 213 __u16 nla_type; member
|
| /linux/include/uapi/linux/ |
| H A D | netlink.h | 231 __u16 nla_type; member
|
| /linux/Documentation/userspace-api/netlink/ |
| H A D | intro.rst | 277 __u16 nla_type: CTRL_ATTR_FAMILY_NAME 307 __u16 nla_type: CTRL_ATTR_FAMILY_NAME 315 __u16 nla_type: CTRL_ATTR_FAMILY_ID 323 __u16 nla_type: CTRL_ATTR_FAMILY_VERSION 464 __u16 nla_type: CTRL_ATTR_FAMILY_NAME 472 __u16 nla_type: CTRL_ATTR_FAMILY_ID 480 __u16 nla_type: CTRL_ATTR_FAMILY_VERSION
|
| /linux/include/linux/netfilter/ipset/ |
| H A D | ip_set.h | 379 return tb[type] && (tb[type]->nla_type & NLA_F_NET_BYTEORDER); in ip_set_attr_netorder() 385 return !tb[type] || (tb[type]->nla_type & NLA_F_NET_BYTEORDER); in ip_set_optattr_netorder()
|
| /linux/net/netfilter/ |
| H A D | xt_RATEEST.c | 154 cfg.opt.nla_type = TCA_STATS_RATE_EST; in xt_rateest_tg_checkentry()
|
| /linux/net/sched/ |
| H A D | sch_fifo.c | 245 nla->nla_type = RTM_NEWQDISC; in fifo_set_limit()
|
| H A D | sch_mqprio.c | 286 if (nla_type(attr) != TCA_MQPRIO_MIN_RATE64) { in mqprio_parse_nlattr() 315 if (nla_type(attr) != TCA_MQPRIO_MAX_RATE64) { in mqprio_parse_nlattr()
|
| H A D | sch_ets.c | 526 switch (nla_type(attr)) { in ets_qdisc_priomap_parse() 565 switch (nla_type(attr)) { in ets_qdisc_quanta_parse()
|
| H A D | ematch.c | 353 if (rt_match->nla_type != (idx + 1)) in tcf_em_tree_validate()
|
| /linux/net/bridge/ |
| H A D | br_mst.c | 347 switch (nla_type(attr)) { in br_mst_process()
|