DESERT 3.5.1
Loading...
Searching...
No Matches
IP_range Struct Reference

#include <uwmulti-destination.h>

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
 

Detailed Description

Definition at line 53 of file uwmulti-destination.h.

Constructor & Destructor Documentation

◆ IP_range()

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

Definition at line 58 of file uwmulti-destination.h.

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

Definition at line 91 of file uwmulti-destination.h.

◆ 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

Definition at line 81 of file uwmulti-destination.h.

◆ 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

Definition at line 70 of file uwmulti-destination.h.

Member Data Documentation

◆ max_IP

int IP_range::max_IP

Maximum IP address of the range.

Definition at line 56 of file uwmulti-destination.h.

◆ min_IP

int IP_range::min_IP

Minimum IP address of the range.

Definition at line 55 of file uwmulti-destination.h.


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