DESERT 4.0.0
IP_range Struct Reference

#include <uwmulti-destination.h>

Collaboration diagram for IP_range:
Collaboration graph

Public Member Functions

 IP_range (int min, int max)
 
bool overlappingRange (IP_range range)
 
bool overlappingRange (int min, int max)
 
bool isInRange (int addr)
 

Public Attributes

int min_IP
 
int max_IP
 

Constructor & Destructor Documentation

◆ IP_range()

IP_range::IP_range ( int  min,
int  max 
)
inline

Member Function Documentation

◆ isInRange()

bool IP_range::isInRange ( int  addr)
inline

Check if the given IP addr is in the range

Parameters
addrIP address
Returns
true if the IP address is in the range, false otherwise

References max_IP, and min_IP.

◆ overlappingRange() [1/2]

bool IP_range::overlappingRange ( int  min,
int  max 
)
inline

Return true if the 2 ranges are overlapped

Parameters
minminimum IP address of the range
maxmasimum IP address of the range
Returns
true if the ranges are overlapped

References max_IP, and min_IP.

◆ overlappingRange() [2/2]

bool IP_range::overlappingRange ( IP_range  range)
inline

Return true if the 2 ranges are not overlapped

Parameters
rangeIP range to check
Returns
true if the ranges are not overlapped

References max_IP, min_IP, and overlappingRange().

Referenced by overlappingRange().

Here is the call graph for this function:

Member Data Documentation

◆ max_IP

int IP_range::max_IP

Maximum IP address of the range

Referenced by isInRange(), overlappingRange(), and overlappingRange().

◆ min_IP

int IP_range::min_IP

Minimum IP address of the range

Referenced by isInRange(), overlappingRange(), and overlappingRange().


The documentation for this struct was generated from the following file: