util.hpp (8060c0dab000f50c2a69f4103e6c41344ed35c82) util.hpp (e94c9ffcc639f6280972bb28b26bb357b830491f)
1#pragma once
2
3#include "config.h"
4
5#include "ethernet_interface.hpp"
6#include "types.hpp"
7
8#include <netinet/ether.h>

--- 124 unchanged lines hidden (view full) ---

133 * @param[in] config - The parsed configuration.
134 */
135struct DHCPVal
136{
137 bool v4, v6;
138};
139DHCPVal getDHCPValue(const config::Parser& config);
140
1#pragma once
2
3#include "config.h"
4
5#include "ethernet_interface.hpp"
6#include "types.hpp"
7
8#include <netinet/ether.h>

--- 124 unchanged lines hidden (view full) ---

133 * @param[in] config - The parsed configuration.
134 */
135struct DHCPVal
136{
137 bool v4, v6;
138};
139DHCPVal getDHCPValue(const config::Parser& config);
140
141/** @brief Read a boolean DHCP property from a conf file
142 * @param[in] config - The parsed configuration.
143 * @param[in] key - The property name.
144 */
145bool getDHCPProp(const config::Parser& config, std::string_view key);
146
141namespace internal
142{
143
144/* @brief runs the given command in child process.
145 * @param[in] path - path of the binary file which needs to be execeuted.
146 * @param[in] args - arguments of the command.
147 */
148void executeCommandinChildProcess(const char* path, char** args);

--- 29 unchanged lines hidden ---
147namespace internal
148{
149
150/* @brief runs the given command in child process.
151 * @param[in] path - path of the binary file which needs to be execeuted.
152 * @param[in] args - arguments of the command.
153 */
154void executeCommandinChildProcess(const char* path, char** args);

--- 29 unchanged lines hidden ---