1 /* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance with the License. 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9 * or http://www.opensolaris.org/os/licensing. 10 * See the License for the specific language governing permissions 11 * and limitations under the License. 12 * 13 * When distributing Covered Code, include this CDDL HEADER in each 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15 * If applicable, add the following below this CDDL HEADER, with the 16 * fields enclosed by brackets "[]" replaced with your own identifying 17 * information: Portions Copyright [yyyy] [name of copyright owner] 18 * 19 * CDDL HEADER END 20 */ 21 22 /* 23 * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 24 * Use is subject to license terms. 25 */ 26 27 #ifndef _VARIABLES_H 28 #define _VARIABLES_H 29 30 #include <libdlwlan.h> 31 #include <sys/zone.h> 32 33 extern struct np_event *equeue; 34 35 extern pthread_mutex_t machine_lock; 36 extern pthread_mutex_t queue_mutex; 37 extern pthread_cond_t queue_cond; 38 extern pthread_t routing, scan; 39 40 extern llp_t *link_layer_profile; 41 42 extern sigset_t original_sigmask; 43 extern pid_t ppid; 44 45 extern boolean_t shutting_down; 46 47 extern uint32_t timer_expire; 48 49 extern uint_t wlan_scan_interval; 50 extern dladm_wlan_strength_t wireless_scan_level; 51 extern boolean_t strict_bssid; 52 53 extern uint_t door_idle_time; 54 55 extern const char *OUR_FMRI; 56 extern const char *OUR_PG; 57 58 extern boolean_t debug; 59 60 extern char zonename[ZONENAME_MAX]; 61 62 /* 63 * This dladm handle is opened before interfaces are initialized and 64 * closed only when nwamd shuts down. 65 */ 66 extern dladm_handle_t dld_handle; 67 68 #endif /* _VARIABLES_H */ 69