/linux-6.6.21/net/ieee802154/ |
D | nl-mac.c | 206 page = nla_get_u8(info->attrs[IEEE802154_ATTR_PAGE]); in ieee802154_associate_req() 211 nla_get_u8(info->attrs[IEEE802154_ATTR_CHANNEL]), in ieee802154_associate_req() 213 nla_get_u8(info->attrs[IEEE802154_ATTR_CAPABILITY])); in ieee802154_associate_req() 246 nla_get_u8(info->attrs[IEEE802154_ATTR_STATUS])); in ieee802154_associate_resp() 284 nla_get_u8(info->attrs[IEEE802154_ATTR_REASON])); in ieee802154_disassociate_req() 334 channel = nla_get_u8(info->attrs[IEEE802154_ATTR_CHANNEL]); in ieee802154_start_req() 335 bcn_ord = nla_get_u8(info->attrs[IEEE802154_ATTR_BCN_ORD]); in ieee802154_start_req() 336 sf_ord = nla_get_u8(info->attrs[IEEE802154_ATTR_SF_ORD]); in ieee802154_start_req() 337 pan_coord = nla_get_u8(info->attrs[IEEE802154_ATTR_PAN_COORD]); in ieee802154_start_req() 338 blx = nla_get_u8(info->attrs[IEEE802154_ATTR_BAT_EXT]); in ieee802154_start_req() [all …]
|
D | nl802154.c | 982 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() 1160 min_be = nla_get_u8(info->attrs[NL802154_ATTR_MIN_BE]); in nl802154_set_backoff_exponent() 1161 max_be = nla_get_u8(info->attrs[NL802154_ATTR_MAX_BE]); in nl802154_set_backoff_exponent() 1189 max_csma_backoffs = nla_get_u8( in nl802154_set_max_csma_backoffs() 1238 mode = nla_get_u8(info->attrs[NL802154_ATTR_LBT_MODE]); in nl802154_set_lbt_mode() 1263 ackreq = nla_get_u8(info->attrs[NL802154_ATTR_ACKREQ_DEFAULT]); in nl802154_set_ackreq_default() 1432 type = nla_get_u8(info->attrs[NL802154_ATTR_SCAN_TYPE]); in nl802154_trigger_scan() 1446 request->page = nla_get_u8(info->attrs[NL802154_ATTR_PAGE]); in nl802154_trigger_scan() 1458 request->duration = nla_get_u8(info->attrs[NL802154_ATTR_SCAN_DURATION]); in nl802154_trigger_scan() [all …]
|
/linux-6.6.21/drivers/net/bonding/ |
D | bond_netlink.c | 196 int mode = nla_get_u8(data[IFLA_BOND_MODE]); in bond_changelink() 259 int use_carrier = nla_get_u8(data[IFLA_BOND_USE_CARRIER]); in bond_changelink() 382 nla_get_u8(data[IFLA_BOND_PRIMARY_RESELECT]); in bond_changelink() 392 nla_get_u8(data[IFLA_BOND_FAIL_OVER_MAC]); in bond_changelink() 402 nla_get_u8(data[IFLA_BOND_XMIT_HASH_POLICY]); in bond_changelink() 422 nla_get_u8(data[IFLA_BOND_NUM_PEER_NOTIF]); in bond_changelink() 432 nla_get_u8(data[IFLA_BOND_ALL_SLAVES_ACTIVE]); in bond_changelink() 472 int lacp_active = nla_get_u8(data[IFLA_BOND_AD_LACP_ACTIVE]); in bond_changelink() 483 nla_get_u8(data[IFLA_BOND_AD_LACP_RATE]); in bond_changelink() 493 nla_get_u8(data[IFLA_BOND_AD_SELECT]); in bond_changelink() [all …]
|
/linux-6.6.21/net/batman-adv/ |
D | netlink.c | 211 atomic_set(&vlan->ap_isolation, !!nla_get_u8(attr)); in batadv_netlink_set_mesh_ap_isolation() 447 atomic_set(&bat_priv->aggregated_ogms, !!nla_get_u8(attr)); in batadv_netlink_set_mesh() 471 atomic_set(&bat_priv->bonding, !!nla_get_u8(attr)); in batadv_netlink_set_mesh() 479 !!nla_get_u8(attr)); in batadv_netlink_set_mesh() 489 !!nla_get_u8(attr)); in batadv_netlink_set_mesh() 497 atomic_set(&bat_priv->fragmentation, !!nla_get_u8(attr)); in batadv_netlink_set_mesh() 522 gw_mode = nla_get_u8(attr); in batadv_netlink_set_mesh() 569 atomic_set(&bat_priv->hop_penalty, nla_get_u8(attr)); in batadv_netlink_set_mesh() 585 atomic_set(&bat_priv->multicast_mode, !nla_get_u8(attr)); in batadv_netlink_set_mesh() 599 atomic_set(&bat_priv->network_coding, !!nla_get_u8(attr)); in batadv_netlink_set_mesh() [all …]
|
/linux-6.6.21/net/ipv4/ |
D | ip_tunnel_core.c | 499 opt->type = nla_get_u8(attr); in ip_tun_parse_opts_geneve() 550 ver = nla_get_u8(tb[LWTUNNEL_IP_OPT_ERSPAN_VER]); in ip_tun_parse_opts_erspan() 572 md->u.md2.dir = nla_get_u8(attr); in ip_tun_parse_opts_erspan() 574 set_hwid(&md->u.md2, nla_get_u8(attr)); in ip_tun_parse_opts_erspan() 703 tun_info->key.ttl = nla_get_u8(tb[LWTUNNEL_IP_TTL]); in ip_tun_build_state() 706 tun_info->key.tos = nla_get_u8(tb[LWTUNNEL_IP_TOS]); in ip_tun_build_state() 982 tun_info->key.ttl = nla_get_u8(tb[LWTUNNEL_IP6_HOPLIMIT]); in ip6_tun_build_state() 985 tun_info->key.tos = nla_get_u8(tb[LWTUNNEL_IP6_TC]); in ip6_tun_build_state() 1131 parms->iph.ttl = nla_get_u8(data[IFLA_IPTUN_TTL]); in ip_tunnel_netlink_parms() 1137 parms->iph.tos = nla_get_u8(data[IFLA_IPTUN_TOS]); in ip_tunnel_netlink_parms() [all …]
|
D | netlink.c | 13 *ip_proto = nla_get_u8(attr); in rtm_getroute_parse_ip_proto()
|
/linux-6.6.21/drivers/net/ |
D | macsec.c | 1500 return (__force enum macsec_offload)nla_get_u8(nla); in nla_get_offload() 1540 *assoc_num = nla_get_u8(tb_sa[MACSEC_SA_ATTR_AN]); in get_txsa_from_nl() 1608 *assoc_num = nla_get_u8(tb_sa[MACSEC_SA_ATTR_AN]); in get_rxsa_from_nl() 1702 if (nla_get_u8(attrs[MACSEC_SA_ATTR_AN]) >= MACSEC_NUM_AN) in validate_add_rxsa() 1710 if (nla_get_u8(attrs[MACSEC_SA_ATTR_ACTIVE]) > 1) in validate_add_rxsa() 1752 assoc_num = nla_get_u8(tb_sa[MACSEC_SA_ATTR_AN]); in macsec_add_rxsa() 1812 rx_sa->active = !!nla_get_u8(tb_sa[MACSEC_SA_ATTR_ACTIVE]); in macsec_add_rxsa() 1864 if (nla_get_u8(attrs[MACSEC_RXSC_ATTR_ACTIVE]) > 1) in validate_add_rxsc() 1902 active = nla_get_u8(tb_rxsc[MACSEC_RXSC_ATTR_ACTIVE]); in macsec_add_rxsc() 1947 if (nla_get_u8(attrs[MACSEC_SA_ATTR_AN]) >= MACSEC_NUM_AN) in validate_add_txsa() [all …]
|
/linux-6.6.21/net/bridge/ |
D | br_vlan_options.c | 205 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()
|
D | br_netlink.c | 935 if (nla_get_u8(tb[attrtype])) in br_set_port_flag() 1014 err = br_set_port_state(p, nla_get_u8(tb[IFLA_BRPORT_STATE])); in br_setport() 1024 u8 mcast_router = nla_get_u8(tb[IFLA_BRPORT_MULTICAST_ROUTER]); in br_setport() 1125 err = br_set_port_state(p, nla_get_u8(protinfo)); in br_setlink() 1319 u8 vlan_filter = nla_get_u8(data[IFLA_BR_VLAN_FILTERING]); in br_changelink() 1344 __u8 vlan_stats = nla_get_u8(data[IFLA_BR_VLAN_STATS_ENABLED]); in br_changelink() 1352 __u8 per_port = nla_get_u8(data[IFLA_BR_VLAN_STATS_PER_PORT]); in br_changelink() 1397 u8 multicast_router = nla_get_u8(data[IFLA_BR_MCAST_ROUTER]); in br_changelink() 1406 u8 mcast_snooping = nla_get_u8(data[IFLA_BR_MCAST_SNOOPING]); in br_changelink() 1416 val = nla_get_u8(data[IFLA_BR_MCAST_QUERY_USE_IFADDR]); in br_changelink() [all …]
|
/linux-6.6.21/net/ethtool/ |
D | eeprom.c | 157 request->i2c_address = nla_get_u8(tb[ETHTOOL_A_MODULE_EEPROM_I2C_ADDRESS]); in eeprom_parse_request() 167 request->page = nla_get_u8(tb[ETHTOOL_A_MODULE_EEPROM_PAGE]); in eeprom_parse_request() 186 request->bank = nla_get_u8(tb[ETHTOOL_A_MODULE_EEPROM_BANK]); in eeprom_parse_request()
|
D | netlink.h | 106 val = nla_get_u8(attr); in ethnl_update_u8() 132 val = !!nla_get_u8(attr); in ethnl_update_bool32() 158 val = !!nla_get_u8(attr); in ethnl_update_bool()
|
/linux-6.6.21/net/netfilter/ipset/ |
D | ip_set_hash_ipportnet.c | 195 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()
|
D | ip_set_hash_netportnet.c | 223 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()
|
D | ip_set_hash_ipportip.c | 142 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()
|
D | ip_set_hash_ipport.c | 146 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()
|
D | ip_set_hash_netport.c | 184 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()
|
D | ip_set_bitmap_ip.c | 172 u8 cidr = nla_get_u8(tb[IPSET_ATTR_CIDR]); in bitmap_ip_uadt() 278 u8 cidr = nla_get_u8(tb[IPSET_ATTR_CIDR]); in bitmap_ip_create() 288 netmask = nla_get_u8(tb[IPSET_ATTR_NETMASK]); in bitmap_ip_create()
|
D | ip_set_hash_netnet.c | 198 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-6.6.21/net/ipv6/ila/ |
D | ila_lwt.c | 160 ident_type = nla_get_u8(tb[ILA_ATTR_IDENT_TYPE]); in ila_build_state() 195 hook_type = nla_get_u8(tb[ILA_ATTR_HOOK_TYPE]); in ila_build_state() 209 csum_mode = nla_get_u8(tb[ILA_ATTR_CSUM_MODE]); in ila_build_state()
|
/linux-6.6.21/net/sched/ |
D | em_ipt.c | 116 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()
|
D | act_tunnel_key.c | 127 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-6.6.21/drivers/net/wireless/ti/wlcore/ |
D | testmode.c | 74 answer = nla_get_u8(tb[WL1271_TM_ATTR_ANSWER]); in wl1271_tm_cmd_test() 150 ie_id = nla_get_u8(tb[WL1271_TM_ATTR_IE_ID]); in wl1271_tm_cmd_interrogate() 216 ie_id = nla_get_u8(tb[WL1271_TM_ATTR_IE_ID]); in wl1271_tm_cmd_configure()
|
/linux-6.6.21/net/l2tp/ |
D | l2tp_netlink.c | 212 proto_version = nla_get_u8(attrs[L2TP_ATTR_PROTO_VERSION]); in l2tp_nl_cmd_tunnel_create() 574 cfg.l2specific_type = nla_get_u8(info->attrs[L2TP_ATTR_L2SPEC_TYPE]); in l2tp_nl_cmd_session_create() 609 cfg.recv_seq = nla_get_u8(info->attrs[L2TP_ATTR_RECV_SEQ]); in l2tp_nl_cmd_session_create() 612 cfg.send_seq = nla_get_u8(info->attrs[L2TP_ATTR_SEND_SEQ]); in l2tp_nl_cmd_session_create() 615 cfg.lns_mode = nla_get_u8(info->attrs[L2TP_ATTR_LNS_MODE]); in l2tp_nl_cmd_session_create() 690 session->recv_seq = nla_get_u8(info->attrs[L2TP_ATTR_RECV_SEQ]); in l2tp_nl_cmd_session_modify() 693 session->send_seq = nla_get_u8(info->attrs[L2TP_ATTR_SEND_SEQ]); in l2tp_nl_cmd_session_modify() 698 session->lns_mode = nla_get_u8(info->attrs[L2TP_ATTR_LNS_MODE]); in l2tp_nl_cmd_session_modify()
|
/linux-6.6.21/net/dcb/ |
D | dcbnl.c | 427 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-6.6.21/net/netfilter/ |
D | nf_conntrack_proto_dccp.c | 701 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()
|