1/* 2 * Copyright (c) 2003-2013 Apple Inc. All rights reserved. 3 * 4 * @APPLE_LICENSE_HEADER_START@ 5 * 6 * This file contains Original Code and/or Modifications of Original Code 7 * as defined in and that are subject to the Apple Public Source License 8 * Version 2.0 (the 'License'). You may not use this file except in 9 * compliance with the License. Please obtain a copy of the License at 10 * http://www.opensource.apple.com/apsl/ and read it before using this 11 * file. 12 * 13 * The Original Code and all software distributed under the License are 14 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER 15 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, 16 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, 17 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. 18 * Please see the License for the specific language governing rights and 19 * limitations under the License. 20 * 21 * @APPLE_LICENSE_HEADER_END@ 22 */ 23 24#ifndef _S_GLOBALS_H 25#define _S_GLOBALS_H 26#include <mach/boolean.h> 27#include <stdint.h> 28#include "timer.h" 29 30extern uint16_t G_client_port; 31extern boolean_t G_dhcp_accepts_bootp; 32extern boolean_t G_dhcp_failure_configures_linklocal; 33extern boolean_t G_dhcp_success_deconfigures_linklocal; 34extern int G_dhcp_init_reboot_retry_count; 35extern int G_dhcp_select_retry_count; 36extern int G_dhcp_allocate_linklocal_at_retry_count; 37extern int G_dhcp_router_arp_at_retry_count; 38extern uint16_t G_server_port; 39extern int G_gather_secs; 40extern int G_initial_wait_secs; 41extern int G_max_wait_secs; 42extern int G_gather_secs; 43extern int G_link_inactive_secs; 44extern int G_max_retries; 45extern boolean_t G_must_broadcast; 46extern Boolean G_IPConfiguration_verbose; 47extern boolean_t G_router_arp; 48extern int G_router_arp_wifi_lease_start_threshold_secs; 49extern int G_dhcp_defend_ip_address_interval_secs; 50extern int G_dhcp_defend_ip_address_count; 51extern int G_dhcp_lease_write_t1_threshold_secs; 52extern int G_manual_conflict_retry_interval_secs; 53extern boolean_t G_dhcpv6_enabled; 54extern boolean_t G_dhcpv6_stateful_enabled; 55extern int G_dhcp_duid_type; 56extern boolean_t G_is_netboot; 57extern int G_min_short_wake_interval_secs; 58extern int G_min_wake_interval_secs; 59extern int G_wake_skew_secs; 60 61extern const unsigned char G_rfc_magic[4]; 62extern const struct in_addr G_ip_broadcast; 63extern const struct in_addr G_ip_zeroes; 64 65#include "ipconfigd_globals.h" 66 67#endif /* _S_GLOBALS_H */ 68