TraveSim Adapters  0.1
Protobuf adapters for TraveSim project
configurers_utils.cpp File Reference

Configurers utilitary funtions. More...

Include dependency graph for configurers_utils.cpp:

Go to the source code of this file.

Namespaces

 travesim
 

Macros

#define IPV4_NUM_OF_BYTES   4U
 

Functions

bool travesim::ipv4_string_to_uint (std::string ip_string, uint *ip_uint)
 Converts a IPv4 in a string to a array of unsigned integers, where the most significant byte of the IP address is in the position 0 and the last significant in the position 3. More...
 
IPValidation travesim::check_valid_ip (std::string ip, std::string min_ip, std::string max_ip)
 Checks if a IP is valid and is in the specified range. More...
 
std::string travesim::get_error_msg (IPValidation error)
 Get the error msg based on the validation type. More...
 

Detailed Description

Configurers utilitary funtions.

Author
Lucas Haug lucas.nosp@m..hau.nosp@m.g@thu.nosp@m.nera.nosp@m.tz.or.nosp@m.g
Date
06/2021

Definition in file configurers_utils.cpp.

Macro Definition Documentation

◆ IPV4_NUM_OF_BYTES

#define IPV4_NUM_OF_BYTES   4U

Definition at line 20 of file configurers_utils.cpp.