Lines Matching refs:scratch

260 			if ((ctx->scratch->ptr1 = malloc(IFNAMSIZ)) == NULL)  in op_wlan_iface()
262 strlcpy(ctx->scratch->ptr1, wif->wname, IFNAMSIZ); in op_wlan_iface()
271 if ((ctx->scratch->ptr1 = malloc(IFNAMSIZ)) == NULL) in op_wlan_iface()
273 strlcpy(ctx->scratch->ptr1, wif->pname, IFNAMSIZ); in op_wlan_iface()
280 ctx->scratch->int1 = wif->mode; in op_wlan_iface()
287 ctx->scratch->ptr1 = malloc(sizeof(wif->flags)); in op_wlan_iface()
288 if (ctx->scratch->ptr1 == NULL) in op_wlan_iface()
290 memcpy(ctx->scratch->ptr1, (uint8_t *)&wif->flags, in op_wlan_iface()
299 ctx->scratch->ptr1 = malloc(IEEE80211_ADDR_LEN); in op_wlan_iface()
300 if (ctx->scratch->ptr1 == NULL) in op_wlan_iface()
302 memcpy(ctx->scratch->ptr1, wif->dbssid, in op_wlan_iface()
311 ctx->scratch->ptr1 = malloc(IEEE80211_ADDR_LEN); in op_wlan_iface()
312 if (ctx->scratch->ptr1 == NULL) in op_wlan_iface()
314 memcpy(ctx->scratch->ptr1, wif->dlmac, in op_wlan_iface()
321 ctx->scratch->int1 = wif->status; in op_wlan_iface()
326 wif->status = ctx->scratch->int1; in op_wlan_iface()
336 ctx->scratch->int1 = wif->state; in op_wlan_iface()
350 strlcpy(wif->wname, ctx->scratch->ptr1, IFNAMSIZ); in op_wlan_iface()
351 free(ctx->scratch->ptr1); in op_wlan_iface()
355 strlcpy(wif->pname, ctx->scratch->ptr1, IFNAMSIZ); in op_wlan_iface()
356 free(ctx->scratch->ptr1); in op_wlan_iface()
360 wif->mode = ctx->scratch->int1; in op_wlan_iface()
364 memcpy((uint8_t *)&wif->flags, ctx->scratch->ptr1, in op_wlan_iface()
366 free(ctx->scratch->ptr1); in op_wlan_iface()
370 memcpy(wif->dbssid, ctx->scratch->ptr1, in op_wlan_iface()
372 free(ctx->scratch->ptr1); in op_wlan_iface()
376 memcpy(wif->dlmac, ctx->scratch->ptr1, in op_wlan_iface()
378 free(ctx->scratch->ptr1); in op_wlan_iface()
382 wif->status = ctx->scratch->int1; in op_wlan_iface()
383 if (ctx->scratch->int1 == RowStatus_active) in op_wlan_iface()
390 wif->state = ctx->scratch->int1; in op_wlan_iface()
405 free(ctx->scratch->ptr1); in op_wlan_iface()
531 ctx->scratch->int1 = wif->packet_burst; in op_wlan_iface_config()
534 ctx->scratch->int1 = wif->reg_domain; in op_wlan_iface_config()
537 ctx->scratch->int1 = wif->desired_channel; in op_wlan_iface_config()
540 ctx->scratch->int1 = wif->dyn_frequency; in op_wlan_iface_config()
543 ctx->scratch->int1 = wif->fast_frames; in op_wlan_iface_config()
546 ctx->scratch->int1 = wif->dturbo; in op_wlan_iface_config()
549 ctx->scratch->int1 = wif->tx_power; in op_wlan_iface_config()
552 ctx->scratch->int1 = wif->frag_threshold; in op_wlan_iface_config()
555 ctx->scratch->int1 = wif->rts_threshold; in op_wlan_iface_config()
558 ctx->scratch->int1 = wif->priv_subscribe; in op_wlan_iface_config()
561 ctx->scratch->int1 = wif->bg_scan; in op_wlan_iface_config()
564 ctx->scratch->int1 = wif->bg_scan_idle; in op_wlan_iface_config()
567 ctx->scratch->int1 = wif->bg_scan_interval; in op_wlan_iface_config()
570 ctx->scratch->int1 = wif->beacons_missed; in op_wlan_iface_config()
573 ctx->scratch->int1 = wif->roam_mode; in op_wlan_iface_config()
576 ctx->scratch->int1 = wif->dot11d; in op_wlan_iface_config()
579 ctx->scratch->int1 = wif->dot11h; in op_wlan_iface_config()
582 ctx->scratch->int1 = wif->dynamic_wds; in op_wlan_iface_config()
585 ctx->scratch->int1 = wif->power_save; in op_wlan_iface_config()
588 ctx->scratch->int1 = wif->ap_bridge; in op_wlan_iface_config()
591 ctx->scratch->int1 = wif->beacon_interval; in op_wlan_iface_config()
594 ctx->scratch->int1 = wif->dtim_period; in op_wlan_iface_config()
597 ctx->scratch->int1 = wif->hide_ssid; in op_wlan_iface_config()
600 ctx->scratch->int1 = wif->inact_process; in op_wlan_iface_config()
603 ctx->scratch->int1 = wif->do11g_protect; in op_wlan_iface_config()
606 ctx->scratch->int1 = wif->dot11g_pure; in op_wlan_iface_config()
609 ctx->scratch->int1 = wif->dot11n_pure; in op_wlan_iface_config()
612 ctx->scratch->int1 = wif->ampdu; in op_wlan_iface_config()
615 ctx->scratch->int1 = wif->ampdu_density; in op_wlan_iface_config()
618 ctx->scratch->int1 = wif->ampdu_limit; in op_wlan_iface_config()
621 ctx->scratch->int1 = wif->amsdu; in op_wlan_iface_config()
624 ctx->scratch->int1 = wif->amsdu_limit; in op_wlan_iface_config()
627 ctx->scratch->int1 = wif->ht_enabled; in op_wlan_iface_config()
630 ctx->scratch->int1 = wif->ht_compatible; in op_wlan_iface_config()
633 ctx->scratch->int1 = wif->ht_prot_mode; in op_wlan_iface_config()
636 ctx->scratch->int1 = wif->rifs; in op_wlan_iface_config()
639 ctx->scratch->int1 = wif->short_gi; in op_wlan_iface_config()
642 ctx->scratch->int1 = wif->smps_mode; in op_wlan_iface_config()
645 ctx->scratch->int1 = wif->tdma_slot; in op_wlan_iface_config()
648 ctx->scratch->int1 = wif->tdma_slot_count; in op_wlan_iface_config()
651 ctx->scratch->int1 = wif->tdma_slot_length; in op_wlan_iface_config()
654 ctx->scratch->int1 = wif->tdma_binterval; in op_wlan_iface_config()
663 ctx->scratch->int1 = val->v.octetstring.len; in op_wlan_iface_config()
664 ctx->scratch->ptr1 = malloc(val->v.octetstring.len + 1); in op_wlan_iface_config()
665 if (ctx->scratch->ptr1 == NULL) in op_wlan_iface_config()
668 strlcpy(ctx->scratch->ptr1, val->v.octetstring.octets, in op_wlan_iface_config()
671 memcpy(ctx->scratch->ptr1, val->v.octetstring.octets, in op_wlan_iface_config()
678 intval = ctx->scratch->int1; in op_wlan_iface_config()
688 strval = ctx->scratch->ptr1; in op_wlan_iface_config()
689 vlen = ctx->scratch->int1; in op_wlan_iface_config()
701 free(ctx->scratch->ptr1); in op_wlan_iface_config()
862 free(ctx->scratch->ptr1); in op_wlan_iface_config()
900 ctx->scratch->int1 = wip->vlan; in op_wlan_if_peer()
911 if (wlan_peer_set_vlan(wif, wip, ctx->scratch->int1) < 0) in op_wlan_if_peer()
1107 ctx->scratch->int1 = txparam->ucastrate; in op_wlan_tx_params()
1111 ctx->scratch->int1 = txparam->mcastrate; in op_wlan_tx_params()
1115 ctx->scratch->int1 = txparam->mgmtrate; in op_wlan_tx_params()
1119 ctx->scratch->int1 = txparam->maxretry; in op_wlan_tx_params()
1138 txparam->ucastrate = ctx->scratch->int1; in op_wlan_tx_params()
1141 txparam->mcastrate = ctx->scratch->int1; in op_wlan_tx_params()
1144 txparam->mgmtrate = ctx->scratch->int1; in op_wlan_tx_params()
1147 txparam->maxretry = ctx->scratch->int1; in op_wlan_tx_params()
1208 ctx->scratch->int1 = wif->scan_flags; in op_wlan_scan_config()
1212 ctx->scratch->int1 = wif->scan_duration; in op_wlan_scan_config()
1216 ctx->scratch->int1 = wif->scan_mindwell; in op_wlan_scan_config()
1220 ctx->scratch->int1 = wif->scan_maxdwell; in op_wlan_scan_config()
1226 ctx->scratch->int1 = wif->scan_status; in op_wlan_scan_config()
1247 wif->scan_flags = ctx->scratch->int1; in op_wlan_scan_config()
1250 wif->scan_duration = ctx->scratch->int1; in op_wlan_scan_config()
1253 wif->scan_mindwell = ctx->scratch->int1; in op_wlan_scan_config()
1256 wif->scan_maxdwell = ctx->scratch->int1; in op_wlan_scan_config()
1259 wif->scan_status = ctx->scratch->int1; in op_wlan_scan_config()
1781 ctx->scratch->int1 = wif->wepmode; in op_wlan_wep_iface()
1784 wif->wepmode = ctx->scratch->int1; in op_wlan_wep_iface()
1792 ctx->scratch->int1 = wif->weptxkey; in op_wlan_wep_iface()
1795 wif->weptxkey = ctx->scratch->int1; in op_wlan_wep_iface()
1812 wif->wepmode = ctx->scratch->int1; in op_wlan_wep_iface()
1817 wif->weptxkey = ctx->scratch->int1; in op_wlan_wep_iface()
1884 ctx->scratch->int1 = wif->mac_policy; in op_wlan_mac_access_control()
1902 wif->mac_policy = ctx->scratch->int1; in op_wlan_mac_access_control()
1919 wif->mac_policy = ctx->scratch->int1; in op_wlan_mac_access_control()
1990 if (ctx->scratch->int1 == RowStatus_destroy && in op_wlan_mac_acl_mac()
2047 ctx->scratch->int1 = wlan_config.mesh_retryto; in op_wlan_mesh_config()
2051 ctx->scratch->int1 = wlan_config.mesh_holdingto; in op_wlan_mesh_config()
2055 ctx->scratch->int1 = wlan_config.mesh_confirmto; in op_wlan_mesh_config()
2059 ctx->scratch->int1 = wlan_config.mesh_maxretries; in op_wlan_mesh_config()
2073 wlan_config.mesh_retryto = ctx->scratch->int1; in op_wlan_mesh_config()
2076 wlan_config.mesh_confirmto = ctx->scratch->int1; in op_wlan_mesh_config()
2079 wlan_config.mesh_holdingto= ctx->scratch->int1; in op_wlan_mesh_config()
2082 wlan_config.mesh_maxretries = ctx->scratch->int1; in op_wlan_mesh_config()
2139 ctx->scratch->ptr1 = malloc(val->v.octetstring.len + 1); in op_wlan_mesh_iface()
2140 if (ctx->scratch->ptr1 == NULL) in op_wlan_mesh_iface()
2142 strlcpy(ctx->scratch->ptr1, wif->desired_ssid, in op_wlan_mesh_iface()
2144 ctx->scratch->int1 = strlen(wif->desired_ssid); in op_wlan_mesh_iface()
2150 ctx->scratch->int1 = wif->mesh_ttl; in op_wlan_mesh_iface()
2154 ctx->scratch->int1 = wif->mesh_peering; in op_wlan_mesh_iface()
2158 ctx->scratch->int1 = wif->mesh_forwarding; in op_wlan_mesh_iface()
2162 ctx->scratch->int1 = wif->mesh_metric; in op_wlan_mesh_iface()
2166 ctx->scratch->int1 = wif->mesh_path; in op_wlan_mesh_iface()
2192 free(ctx->scratch->ptr1); in op_wlan_mesh_iface()
2200 strlcpy(wif->desired_ssid, ctx->scratch->ptr1, in op_wlan_mesh_iface()
2202 free(ctx->scratch->ptr1); in op_wlan_mesh_iface()
2205 wif->mesh_ttl = ctx->scratch->int1; in op_wlan_mesh_iface()
2208 wif->mesh_peering = ctx->scratch->int1; in op_wlan_mesh_iface()
2211 wif->mesh_forwarding = ctx->scratch->int1; in op_wlan_mesh_iface()
2214 wif->mesh_metric = ctx->scratch->int1; in op_wlan_mesh_iface()
2217 wif->mesh_path = ctx->scratch->int1; in op_wlan_mesh_iface()
2387 if (ctx->scratch->int1 == RowStatus_destroy && in op_wlan_mesh_route()
2549 ctx->scratch->int1 = wlan_config.hwmp_inact; in op_wlan_hwmp_config()
2553 ctx->scratch->int1 = wlan_config.hwmp_rannint; in op_wlan_hwmp_config()
2557 ctx->scratch->int1 = wlan_config.hwmp_rootint; in op_wlan_hwmp_config()
2561 ctx->scratch->int1 = wlan_config.hwmp_roottimeout; in op_wlan_hwmp_config()
2565 ctx->scratch->int1 = wlan_config.hwmp_pathlifetime; in op_wlan_hwmp_config()
2569 ctx->scratch->int1 = wlan_config.hwmp_replyforward; in op_wlan_hwmp_config()
2573 ctx->scratch->int1 = wlan_config.hwmp_targetonly; in op_wlan_hwmp_config()
2587 wlan_config.hwmp_inact = ctx->scratch->int1; in op_wlan_hwmp_config()
2590 wlan_config.hwmp_rannint = ctx->scratch->int1; in op_wlan_hwmp_config()
2593 wlan_config.hwmp_rootint = ctx->scratch->int1; in op_wlan_hwmp_config()
2596 wlan_config.hwmp_roottimeout = ctx->scratch->int1; in op_wlan_hwmp_config()
2599 wlan_config.hwmp_pathlifetime = ctx->scratch->int1; in op_wlan_hwmp_config()
2602 wlan_config.hwmp_replyforward = ctx->scratch->int1; in op_wlan_hwmp_config()
2605 wlan_config.hwmp_targetonly = ctx->scratch->int1; in op_wlan_hwmp_config()
2668 ctx->scratch->int1 = wif->hwmp_root_mode; in op_wlan_hwmp_iface()
2672 ctx->scratch->int1 = wif->hwmp_max_hops; in op_wlan_hwmp_iface()
2690 wif->hwmp_root_mode = ctx->scratch->int1; in op_wlan_hwmp_iface()
2693 wif->hwmp_max_hops = ctx->scratch->int1; in op_wlan_hwmp_iface()
4057 ctx->scratch->int1 = RowStatus_active; in wlan_acl_mac_set_status()
4070 ctx->scratch->int1 = RowStatus_destroy; in wlan_acl_mac_set_status()
4077 ctx->scratch->int1 = RowStatus_destroy; in wlan_acl_mac_set_status()
4396 ctx->scratch->int1 = RowStatus_active; in wlan_mesh_route_set_status()
4413 ctx->scratch->int1 = RowStatus_destroy; in wlan_mesh_route_set_status()