LibSWOC++ 1.5.14
Solid Wall of C++
Loading...
Searching...
No Matches
swoc::ip Namespace Reference

Internal IP address utilities. More...

Functions

bool is_loopback_host_order (in_addr_t addr)
 
bool is_link_local_host_order (in_addr_t addr)
 
bool is_multicast_host_order (in_addr_t addr)
 
bool is_private_host_order (in_addr_t addr)
 
bool is_loopback_network_order (in6_addr const &addr)
 
bool is_multicast_network_order (in6_addr const &addr)
 
bool is_link_local_network_order (in6_addr const &addr)
 
bool is_private_network_order (in6_addr const &addr)
 
bool is_loopback_network_order (in_addr_t addr)
 
bool is_private_network_order (in_addr_t addr)
 
bool is_link_local_network_order (in_addr_t addr)
 
bool is_multicast_network_order (in_addr_t addr)
 
bool is_loopback (sockaddr const *sa)
 
bool is_multicast (sockaddr const *sa)
 
bool is_link_local (sockaddr const *sa)
 
bool is_private (sockaddr const *sa)
 

Detailed Description

Internal IP address utilities.

Function Documentation

◆ is_link_local()

bool swoc::ip::is_link_local ( sockaddr const * sa)
inline

Check if the IP address in a socket address is link local.

Returns
true if link local, false if not.

Definition at line 131 of file swoc_ip_util.h.

◆ is_link_local_host_order()

bool swoc::ip::is_link_local_host_order ( in_addr_t addr)
inline

Definition at line 32 of file swoc_ip_util.h.

◆ is_link_local_network_order() [1/2]

bool swoc::ip::is_link_local_network_order ( in6_addr const & addr)
inline

Definition at line 60 of file swoc_ip_util.h.

◆ is_link_local_network_order() [2/2]

bool swoc::ip::is_link_local_network_order ( in_addr_t addr)
inline

Definition at line 82 of file swoc_ip_util.h.

◆ is_loopback()

bool swoc::ip::is_loopback ( sockaddr const * sa)
inline

Check if the address in a socket address is a loopback address..

Returns
true if so, false if not.

Definition at line 113 of file swoc_ip_util.h.

◆ is_loopback_host_order()

bool swoc::ip::is_loopback_host_order ( in_addr_t addr)
inline

Definition at line 28 of file swoc_ip_util.h.

◆ is_loopback_network_order() [1/2]

bool swoc::ip::is_loopback_network_order ( in6_addr const & addr)
inline

Definition at line 52 of file swoc_ip_util.h.

◆ is_loopback_network_order() [2/2]

bool swoc::ip::is_loopback_network_order ( in_addr_t addr)
inline

Definition at line 70 of file swoc_ip_util.h.

◆ is_multicast()

bool swoc::ip::is_multicast ( sockaddr const * sa)
inline

Check if the address in a socket address is multicast.

Returns
true if so, false if not.

Definition at line 122 of file swoc_ip_util.h.

◆ is_multicast_host_order()

bool swoc::ip::is_multicast_host_order ( in_addr_t addr)
inline

Definition at line 36 of file swoc_ip_util.h.

◆ is_multicast_network_order() [1/2]

bool swoc::ip::is_multicast_network_order ( in6_addr const & addr)
inline

Definition at line 56 of file swoc_ip_util.h.

◆ is_multicast_network_order() [2/2]

bool swoc::ip::is_multicast_network_order ( in_addr_t addr)
inline

Definition at line 86 of file swoc_ip_util.h.

◆ is_private()

bool swoc::ip::is_private ( sockaddr const * sa)
inline

Check if the IP address in a socket address is private (non-routable)

Returns
true if private, false if not.

Definition at line 140 of file swoc_ip_util.h.

◆ is_private_host_order()

bool swoc::ip::is_private_host_order ( in_addr_t addr)
inline

Definition at line 40 of file swoc_ip_util.h.

◆ is_private_network_order() [1/2]

bool swoc::ip::is_private_network_order ( in6_addr const & addr)
inline

Definition at line 64 of file swoc_ip_util.h.

◆ is_private_network_order() [2/2]

bool swoc::ip::is_private_network_order ( in_addr_t addr)
inline

Definition at line 74 of file swoc_ip_util.h.