#include "net_utils.h"
#include <string.h>
#include <ifaddrs.h>
#include <arpa/inet.h>
#include <unistd.h>
Go to the source code of this file.
Namespaces | |
rc | |
Functions | |
bool | rc::getThisHostsIP (string &this_hosts_ip, const string &other_hosts_ip, const string &network_interface) |
uint32_t | rc::ipToUInt (const std::string &ip) |
Converts a string-represented ip into uint (e.g. More... | |
bool | rc::isIPInRange (const std::string &ip, const std::string &network, const std::string &mask) |
Checks if a given ip is in range of a network defined by ip/subnet taken from: https://www.stev.org/post/ccheckanipaddressisinaipmask. More... | |
bool | rc::isValidIPAddress (const std::string &ip) |
Checks if given string is a valid IP address. More... | |