Home
last modified time | relevance | path

Searched refs:nla_get_u8 (Results 1 – 25 of 81) sorted by relevance

1234

/Linux-v4.19/net/ieee802154/
Dnl-mac.c214 page = nla_get_u8(info->attrs[IEEE802154_ATTR_PAGE]); in ieee802154_associate_req()
219 nla_get_u8(info->attrs[IEEE802154_ATTR_CHANNEL]), in ieee802154_associate_req()
221 nla_get_u8(info->attrs[IEEE802154_ATTR_CAPABILITY])); in ieee802154_associate_req()
254 nla_get_u8(info->attrs[IEEE802154_ATTR_STATUS])); in ieee802154_associate_resp()
292 nla_get_u8(info->attrs[IEEE802154_ATTR_REASON])); in ieee802154_disassociate_req()
342 channel = nla_get_u8(info->attrs[IEEE802154_ATTR_CHANNEL]); in ieee802154_start_req()
343 bcn_ord = nla_get_u8(info->attrs[IEEE802154_ATTR_BCN_ORD]); in ieee802154_start_req()
344 sf_ord = nla_get_u8(info->attrs[IEEE802154_ATTR_SF_ORD]); in ieee802154_start_req()
345 pan_coord = nla_get_u8(info->attrs[IEEE802154_ATTR_PAN_COORD]); in ieee802154_start_req()
346 blx = nla_get_u8(info->attrs[IEEE802154_ATTR_BAT_EXT]); in ieee802154_start_req()
[all …]
Dnl802154.c974 page = nla_get_u8(info->attrs[NL802154_ATTR_PAGE]); in nl802154_set_channel()
975 channel = nla_get_u8(info->attrs[NL802154_ATTR_CHANNEL]); in nl802154_set_channel()
1153 min_be = nla_get_u8(info->attrs[NL802154_ATTR_MIN_BE]); in nl802154_set_backoff_exponent()
1154 max_be = nla_get_u8(info->attrs[NL802154_ATTR_MAX_BE]); in nl802154_set_backoff_exponent()
1182 max_csma_backoffs = nla_get_u8( in nl802154_set_max_csma_backoffs()
1231 mode = nla_get_u8(info->attrs[NL802154_ATTR_LBT_MODE]); in nl802154_set_lbt_mode()
1256 ackreq = nla_get_u8(info->attrs[NL802154_ATTR_ACKREQ_DEFAULT]); in nl802154_set_ackreq_default()
1389 desc->id = nla_get_u8(attrs[NL802154_KEY_ID_ATTR_INDEX]); in ieee802154_llsec_parse_key_id()
1408 enabled = nla_get_u8(info->attrs[NL802154_ATTR_SEC_ENABLED]); in nl802154_set_llsec_params()
1412 params.enabled = nla_get_u8(info->attrs[NL802154_ATTR_SEC_ENABLED]); in nl802154_set_llsec_params()
[all …]
/Linux-v4.19/drivers/net/bonding/
Dbond_netlink.c174 int mode = nla_get_u8(data[IFLA_BOND_MODE]); in bond_changelink()
223 int use_carrier = nla_get_u8(data[IFLA_BOND_USE_CARRIER]); in bond_changelink()
306 nla_get_u8(data[IFLA_BOND_PRIMARY_RESELECT]); in bond_changelink()
315 nla_get_u8(data[IFLA_BOND_FAIL_OVER_MAC]); in bond_changelink()
324 nla_get_u8(data[IFLA_BOND_XMIT_HASH_POLICY]); in bond_changelink()
342 nla_get_u8(data[IFLA_BOND_NUM_PEER_NOTIF]); in bond_changelink()
351 nla_get_u8(data[IFLA_BOND_ALL_SLAVES_ACTIVE]); in bond_changelink()
387 nla_get_u8(data[IFLA_BOND_AD_LACP_RATE]); in bond_changelink()
396 nla_get_u8(data[IFLA_BOND_AD_SELECT]); in bond_changelink()
432 int dynamic_lb = nla_get_u8(data[IFLA_BOND_TLB_DYNAMIC_LB]); in bond_changelink()
/Linux-v4.19/drivers/net/
Dmacsec.c1503 *assoc_num = nla_get_u8(tb_sa[MACSEC_SA_ATTR_AN]); in get_txsa_from_nl()
1571 *assoc_num = nla_get_u8(tb_sa[MACSEC_SA_ATTR_AN]); in get_rxsa_from_nl()
1642 if (nla_get_u8(attrs[MACSEC_SA_ATTR_AN]) >= MACSEC_NUM_AN) in validate_add_rxsa()
1649 if (nla_get_u8(attrs[MACSEC_SA_ATTR_ACTIVE]) > 1) in validate_add_rxsa()
1690 assoc_num = nla_get_u8(tb_sa[MACSEC_SA_ATTR_AN]); in macsec_add_rxsa()
1726 rx_sa->active = !!nla_get_u8(tb_sa[MACSEC_SA_ATTR_ACTIVE]); in macsec_add_rxsa()
1743 if (nla_get_u8(attrs[MACSEC_RXSC_ATTR_ACTIVE]) > 1) in validate_add_rxsc()
1783 rx_sc->active = !!nla_get_u8(tb_rxsc[MACSEC_RXSC_ATTR_ACTIVE]); in macsec_add_rxsc()
1798 if (nla_get_u8(attrs[MACSEC_SA_ATTR_AN]) >= MACSEC_NUM_AN) in validate_add_txsa()
1805 if (nla_get_u8(attrs[MACSEC_SA_ATTR_ACTIVE]) > 1) in validate_add_txsa()
[all …]
/Linux-v4.19/net/bridge/
Dbr_netlink.c711 if (nla_get_u8(tb[attrtype])) in br_set_port_flag()
796 err = br_set_port_state(p, nla_get_u8(tb[IFLA_BRPORT_STATE])); in br_setport()
806 u8 mcast_router = nla_get_u8(tb[IFLA_BRPORT_MULTICAST_ROUTER]); in br_setport()
891 err = br_set_port_state(p, nla_get_u8(protinfo)); in br_setlink()
1086 u8 vlan_filter = nla_get_u8(data[IFLA_BR_VLAN_FILTERING]); in br_changelink()
1111 __u8 vlan_stats = nla_get_u8(data[IFLA_BR_VLAN_STATS_ENABLED]); in br_changelink()
1151 u8 multicast_router = nla_get_u8(data[IFLA_BR_MCAST_ROUTER]); in br_changelink()
1159 u8 mcast_snooping = nla_get_u8(data[IFLA_BR_MCAST_SNOOPING]); in br_changelink()
1169 val = nla_get_u8(data[IFLA_BR_MCAST_QUERY_USE_IFADDR]); in br_changelink()
1174 u8 mcast_querier = nla_get_u8(data[IFLA_BR_MCAST_QUERIER]); in br_changelink()
[all …]
/Linux-v4.19/net/netfilter/ipset/
Dip_set_hash_ipportnet.c198 cidr = nla_get_u8(tb[IPSET_ATTR_CIDR2]); in hash_ipportnet4_uadt()
207 e.proto = nla_get_u8(tb[IPSET_ATTR_PROTO]); in hash_ipportnet4_uadt()
245 cidr = nla_get_u8(tb[IPSET_ATTR_CIDR]); in hash_ipportnet4_uadt()
437 cidr = nla_get_u8(tb[IPSET_ATTR_CIDR]); in hash_ipportnet6_uadt()
456 cidr = nla_get_u8(tb[IPSET_ATTR_CIDR2]); in hash_ipportnet6_uadt()
467 e.proto = nla_get_u8(tb[IPSET_ATTR_PROTO]); in hash_ipportnet6_uadt()
Dip_set_hash_ipport.c138 e.proto = nla_get_u8(tb[IPSET_ATTR_PROTO]); in hash_ipport4_uadt()
165 u8 cidr = nla_get_u8(tb[IPSET_ATTR_CIDR]); in hash_ipport4_uadt()
287 u8 cidr = nla_get_u8(tb[IPSET_ATTR_CIDR]); in hash_ipport6_uadt()
304 e.proto = nla_get_u8(tb[IPSET_ATTR_PROTO]); in hash_ipport6_uadt()
Dip_set_hash_netportnet.c215 e.cidr[0] = nla_get_u8(tb[IPSET_ATTR_CIDR]); in hash_netportnet4_uadt()
221 e.cidr[1] = nla_get_u8(tb[IPSET_ATTR_CIDR2]); in hash_netportnet4_uadt()
229 e.proto = nla_get_u8(tb[IPSET_ATTR_PROTO]); in hash_netportnet4_uadt()
495 e.cidr[0] = nla_get_u8(tb[IPSET_ATTR_CIDR]); in hash_netportnet6_uadt()
501 e.cidr[1] = nla_get_u8(tb[IPSET_ATTR_CIDR2]); in hash_netportnet6_uadt()
512 e.proto = nla_get_u8(tb[IPSET_ATTR_PROTO]); in hash_netportnet6_uadt()
Dip_set_hash_ipportip.c145 e.proto = nla_get_u8(tb[IPSET_ATTR_PROTO]); in hash_ipportip4_uadt()
172 u8 cidr = nla_get_u8(tb[IPSET_ATTR_CIDR]); in hash_ipportip4_uadt()
298 u8 cidr = nla_get_u8(tb[IPSET_ATTR_CIDR]); in hash_ipportip6_uadt()
319 e.proto = nla_get_u8(tb[IPSET_ATTR_PROTO]); in hash_ipportip6_uadt()
Dip_set_hash_netnet.c197 e.cidr[0] = nla_get_u8(tb[IPSET_ATTR_CIDR]); in hash_netnet4_uadt()
203 e.cidr[1] = nla_get_u8(tb[IPSET_ATTR_CIDR2]); in hash_netnet4_uadt()
430 e.cidr[0] = nla_get_u8(tb[IPSET_ATTR_CIDR]); in hash_netnet6_uadt()
436 e.cidr[1] = nla_get_u8(tb[IPSET_ATTR_CIDR2]); in hash_netnet6_uadt()
Dip_set_hash_netport.c187 cidr = nla_get_u8(tb[IPSET_ATTR_CIDR]); in hash_netport4_uadt()
196 e.proto = nla_get_u8(tb[IPSET_ATTR_PROTO]); in hash_netport4_uadt()
405 cidr = nla_get_u8(tb[IPSET_ATTR_CIDR]); in hash_netport6_uadt()
415 e.proto = nla_get_u8(tb[IPSET_ATTR_PROTO]); in hash_netport6_uadt()
Dip_set_bitmap_ip.c175 u8 cidr = nla_get_u8(tb[IPSET_ATTR_CIDR]); in bitmap_ip_uadt()
269 u8 cidr = nla_get_u8(tb[IPSET_ATTR_CIDR]); in bitmap_ip_create()
279 netmask = nla_get_u8(tb[IPSET_ATTR_NETMASK]); in bitmap_ip_create()
/Linux-v4.19/net/ipv6/ila/
Dila_lwt.c159 ident_type = nla_get_u8(tb[ILA_ATTR_IDENT_TYPE]); in ila_build_state()
194 hook_type = nla_get_u8(tb[ILA_ATTR_HOOK_TYPE]); in ila_build_state()
208 csum_mode = nla_get_u8(tb[ILA_ATTR_CSUM_MODE]); in ila_build_state()
/Linux-v4.19/net/ipv4/
Dnetlink.c11 *ip_proto = nla_get_u8(attr); in rtm_getroute_parse_ip_proto()
Dip_tunnel_core.c264 tun_info->key.ttl = nla_get_u8(tb[LWTUNNEL_IP_TTL]); in ip_tun_build_state()
267 tun_info->key.tos = nla_get_u8(tb[LWTUNNEL_IP_TOS]); in ip_tun_build_state()
363 tun_info->key.ttl = nla_get_u8(tb[LWTUNNEL_IP6_HOPLIMIT]); in ip6_tun_build_state()
366 tun_info->key.tos = nla_get_u8(tb[LWTUNNEL_IP6_TC]); in ip6_tun_build_state()
Dipip.c411 proto = nla_get_u8(data[IFLA_IPTUN_PROTO]); in ipip_tunnel_validate()
442 parms->iph.ttl = nla_get_u8(data[IFLA_IPTUN_TTL]); in ipip_netlink_parms()
448 parms->iph.tos = nla_get_u8(data[IFLA_IPTUN_TOS]); in ipip_netlink_parms()
451 parms->iph.protocol = nla_get_u8(data[IFLA_IPTUN_PROTO]); in ipip_netlink_parms()
453 if (!data[IFLA_IPTUN_PMTUDISC] || nla_get_u8(data[IFLA_IPTUN_PMTUDISC])) in ipip_netlink_parms()
/Linux-v4.19/drivers/net/wireless/ti/wlcore/
Dtestmode.c88 answer = nla_get_u8(tb[WL1271_TM_ATTR_ANSWER]); in wl1271_tm_cmd_test()
166 ie_id = nla_get_u8(tb[WL1271_TM_ATTR_IE_ID]); in wl1271_tm_cmd_interrogate()
234 ie_id = nla_get_u8(tb[WL1271_TM_ATTR_IE_ID]); in wl1271_tm_cmd_configure()
/Linux-v4.19/net/l2tp/
Dl2tp_netlink.c190 proto_version = nla_get_u8(info->attrs[L2TP_ATTR_PROTO_VERSION]); in l2tp_nl_cmd_tunnel_create()
564 cfg.l2specific_type = nla_get_u8(info->attrs[L2TP_ATTR_L2SPEC_TYPE]); in l2tp_nl_cmd_session_create()
600 cfg.recv_seq = nla_get_u8(info->attrs[L2TP_ATTR_RECV_SEQ]); in l2tp_nl_cmd_session_create()
603 cfg.send_seq = nla_get_u8(info->attrs[L2TP_ATTR_SEND_SEQ]); in l2tp_nl_cmd_session_create()
606 cfg.lns_mode = nla_get_u8(info->attrs[L2TP_ATTR_LNS_MODE]); in l2tp_nl_cmd_session_create()
685 session->recv_seq = nla_get_u8(info->attrs[L2TP_ATTR_RECV_SEQ]); in l2tp_nl_cmd_session_modify()
688 session->send_seq = nla_get_u8(info->attrs[L2TP_ATTR_SEND_SEQ]); in l2tp_nl_cmd_session_modify()
693 session->lns_mode = nla_get_u8(info->attrs[L2TP_ATTR_LNS_MODE]); in l2tp_nl_cmd_session_modify()
/Linux-v4.19/net/dcb/
Ddcbnl.c400 value = nla_get_u8(data[i]); in dcbnl_setnumtcs()
431 value = nla_get_u8(tb[DCB_ATTR_PFC_STATE]); in dcbnl_setpfcstate()
461 idtype = nla_get_u8(app_tb[DCB_APP_ATTR_IDTYPE]); in dcbnl_getapp()
530 idtype = nla_get_u8(app_tb[DCB_APP_ATTR_IDTYPE]); in dcbnl_setapp()
536 up = nla_get_u8(app_tb[DCB_APP_ATTR_PRIORITY]); in dcbnl_setapp()
713 value = nla_get_u8(tb[DCB_ATTR_STATE]); in dcbnl_setstate()
741 value = nla_get_u8(data[i]); in dcbnl_setpfccfg()
810 nla_get_u8(param_tb[DCB_TC_ATTR_PARAM_STRICT_PRIO]); in __dcbnl_pg_setcfg()
813 pgid = nla_get_u8(param_tb[DCB_TC_ATTR_PARAM_PGID]); in __dcbnl_pg_setcfg()
816 tc_pct = nla_get_u8(param_tb[DCB_TC_ATTR_PARAM_BW_PCT]); in __dcbnl_pg_setcfg()
[all …]
/Linux-v4.19/net/sched/
Dact_tunnel_key.c109 opt->type = nla_get_u8(tb[TCA_TUNNEL_KEY_ENC_OPT_GENEVE_TYPE]); in tunnel_key_copy_geneve_opt()
259 nla_get_u8(tb[TCA_TUNNEL_KEY_NO_CSUM])) in tunnel_key_init()
276 tos = nla_get_u8(tb[TCA_TUNNEL_KEY_ENC_TOS]); in tunnel_key_init()
279 ttl = nla_get_u8(tb[TCA_TUNNEL_KEY_ENC_TTL]); in tunnel_key_init()
Dem_ipt.c105 mrev = nla_get_u8(tb[TCA_EM_IPT_MATCH_REVISION]); in get_xt_match()
111 nfproto = nla_get_u8(tb[TCA_EM_IPT_NFPROTO]); in get_xt_match()
/Linux-v4.19/net/netfilter/
Dnft_tunnel.c252 hwid = nla_get_u8(tb[NFTA_TUNNEL_KEY_ERSPAN_V2_HWID]); in nft_tunnel_obj_erspan_init()
253 dir = nla_get_u8(tb[NFTA_TUNNEL_KEY_ERSPAN_V2_DIR]); in nft_tunnel_obj_erspan_init()
361 info.key.tos = nla_get_u8(tb[NFTA_TUNNEL_KEY_TOS]); in nft_tunnel_obj_init()
363 info.key.ttl = nla_get_u8(tb[NFTA_TUNNEL_KEY_TTL]); in nft_tunnel_obj_init()
Dnf_conntrack_proto_dccp.c655 nla_get_u8(tb[CTA_PROTOINFO_DCCP_ROLE]) > CT_DCCP_ROLE_MAX || in nlattr_to_dccp()
656 nla_get_u8(tb[CTA_PROTOINFO_DCCP_STATE]) >= CT_DCCP_IGNORE) { in nlattr_to_dccp()
661 ct->proto.dccp.state = nla_get_u8(tb[CTA_PROTOINFO_DCCP_STATE]); in nlattr_to_dccp()
662 if (nla_get_u8(tb[CTA_PROTOINFO_DCCP_ROLE]) == CT_DCCP_ROLE_CLIENT) { in nlattr_to_dccp()
Dnft_reject.c54 priv->icmp_code = nla_get_u8(tb[NFTA_REJECT_ICMP_CODE]); in nft_reject_init()
/Linux-v4.19/include/linux/
Dgenl_magic_struct.h74 nla_get_u8, nla_put_u8, false)
77 nla_get_u8, nla_put_u8, false)

1234