defaults.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // Copyright (C) 2015 Internet Systems Consortium, Inc. ("ISC")
  2. //
  3. // Permission to use, copy, modify, and/or distribute this software for any
  4. // purpose with or without fee is hereby granted, provided that the above
  5. // copyright notice and this permission notice appear in all copies.
  6. //
  7. // THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
  8. // REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  9. // AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
  10. // INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  11. // LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
  12. // OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  13. // PERFORMANCE OF THIS SOFTWARE.
  14. /// @file defaults.h
  15. ///
  16. /// @brief Contains the default values for various parameters.
  17. ///
  18. /// While the content of this file is currently small, it is envisaged that it
  19. /// will grow over time.
  20. #ifndef DEFAULTS_H
  21. #define DEFAULTS_H
  22. #include <stdint.h>
  23. namespace isc {
  24. namespace dhcp {
  25. /// @brief Number of seconds after declined lease recovers
  26. ///
  27. /// This define specifies the default value for decline probation period.
  28. /// Once a lease is declined, it will spend this amount of seconds as
  29. /// being unavailable. This is only the default value. Specific value may
  30. /// be defined in the configuration file. The default is 1 day.
  31. static const uint32_t DEFAULT_DECLINE_PROBATION_PERIOD = 24*3600;
  32. };
  33. };
  34. #endif