Home
last modified time | relevance | path

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

12345

/linux/net/ipv4/
H A Dip_tunnel_core.c523 opt->type = nla_get_u8(attr); in ip_tun_parse_opts_geneve()
574 ver = nla_get_u8(tb[LWTUNNEL_IP_OPT_ERSPAN_VER]); in ip_tun_parse_opts_erspan()
596 md->u.md2.dir = nla_get_u8(attr); in ip_tun_parse_opts_erspan()
598 set_hwid(&md->u.md2, nla_get_u8(attr)); in ip_tun_parse_opts_erspan()
727 tun_info->key.ttl = nla_get_u8(tb[LWTUNNEL_IP_TTL]); in ip_tun_build_state()
730 tun_info->key.tos = nla_get_u8(tb[LWTUNNEL_IP_TOS]); in ip_tun_build_state()
1013 tun_info->key.ttl = nla_get_u8(tb[LWTUNNEL_IP6_HOPLIMIT]); in ip6_tun_build_state()
1016 tun_info->key.tos = nla_get_u8(tb[LWTUNNEL_IP6_TC]); in ip6_tun_build_state()
1170 parms->iph.ttl = nla_get_u8(data[IFLA_IPTUN_TTL]); in ip_tunnel_netlink_parms()
1176 parms->iph.tos = nla_get_u8(data[IFLA_IPTUN_TOS]); in ip_tunnel_netlink_parms()
[all …]
H A Dnetlink.c13 *ip_proto = nla_get_u8(attr); in rtm_getroute_parse_ip_proto()
/linux/net/bridge/
H A Dbr_vlan_options.c225 u8 state = nla_get_u8(tb[BRIDGE_VLANDB_ENTRY_STATE]); in br_vlan_process_one_opts()
241 val = nla_get_u8(tb[BRIDGE_VLANDB_ENTRY_MCAST_ROUTER]); in br_vlan_process_one_opts()
267 bool val = nla_get_u8(tb[BRIDGE_VLANDB_ENTRY_NEIGH_SUPPRESS]); in br_vlan_process_one_opts()
545 mc_snooping = nla_get_u8(tb[BRIDGE_VLANDB_GOPTS_MCAST_SNOOPING]); in br_vlan_process_global_one_opts()
552 ver = nla_get_u8(tb[BRIDGE_VLANDB_GOPTS_MCAST_IGMP_VERSION]); in br_vlan_process_global_one_opts()
617 val = nla_get_u8(tb[BRIDGE_VLANDB_GOPTS_MCAST_QUERIER]); in br_vlan_process_global_one_opts()
627 ver = nla_get_u8(tb[BRIDGE_VLANDB_GOPTS_MCAST_MLD_VERSION]); in br_vlan_process_global_one_opts()
H A Dbr_netlink.c936 if (nla_get_u8(tb[attrtype])) in br_set_port_flag()
1015 err = br_set_port_state(p, nla_get_u8(tb[IFLA_BRPORT_STATE])); in br_setport()
1025 u8 mcast_router = nla_get_u8(tb[IFLA_BRPORT_MULTICAST_ROUTER]); in br_setport()
1126 err = br_set_port_state(p, nla_get_u8(protinfo)); in br_setlink()
1324 u8 vlan_filter = nla_get_u8(data[IFLA_BR_VLAN_FILTERING]); in br_changelink()
1349 __u8 vlan_stats = nla_get_u8(data[IFLA_BR_VLAN_STATS_ENABLED]); in br_changelink()
1357 __u8 per_port = nla_get_u8(data[IFLA_BR_VLAN_STATS_PER_PORT]); in br_changelink()
1402 u8 multicast_router = nla_get_u8(data[IFLA_BR_MCAST_ROUTER]); in br_changelink()
1411 u8 mcast_snooping = nla_get_u8(data[IFLA_BR_MCAST_SNOOPING]); in br_changelink()
1421 val = nla_get_u8(dat in br_changelink()
[all...]
/linux/net/netfilter/ipset/
H A Dip_set_hash_ipportnet.c195 cidr = nla_get_u8(tb[IPSET_ATTR_CIDR2]); in hash_ipportnet4_uadt()
204 e.proto = nla_get_u8(tb[IPSET_ATTR_PROTO]); in hash_ipportnet4_uadt()
242 cidr = nla_get_u8(tb[IPSET_ATTR_CIDR]); in hash_ipportnet4_uadt()
440 cidr = nla_get_u8(tb[IPSET_ATTR_CIDR]); in hash_ipportnet6_uadt()
459 cidr = nla_get_u8(tb[IPSET_ATTR_CIDR2]); in hash_ipportnet6_uadt()
470 e.proto = nla_get_u8(tb[IPSET_ATTR_PROTO]); in hash_ipportnet6_uadt()
H A Dip_set_hash_netportnet.c223 e.cidr[0] = nla_get_u8(tb[IPSET_ATTR_CIDR]); in hash_netportnet4_uadt()
229 e.cidr[1] = nla_get_u8(tb[IPSET_ATTR_CIDR2]); in hash_netportnet4_uadt()
237 e.proto = nla_get_u8(tb[IPSET_ATTR_PROTO]); in hash_netportnet4_uadt()
509 e.cidr[0] = nla_get_u8(tb[IPSET_ATTR_CIDR]); in hash_netportnet6_uadt()
515 e.cidr[1] = nla_get_u8(tb[IPSET_ATTR_CIDR2]); in hash_netportnet6_uadt()
526 e.proto = nla_get_u8(tb[IPSET_ATTR_PROTO]); in hash_netportnet6_uadt()
H A Dip_set_hash_ipportip.c142 e.proto = nla_get_u8(tb[IPSET_ATTR_PROTO]); in hash_ipportip4_uadt()
169 u8 cidr = nla_get_u8(tb[IPSET_ATTR_CIDR]); in hash_ipportip4_uadt()
299 u8 cidr = nla_get_u8(tb[IPSET_ATTR_CIDR]); in hash_ipportip6_uadt()
320 e.proto = nla_get_u8(tb[IPSET_ATTR_PROTO]); in hash_ipportip6_uadt()
H A Dip_set_hash_ipport.c146 e.proto = nla_get_u8(tb[IPSET_ATTR_PROTO]); in hash_ipport4_uadt()
173 u8 cidr = nla_get_u8(tb[IPSET_ATTR_CIDR]); in hash_ipport4_uadt()
304 u8 cidr = nla_get_u8(tb[IPSET_ATTR_CIDR]); in hash_ipport6_uadt()
325 e.proto = nla_get_u8(tb[IPSET_ATTR_PROTO]); in hash_ipport6_uadt()
H A Dip_set_hash_netport.c184 cidr = nla_get_u8(tb[IPSET_ATTR_CIDR]); in hash_netport4_uadt()
193 e.proto = nla_get_u8(tb[IPSET_ATTR_PROTO]); in hash_netport4_uadt()
406 cidr = nla_get_u8(tb[IPSET_ATTR_CIDR]); in hash_netport6_uadt()
416 e.proto = nla_get_u8(tb[IPSET_ATTR_PROTO]); in hash_netport6_uadt()
H A Dip_set_hash_netnet.c198 e.cidr[0] = nla_get_u8(tb[IPSET_ATTR_CIDR]); in hash_netnet4_uadt()
204 e.cidr[1] = nla_get_u8(tb[IPSET_ATTR_CIDR2]); in hash_netnet4_uadt()
442 e.cidr[0] = nla_get_u8(tb[IPSET_ATTR_CIDR]); in hash_netnet6_uadt()
448 e.cidr[1] = nla_get_u8(tb[IPSET_ATTR_CIDR2]); in hash_netnet6_uadt()
/linux/net/ethtool/
H A Deeprom.c163 request->i2c_address = nla_get_u8(tb[ETHTOOL_A_MODULE_EEPROM_I2C_ADDRESS]); in eeprom_parse_request()
173 request->page = nla_get_u8(tb[ETHTOOL_A_MODULE_EEPROM_PAGE]); in eeprom_parse_request()
192 request->bank = nla_get_u8(tb[ETHTOOL_A_MODULE_EEPROM_BANK]); in eeprom_parse_request()
H A Dnetlink.h110 val = nla_get_u8(attr); in ethnl_update_u8()
136 val = !!nla_get_u8(attr); in ethnl_update_bool32()
162 val = !!nla_get_u8(attr); in ethnl_update_bool()
/linux/net/sched/
H A Dem_ipt.c116 mrev = nla_get_u8(tb[TCA_EM_IPT_MATCH_REVISION]); in get_xt_match()
122 nfproto = nla_get_u8(tb[TCA_EM_IPT_NFPROTO]); in get_xt_match()
144 nfproto = nla_get_u8(tb[TCA_EM_IPT_NFPROTO]); in em_ipt_change()
H A Dsch_dualpi2.c836 u8 coupling = nla_get_u8(tb[TCA_DUALPI2_COUPLING]); in dualpi2_change()
842 u8 drop_overload = nla_get_u8(tb[TCA_DUALPI2_DROP_OVERLOAD]); in dualpi2_change()
848 u8 drop_early = nla_get_u8(tb[TCA_DUALPI2_DROP_EARLY]); in dualpi2_change()
854 u8 wc = nla_get_u8(tb[TCA_DUALPI2_C_PROTECTION]); in dualpi2_change()
860 u8 ecn_mask = nla_get_u8(tb[TCA_DUALPI2_ECN_MASK]); in dualpi2_change()
866 u8 split_gso = nla_get_u8(tb[TCA_DUALPI2_SPLIT_GSO]); in dualpi2_change()
/linux/net/ipv6/ila/
H A Dila_lwt.c167 ident_type = nla_get_u8(tb[ILA_ATTR_IDENT_TYPE]); in ila_build_state()
202 hook_type = nla_get_u8(tb[ILA_ATTR_HOOK_TYPE]); in ila_build_state()
216 csum_mode = nla_get_u8(tb[ILA_ATTR_CSUM_MODE]); in ila_build_state()
/linux/drivers/net/wireless/ti/wlcore/
H A Dtestmode.c74 answer = nla_get_u8(tb[WL1271_TM_ATTR_ANSWER]); in wl1271_tm_cmd_test()
149 ie_id = nla_get_u8(tb[WL1271_TM_ATTR_IE_ID]); in wl1271_tm_cmd_interrogate()
214 ie_id = nla_get_u8(tb[WL1271_TM_ATTR_IE_ID]); in wl1271_tm_cmd_configure()
/linux/net/l2tp/
H A Dl2tp_netlink.c213 proto_version = nla_get_u8(attrs[L2TP_ATTR_PROTO_VERSION]); in l2tp_nl_cmd_tunnel_create()
581 cfg.l2specific_type = nla_get_u8(info->attrs[L2TP_ATTR_L2SPEC_TYPE]); in l2tp_nl_cmd_session_create()
616 cfg.recv_seq = nla_get_u8(info->attrs[L2TP_ATTR_RECV_SEQ]); in l2tp_nl_cmd_session_create()
619 cfg.send_seq = nla_get_u8(info->attrs[L2TP_ATTR_SEND_SEQ]); in l2tp_nl_cmd_session_create()
622 cfg.lns_mode = nla_get_u8(info->attrs[L2TP_ATTR_LNS_MODE]); in l2tp_nl_cmd_session_create()
698 session->recv_seq = nla_get_u8(info->attrs[L2TP_ATTR_RECV_SEQ]); in l2tp_nl_cmd_session_modify()
703 session->send_seq = nla_get_u8(info->attrs[L2TP_ATTR_SEND_SEQ]); in l2tp_nl_cmd_session_modify()
708 session->lns_mode = nla_get_u8(info->attrs[L2TP_ATTR_LNS_MODE]); in l2tp_nl_cmd_session_modify()
/linux/net/dcb/
H A Ddcbnl.c427 value = nla_get_u8(data[i]); in dcbnl_setnumtcs()
458 value = nla_get_u8(tb[DCB_ATTR_PFC_STATE]); in dcbnl_setpfcstate()
489 idtype = nla_get_u8(app_tb[DCB_APP_ATTR_IDTYPE]); in dcbnl_getapp()
559 idtype = nla_get_u8(app_tb[DCB_APP_ATTR_IDTYPE]); in dcbnl_setapp()
565 up = nla_get_u8(app_tb[DCB_APP_ATTR_PRIORITY]); in dcbnl_setapp()
744 value = nla_get_u8(tb[DCB_ATTR_STATE]); in dcbnl_setstate()
773 value = nla_get_u8(data[i]); in dcbnl_setpfccfg()
845 nla_get_u8(param_tb[DCB_TC_ATTR_PARAM_STRICT_PRIO]); in __dcbnl_pg_setcfg()
848 pgid = nla_get_u8(param_tb[DCB_TC_ATTR_PARAM_PGID]); in __dcbnl_pg_setcfg()
851 tc_pct = nla_get_u8(param_tb[DCB_TC_ATTR_PARAM_BW_PCT]); in __dcbnl_pg_setcfg()
[all …]
/linux/drivers/net/
H A Dmacsec.c1540 return (__force enum macsec_offload)nla_get_u8(nla); in nla_get_offload()
1580 *assoc_num = nla_get_u8(tb_sa[MACSEC_SA_ATTR_AN]); in get_txsa_from_nl()
1645 *assoc_num = nla_get_u8(tb_sa[MACSEC_SA_ATTR_AN]); in get_rxsa_from_nl()
1769 assoc_num = nla_get_u8(tb_sa[MACSEC_SA_ATTR_AN]); in macsec_add_rxsa()
1821 rx_sa->active = !!nla_get_u8(tb_sa[MACSEC_SA_ATTR_ACTIVE]); in macsec_add_rxsa()
1898 active = nla_get_u8(tb_rxsc[MACSEC_RXSC_ATTR_ACTIVE]); in macsec_add_rxsc()
1978 assoc_num = nla_get_u8(tb_sa[MACSEC_SA_ATTR_AN]); in macsec_add_txsa()
2027 tx_sa->active = !!nla_get_u8(tb_sa[MACSEC_SA_ATTR_ACTIVE]); in macsec_add_txsa()
2330 tx_sa->active = nla_get_u8(tb_sa[MACSEC_SA_ATTR_ACTIVE]); in macsec_upd_txsa()
2428 rx_sa->active = nla_get_u8(tb_sa[MACSEC_SA_ATTR_ACTIVE]); in macsec_upd_rxsa()
[all …]
/linux/net/ieee802154/
H A Dnl802154.c982 page = nla_get_u8(info->attrs[NL802154_ATTR_PAGE]); in nl802154_set_channel()
983 channel = nla_get_u8(info->attrs[NL802154_ATTR_CHANNEL]); in nl802154_set_channel()
1156 min_be = nla_get_u8(info->attrs[NL802154_ATTR_MIN_BE]); in nl802154_set_backoff_exponent()
1157 max_be = nla_get_u8(info->attrs[NL802154_ATTR_MAX_BE]); in nl802154_set_backoff_exponent()
1185 max_csma_backoffs = nla_get_u8( in nl802154_set_max_csma_backoffs()
1234 mode = nla_get_u8(info->attrs[NL802154_ATTR_LBT_MODE]); in nl802154_set_lbt_mode()
1259 ackreq = nla_get_u8(info->attrs[NL802154_ATTR_ACKREQ_DEFAULT]); in nl802154_set_ackreq_default()
1428 type = nla_get_u8(info->attrs[NL802154_ATTR_SCAN_TYPE]); in nl802154_trigger_scan()
1907 desc->id = nla_get_u8(attrs[NL802154_KEY_ID_ATTR_INDEX]); in ieee802154_llsec_parse_key_id()
1929 enabled = nla_get_u8(info->attrs[NL802154_ATTR_SEC_ENABLED]); in nl802154_set_llsec_params()
[all …]
/linux/net/ipv6/
H A Dfib6_rules.c363 rule6->dscp = inet_dsfield_to_dscp(nla_get_u8(nla) << 2); in fib6_nl2rule_dscp()
382 dscp_mask = inet_dsfield_to_dscp(nla_get_u8(nla) << 2); in fib6_nl2rule_dscp_mask()
510 dscp = inet_dsfield_to_dscp(nla_get_u8(tb[FRA_DSCP]) << 2); in fib6_rule_compare()
518 dscp_mask = inet_dsfield_to_dscp(nla_get_u8(tb[FRA_DSCP_MASK]) << 2); in fib6_rule_compare()
/linux/include/linux/
H A Dgenl_magic_struct.h72 nla_get_u8, nla_put_u8, false)
75 nla_get_u8, nla_put_u8, false)
/linux/net/wireless/
H A Dpmsr.c78 nla_get_u8(tb[NL80211_PMSR_FTM_REQ_ATTR_NUM_BURSTS_EXP]); in pmsr_parse_ftm()
105 nla_get_u8(tb[NL80211_PMSR_FTM_REQ_ATTR_NUM_FTMR_RETRIES]); in pmsr_parse_ftm()
164 nla_get_u8(tb[NL80211_PMSR_FTM_REQ_ATTR_BURST_DURATION]); in pmsr_parse_ftm()
187 nla_get_u8(tb[NL80211_PMSR_FTM_REQ_ATTR_BSS_COLOR]); in pmsr_parse_ftm()
H A Dnl80211.c1418 return nla_get_u8(linkid); in nl80211_link_id_or_invalid()
1451 k->idx = nla_get_u8(tb[NL80211_KEY_IDX]); in nl80211_parse_key_new()
1485 k->p.mode = nla_get_u8(tb[NL80211_KEY_MODE]); in nl80211_parse_key_new()
1503 k->idx = nla_get_u8(info->attrs[NL80211_ATTR_KEY_IDX]); in nl80211_parse_key_old()
3533 ac = nla_get_u8(tb[NL80211_TXQ_ATTR_AC]); in parse_txq_params()
3537 txq_params->aifs = nla_get_u8(tb[NL80211_TXQ_ATTR_AIFS]); in parse_txq_params()
3660 nla_get_u8(info->attrs[NL80211_ATTR_WIPHY_EDMG_CHANNELS]); in _nl80211_parse_chandef()
3664 nla_get_u8(info->attrs[NL80211_ATTR_WIPHY_EDMG_BW_CONFIG]); in _nl80211_parse_chandef()
3912 radio_idx = nla_get_u8( in nl80211_set_wiphy()
4044 retry_short = nla_get_u8( in nl80211_set_wiphy()
[all …]
/linux/net/netfilter/
H A Dnft_ct.c505 priv->dir = nla_get_u8(tb[NFTA_CT_DIRECTION]); in nft_ct_get_init()
618 priv->dir = nla_get_u8(tb[NFTA_CT_DIRECTION]); in nft_ct_set_init()
976 l4num = nla_get_u8(tb[NFTA_CT_TIMEOUT_L4PROTO]); in nft_ct_timeout_obj_init()
1088 priv->l4proto = nla_get_u8(tb[NFTA_CT_HELPER_L4PROTO]); in nft_ct_helper_obj_init()
1297 priv->l4proto = nla_get_u8(tb[NFTA_CT_EXPECT_L4PROTO]); in nft_ct_expect_obj_init()
1311 priv->size = nla_get_u8(tb[NFTA_CT_EXPECT_SIZE]); in nft_ct_expect_obj_init()

12345