#ifndef cp2_defs_h #define cp2_defs_h /* Cesar project {{{ * * Copyright (C) 2008 Spidcom * * <<>> * * }}} */ /** * \file cp2/defs.h * \brief Definition for the Control Plane. * \ingroup cp2 */ #define CP_BENTRY_COUNTDOWN_DEFAULT 5 /** CCo level. */ #define CP_CCO_LEVEL 0 /** PCo capability. */ #define CP_PCO_CAP true /** Backup CCo Cap. */ #define CP_BACKUP_CCO_CAP true /** Minimum size of NPW password. */ #define CP_NPW_MIN_SIZE 8 // bytes #define CP_NPW_MAX_SIZE 64 // bytes /** Maximum size of HFID (human-friendly identifier). */ #define CP_HFID_SIZE 64 // bytes /** NMK size. */ #define CP_NMK_SIZE 16 // bytes /** Device password length. */ #define CP_DPW_MIN_SIZE 16 // bytes #define CP_DPW_MAX_SIZE 64 // bytes /** Hash key size. */ #define CP_HASH_KEY_SIZE 384 /** Expiration delay for the station. */ #define CP_STA_EXPIRATION_DELAY_S 70 /** Expiration delay for the networks. */ #define CP_NET_EXPIRATION_DELAY_S 70 /** Discover period in seconds. */ #define CP_DISCOVER_PERIOD_MAX_S 10 /** Max schedules beacon periods. */ #define CP_SCHED_BEACON_PERIODS_MAC 3 #endif /* cp2_defs_h */