| /* |
| * Copyright (c) 2019, The OpenThread Authors. |
| * All rights reserved. |
| * |
| * Redistribution and use in source and binary forms, with or without |
| * modification, are permitted provided that the following conditions are met: |
| * 1. Redistributions of source code must retain the above copyright |
| * notice, this list of conditions and the following disclaimer. |
| * 2. Redistributions in binary form must reproduce the above copyright |
| * notice, this list of conditions and the following disclaimer in the |
| * documentation and/or other materials provided with the distribution. |
| * 3. Neither the name of the copyright holder nor the |
| * names of its contributors may be used to endorse or promote products |
| * derived from this software without specific prior written permission. |
| * |
| * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
| * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
| * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE |
| * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
| * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
| * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
| * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
| * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
| * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
| * POSSIBILITY OF SUCH DAMAGE. |
| */ |
| |
| /** |
| * @file |
| * This file includes compile-time configurations for the DNS Client. |
| * |
| */ |
| |
| #ifndef CONFIG_ANNOUNCE_SENDER_H_ |
| #define CONFIG_ANNOUNCE_SENDER_H_ |
| |
| /** |
| * @def OPENTHREAD_CONFIG_ANNOUNCE_SENDER_ENABLE |
| * |
| * Define as 1 to enable `AnnounceSender` which will periodically send MLE Announce message on all channels. |
| * |
| * The list of channels is determined from the Operational Dataset's ChannelMask. The period intervals are determined |
| * by `OPENTHREAD_CONFIG_ANNOUNCE_SENDER_INTERVAL_ROUTER` and `OPENTHREAD_CONFIG_ANNOUNCE_SENDER_INTERVAL_REED` |
| * configuration options. |
| * |
| */ |
| #ifndef OPENTHREAD_CONFIG_ANNOUNCE_SENDER_ENABLE |
| #define OPENTHREAD_CONFIG_ANNOUNCE_SENDER_ENABLE 0 |
| #endif |
| |
| /** |
| * @def OPENTHREAD_CONFIG_ANNOUNCE_SENDER_INTERVAL_ROUTER |
| * |
| * Specifies the time interval (in milliseconds) between `AnnounceSender` transmit cycles on a device in Router role. |
| * |
| * In a cycle, the `AnnounceSender` sends MLE Announcement on all channels in Active Operational Dataset's ChannelMask. |
| * The transmissions on different channels happen uniformly over the given interval (i.e., if there are 16 channels, |
| * there will be 16 MLE Announcement messages each on one channel with `interval / 16` between two consecutive MLE |
| * Announcement transmissions). |
| * |
| * Applicable only if `AnnounceSender` feature is enabled (see `OPENTHREAD_CONFIG_ANNOUNCE_SENDER_ENABLE`). |
| * |
| */ |
| #ifndef OPENTHREAD_CONFIG_ANNOUNCE_SENDER_INTERVAL_ROUTER |
| #define OPENTHREAD_CONFIG_ANNOUNCE_SENDER_INTERVAL_ROUTER 688000 // 668 seconds = 11 min and 28 sec. |
| #endif |
| |
| /** |
| * @def OPENTHREAD_CONFIG_ANNOUNCE_SENDER_INTERVAL_REED |
| * |
| * Specifies the time interval (in milliseconds) between `AnnounceSender` transmit cycles on a device in REED role. |
| * |
| * This is similar to `OPENTHREAD_CONFIG_ANNOUNCE_SENDER_INTERVAL_ROUTER` but used when device is in REED role. |
| * |
| * Applicable only if `AnnounceSender` feature is enabled (see `OPENTHREAD_CONFIG_ANNOUNCE_SENDER_ENABLE`). |
| * |
| */ |
| #ifndef OPENTHREAD_CONFIG_ANNOUNCE_SENDER_INTERVAL_REED |
| #define OPENTHREAD_CONFIG_ANNOUNCE_SENDER_INTERVAL_REED (668000 * 3) |
| #endif |
| |
| #endif // CONFIG_ANNOUNCE_SENDER_H_ |