• Home
  • Raw
  • Download

Lines Matching refs:attr

166 	struct nlattr *attr = nlmsg_find_attr(nlh, GENL_HDRLEN, attrtype);  in batadv_netlink_get_ifindex()  local
168 return (attr && nla_len(attr) == sizeof(u32)) ? nla_get_u32(attr) : 0; in batadv_netlink_get_ifindex()
202 static int batadv_netlink_set_mesh_ap_isolation(struct nlattr *attr, in batadv_netlink_set_mesh_ap_isolation() argument
211 atomic_set(&vlan->ap_isolation, !!nla_get_u8(attr)); in batadv_netlink_set_mesh_ap_isolation()
442 struct nlattr *attr; in batadv_netlink_set_mesh() local
445 attr = info->attrs[BATADV_ATTR_AGGREGATED_OGMS_ENABLED]; in batadv_netlink_set_mesh()
447 atomic_set(&bat_priv->aggregated_ogms, !!nla_get_u8(attr)); in batadv_netlink_set_mesh()
451 attr = info->attrs[BATADV_ATTR_AP_ISOLATION_ENABLED]; in batadv_netlink_set_mesh()
453 batadv_netlink_set_mesh_ap_isolation(attr, bat_priv); in batadv_netlink_set_mesh()
457 attr = info->attrs[BATADV_ATTR_ISOLATION_MARK]; in batadv_netlink_set_mesh()
459 bat_priv->isolation_mark = nla_get_u32(attr); in batadv_netlink_set_mesh()
463 attr = info->attrs[BATADV_ATTR_ISOLATION_MASK]; in batadv_netlink_set_mesh()
465 bat_priv->isolation_mark_mask = nla_get_u32(attr); in batadv_netlink_set_mesh()
469 attr = info->attrs[BATADV_ATTR_BONDING_ENABLED]; in batadv_netlink_set_mesh()
471 atomic_set(&bat_priv->bonding, !!nla_get_u8(attr)); in batadv_netlink_set_mesh()
476 attr = info->attrs[BATADV_ATTR_BRIDGE_LOOP_AVOIDANCE_ENABLED]; in batadv_netlink_set_mesh()
479 !!nla_get_u8(attr)); in batadv_netlink_set_mesh()
486 attr = info->attrs[BATADV_ATTR_DISTRIBUTED_ARP_TABLE_ENABLED]; in batadv_netlink_set_mesh()
489 !!nla_get_u8(attr)); in batadv_netlink_set_mesh()
495 attr = info->attrs[BATADV_ATTR_FRAGMENTATION_ENABLED]; in batadv_netlink_set_mesh()
497 atomic_set(&bat_priv->fragmentation, !!nla_get_u8(attr)); in batadv_netlink_set_mesh()
505 attr = info->attrs[BATADV_ATTR_GW_BANDWIDTH_DOWN]; in batadv_netlink_set_mesh()
507 atomic_set(&bat_priv->gw.bandwidth_down, nla_get_u32(attr)); in batadv_netlink_set_mesh()
512 attr = info->attrs[BATADV_ATTR_GW_BANDWIDTH_UP]; in batadv_netlink_set_mesh()
514 atomic_set(&bat_priv->gw.bandwidth_up, nla_get_u32(attr)); in batadv_netlink_set_mesh()
521 attr = info->attrs[BATADV_ATTR_GW_MODE]; in batadv_netlink_set_mesh()
522 gw_mode = nla_get_u8(attr); in batadv_netlink_set_mesh()
557 attr = info->attrs[BATADV_ATTR_GW_SEL_CLASS]; in batadv_netlink_set_mesh()
558 sel_class = nla_get_u32(attr); in batadv_netlink_set_mesh()
567 attr = info->attrs[BATADV_ATTR_HOP_PENALTY]; in batadv_netlink_set_mesh()
569 atomic_set(&bat_priv->hop_penalty, nla_get_u8(attr)); in batadv_netlink_set_mesh()
574 attr = info->attrs[BATADV_ATTR_LOG_LEVEL]; in batadv_netlink_set_mesh()
577 nla_get_u32(attr) & BATADV_DBG_ALL); in batadv_netlink_set_mesh()
583 attr = info->attrs[BATADV_ATTR_MULTICAST_FORCEFLOOD_ENABLED]; in batadv_netlink_set_mesh()
585 atomic_set(&bat_priv->multicast_mode, !nla_get_u8(attr)); in batadv_netlink_set_mesh()
589 attr = info->attrs[BATADV_ATTR_MULTICAST_FANOUT]; in batadv_netlink_set_mesh()
591 atomic_set(&bat_priv->multicast_fanout, nla_get_u32(attr)); in batadv_netlink_set_mesh()
597 attr = info->attrs[BATADV_ATTR_NETWORK_CODING_ENABLED]; in batadv_netlink_set_mesh()
599 atomic_set(&bat_priv->network_coding, !!nla_get_u8(attr)); in batadv_netlink_set_mesh()
607 attr = info->attrs[BATADV_ATTR_ORIG_INTERVAL]; in batadv_netlink_set_mesh()
608 orig_interval = nla_get_u32(attr); in batadv_netlink_set_mesh()
930 struct nlattr *attr; in batadv_netlink_set_hardif() local
933 attr = info->attrs[BATADV_ATTR_HOP_PENALTY]; in batadv_netlink_set_hardif()
935 atomic_set(&hard_iface->hop_penalty, nla_get_u8(attr)); in batadv_netlink_set_hardif()
941 attr = info->attrs[BATADV_ATTR_ELP_INTERVAL]; in batadv_netlink_set_hardif()
943 atomic_set(&hard_iface->bat_v.elp_interval, nla_get_u32(attr)); in batadv_netlink_set_hardif()
947 attr = info->attrs[BATADV_ATTR_THROUGHPUT_OVERRIDE]; in batadv_netlink_set_hardif()
950 nla_get_u32(attr)); in batadv_netlink_set_hardif()
1141 struct nlattr *attr; in batadv_netlink_set_vlan() local
1144 attr = info->attrs[BATADV_ATTR_AP_ISOLATION_ENABLED]; in batadv_netlink_set_vlan()
1146 atomic_set(&vlan->ap_isolation, !!nla_get_u8(attr)); in batadv_netlink_set_vlan()