Home
last modified time | relevance | path

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

1234

/linux/drivers/net/bonding/
H A Dbond_netlink.c198 int mode = nla_get_u8(data[IFLA_BOND_MODE]); in bond_changelink()
261 int use_carrier = nla_get_u8(data[IFLA_BOND_USE_CARRIER]); in bond_changelink()
384 nla_get_u8(data[IFLA_BOND_PRIMARY_RESELECT]); in bond_changelink()
394 nla_get_u8(data[IFLA_BOND_FAIL_OVER_MAC]); in bond_changelink()
404 nla_get_u8(data[IFLA_BOND_XMIT_HASH_POLICY]); in bond_changelink()
424 nla_get_u8(data[IFLA_BOND_NUM_PEER_NOTIF]); in bond_changelink()
434 nla_get_u8(data[IFLA_BOND_ALL_SLAVES_ACTIVE]); in bond_changelink()
474 int lacp_active = nla_get_u8(data[IFLA_BOND_AD_LACP_ACTIVE]); in bond_changelink()
485 nla_get_u8(data[IFLA_BOND_AD_LACP_RATE]); in bond_changelink()
495 nla_get_u8(data[IFLA_BOND_AD_SELECT]); in bond_changelink()
[all …]
/linux/net/ipv4/
H A Dip_tunnel_core.c500 opt->type = nla_get_u8(attr); in ip_tun_parse_opts_geneve()
551 ver = nla_get_u8(tb[LWTUNNEL_IP_OPT_ERSPAN_VER]); in ip_tun_parse_opts_erspan()
573 md->u.md2.dir = nla_get_u8(attr); in ip_tun_parse_opts_erspan()
575 set_hwid(&md->u.md2, nla_get_u8(attr)); in ip_tun_parse_opts_erspan()
704 tun_info->key.ttl = nla_get_u8(tb[LWTUNNEL_IP_TTL]); in ip_tun_build_state()
707 tun_info->key.tos = nla_get_u8(tb[LWTUNNEL_IP_TOS]); in ip_tun_build_state()
990 tun_info->key.ttl = nla_get_u8(tb[LWTUNNEL_IP6_HOPLIMIT]); in ip6_tun_build_state()
993 tun_info->key.tos = nla_get_u8(tb[LWTUNNEL_IP6_TC]); in ip6_tun_build_state()
1147 parms->iph.ttl = nla_get_u8(data[IFLA_IPTUN_TTL]); in ip_tunnel_netlink_parms()
1153 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.c205 u8 state = nla_get_u8(tb[BRIDGE_VLANDB_ENTRY_STATE]); in br_vlan_process_one_opts()
221 val = nla_get_u8(tb[BRIDGE_VLANDB_ENTRY_MCAST_ROUTER]); in br_vlan_process_one_opts()
247 bool val = nla_get_u8(tb[BRIDGE_VLANDB_ENTRY_NEIGH_SUPPRESS]); in br_vlan_process_one_opts()
525 mc_snooping = nla_get_u8(tb[BRIDGE_VLANDB_GOPTS_MCAST_SNOOPING]); in br_vlan_process_global_one_opts()
532 ver = nla_get_u8(tb[BRIDGE_VLANDB_GOPTS_MCAST_IGMP_VERSION]); in br_vlan_process_global_one_opts()
597 val = nla_get_u8(tb[BRIDGE_VLANDB_GOPTS_MCAST_QUERIER]); in br_vlan_process_global_one_opts()
607 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(data[IFLA_BR_MCAST_QUERY_USE_IFADDR]); 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()
H A Dip_set_hash_ipmark.c144 u8 cidr = nla_get_u8(tb[IPSET_ATTR_CIDR]); in hash_ipmark4_uadt()
250 u8 cidr = nla_get_u8(tb[IPSET_ATTR_CIDR]); in hash_ipmark6_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.h107 val = nla_get_u8(attr); in ethnl_update_u8()
133 val = !!nla_get_u8(attr); in ethnl_update_bool32()
159 val = !!nla_get_u8(attr); in ethnl_update_bool()
/linux/drivers/net/
H A Dmacsec.c1511 return (__force enum macsec_offload)nla_get_u8(nla); in nla_get_offload()
1551 *assoc_num = nla_get_u8(tb_sa[MACSEC_SA_ATTR_AN]); in get_txsa_from_nl()
1619 *assoc_num = nla_get_u8(tb_sa[MACSEC_SA_ATTR_AN]); in get_rxsa_from_nl()
1713 if (nla_get_u8(attrs[MACSEC_SA_ATTR_AN]) >= MACSEC_NUM_AN) in validate_add_rxsa()
1721 if (nla_get_u8(attrs[MACSEC_SA_ATTR_ACTIVE]) > 1) in validate_add_rxsa()
1763 assoc_num = nla_get_u8(tb_sa[MACSEC_SA_ATTR_AN]); in macsec_add_rxsa()
1823 rx_sa->active = !!nla_get_u8(tb_sa[MACSEC_SA_ATTR_ACTIVE]); in macsec_add_rxsa()
1875 if (nla_get_u8(attrs[MACSEC_RXSC_ATTR_ACTIVE]) > 1) in validate_add_rxsc()
1913 active = nla_get_u8(tb_rxsc[MACSEC_RXSC_ATTR_ACTIVE]); in macsec_add_rxsc()
1958 if (nla_get_u8(attrs[MACSEC_SA_ATTR_AN]) >= MACSEC_NUM_AN) in validate_add_txsa()
[all …]
/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 Dact_tunnel_key.c127 opt->type = nla_get_u8(tb[TCA_TUNNEL_KEY_ENC_OPT_GENEVE_TYPE]); in tunnel_key_copy_geneve_opt()
184 ver = nla_get_u8(tb[TCA_TUNNEL_KEY_ENC_OPT_ERSPAN_VER]); in tunnel_key_copy_erspan_opt()
210 md->u.md2.dir = nla_get_u8(nla); in tunnel_key_copy_erspan_opt()
212 set_hwid(&md->u.md2, nla_get_u8(nla)); in tunnel_key_copy_erspan_opt()
420 nla_get_u8(tb[TCA_TUNNEL_KEY_NO_CSUM])) in tunnel_key_init()
440 tos = nla_get_u8(tb[TCA_TUNNEL_KEY_ENC_TOS]); in tunnel_key_init()
443 ttl = nla_get_u8(tb[TCA_TUNNEL_KEY_ENC_TTL]); in tunnel_key_init()
/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/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/netfilter/
H A Dnf_conntrack_proto_dccp.c701 nla_get_u8(tb[CTA_PROTOINFO_DCCP_ROLE]) > CT_DCCP_ROLE_MAX || in nlattr_to_dccp()
702 nla_get_u8(tb[CTA_PROTOINFO_DCCP_STATE]) >= CT_DCCP_IGNORE) { in nlattr_to_dccp()
707 ct->proto.dccp.state = nla_get_u8(tb[CTA_PROTOINFO_DCCP_STATE]); in nlattr_to_dccp()
708 if (nla_get_u8(tb[CTA_PROTOINFO_DCCP_ROLE]) == CT_DCCP_ROLE_CLIENT) { in nlattr_to_dccp()
H A Dnft_ct.c491 priv->dir = nla_get_u8(tb[NFTA_CT_DIRECTION]); in nft_ct_get_init()
599 priv->dir = nla_get_u8(tb[NFTA_CT_DIRECTION]); in nft_ct_set_init()
955 l4num = nla_get_u8(tb[NFTA_CT_TIMEOUT_L4PROTO]); in nft_ct_timeout_obj_init()
1066 priv->l4proto = nla_get_u8(tb[NFTA_CT_HELPER_L4PROTO]); in nft_ct_helper_obj_init()
1270 priv->l4proto = nla_get_u8(tb[NFTA_CT_EXPECT_L4PROTO]); in nft_ct_expect_obj_init()
1284 priv->size = nla_get_u8(tb[NFTA_CT_EXPECT_SIZE]); in nft_ct_expect_obj_init()
H A Dnft_tunnel.c317 hwid = nla_get_u8(tb[NFTA_TUNNEL_KEY_ERSPAN_V2_HWID]); in nft_tunnel_obj_erspan_init()
318 dir = nla_get_u8(tb[NFTA_TUNNEL_KEY_ERSPAN_V2_DIR]); in nft_tunnel_obj_erspan_init()
370 opt->type = nla_get_u8(tb[NFTA_TUNNEL_KEY_GENEVE_TYPE]); in nft_tunnel_obj_geneve_init()
499 info.key.tos = nla_get_u8(tb[NFTA_TUNNEL_KEY_TOS]); in nft_tunnel_obj_init()
H A Dnf_conntrack_proto_icmp.c282 tuple->dst.u.icmp.type = nla_get_u8(tb[CTA_PROTO_ICMP_TYPE]); in icmp_nlattr_to_tuple()
292 tuple->dst.u.icmp.code = nla_get_u8(tb[CTA_PROTO_ICMP_CODE]); in icmp_nlattr_to_tuple()
/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 Dnl80211.c1319 return nla_get_u8(linkid); in nl80211_link_id_or_invalid()
1352 k->idx = nla_get_u8(tb[NL80211_KEY_IDX]); in nl80211_parse_key_new()
1386 k->p.mode = nla_get_u8(tb[NL80211_KEY_MODE]); in nl80211_parse_key_new()
1404 k->idx = nla_get_u8(info->attrs[NL80211_ATTR_KEY_IDX]); in nl80211_parse_key_old()
3315 ac = nla_get_u8(tb[NL80211_TXQ_ATTR_AC]); in parse_txq_params()
3319 txq_params->aifs = nla_get_u8(tb[NL80211_TXQ_ATTR_AIFS]); in parse_txq_params()
3445 nla_get_u8(info->attrs[NL80211_ATTR_WIPHY_EDMG_CHANNELS]); in _nl80211_parse_chandef()
3449 nla_get_u8(info->attrs[NL80211_ATTR_WIPHY_EDMG_BW_CONFIG]); in _nl80211_parse_chandef()
3787 retry_short = nla_get_u8( in nl80211_set_wiphy()
3794 retry_long = nla_get_u8( in nl80211_set_wiphy()
[all …]

1234