SOLA
Loading...
Searching...
No Matches
management_minhton_helper.h
1// Copyright 2023 The SOLA authors
2//
3// This file is part of DAISI.
4//
5// DAISI is free software: you can redistribute it and/or modify it under the terms of the GNU
6// General Public License as published by the Free Software Foundation; version 2.
7//
8// DAISI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
9// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
10// Public License for more details.
11//
12// You should have received a copy of the GNU General Public License along with DAISI. If not, see
13// <https://www.gnu.org/licenses/>.
14//
15// SPDX-License-Identifier: GPL-2.0-only
16
17#ifndef DAISI_SOLA_NS3_MANAGEMENT_MINHTON_HELPER_H_
18#define DAISI_SOLA_NS3_MANAGEMENT_MINHTON_HELPER_H_
19
20#include "SOLA/management_overlay_minhton.h"
21
22namespace daisi::sola_ns3 {
24inline void setJoinIp(sola::ManagementOverlayMinhton::Config &config) {
25 // TODO Do not always join on same (root) node; Ref #83
26 static const std::string ip = "192.168.0.2"; // First AMR - Wifi
27
28 auto info = config.getJoinInfo();
29 info.ip = ip;
30 config.setJoinInfo(info);
31}
32} // namespace daisi::sola_ns3
33
34#endif
Definition config_node.h:30