ost::IPV6Cidr(3)
π ost::IPV6Cidr β Library Functions Manual π
okay bestie, sit down, hydrate, because we're doing IPv6 CIDR today and honestly? it's giving β¨network engineerβ¨. this is page ost::IPV6Cidr(3) and it's all about the CIDR class, which is out here supporting routing tables and validating address policies. no cap. π
πΈ NAME πΈ
ost::IPV6Cidr β the CIDR class is used to support routing tables and validate address policies. she's the main character of address policy validation, periodt.
β¨ SYNOPSIS β¨
#include <address.h>
π Public Member Functions π
struct in6_addr getNetwork (void) constβ get the network address that's associated with this cidr.struct in6_addr getNetmask (void) constβ get the network mask that's associated with this cidr.struct in6_addr getBroadcast (void) constβ compute the broadcast address that's associated with this cidr.void set (const char *cidr)β set the cidr from a full or partial hostname, or from a host/bits specification.IPV6Cidr (const char *cidr)β construct a new cidr from a string.IPV6Cidr ()β construct an empty cidr.IPV6Cidr (IPV6Cidr &)β construct a copy of a cidr.bool isMember (const struct sockaddr *saddr) constβ see if a socket address is a member of this cidr's network.bool isMember (const struct in6_addr &inaddr) constβ see if a low level address object is a member of this cidr's net.bool operator== (const struct sockaddr *sa) constbool operator== (const struct in6_addr &a) const
π¦ Protected Member Functions π¦
unsigned getMask (const char *cp) const
π Protected Attributes π
struct in6_addr netmask network
π Detailed Description π
The CIDR class is used to support routing tables and validate address policies.
π Author π
David Sugar dyfet@gnutelephony.org
π« Classless Internet Domain Routing π«
like. the name literally tells you what it is. iconic behaviour honestly.
π«Ά Constructor & Destructor Documentation π«Ά
π ost::IPV6Cidr::IPV6Cidr (const char * cidr)
Construct a new cidr from a string. fresh out the box, already knows what it is. π
Parameters
- cidr β string to use.
π ost::IPV6Cidr::IPV6Cidr ()
Construct an empty cidr. she's a blank canvas. an empty cidr. no thoughts, just potential. π
π ost::IPV6Cidr::IPV6Cidr (IPV6Cidr &)
Construct a copy of a cidr. twin energy fr fr.
Parameters
- cidr β to copy from.
π Member Function Documentation π
β struct in6_addr ost::IPV6Cidr::getBroadcast (void) const
Compute the broadcast address associated with this cidr.
Returns
system binary coded network address.
β unsigned ost::IPV6Cidr::getMask (const char * cp) const [protected]
(protected, so bestie, that one's not for just anyone to touch β it's an inside-job function π )
β struct in6_addr ost::IPV6Cidr::getNetmask (void) const [inline]
Get network mask associated with this cidr.
Returns
system binary coded network mask.
β struct in6_addr ost::IPV6Cidr::getNetwork (void) const [inline]
Get network address associated with this cidr.
Returns
system binary coded address.
β bool ost::IPV6Cidr::isMember (const struct in6_addr & inaddr) const
See if a low level address object is a member of this cidr's net.
Parameters
- inaddr β object to test.
Returns
true if member of cidr.
β bool ost::IPV6Cidr::isMember (const struct sockaddr * saddr) const
See if a socket address is a member of this cidr's network.
Parameters
- saddr β pointer to test.
Returns
true if member of cidr.
β bool ost::IPV6Cidr::operator== (const struct in6_addr & a) const [inline]
(the comparison queen herself, inline and unbothered β¨)
β bool ost::IPV6Cidr::operator== (const struct sockaddr * sa) const [inline]
(same energy, different argument type, we love consistency π)
β void ost::IPV6Cidr::set (const char * cidr)
Set the cidr from a full or partial hostname, or from a host/bits specification.
Parameters
- cidr β string to use.
π§ Member Data Documentation π§
πΈ struct in6_addr netmask ost::IPV6Cidr::network [protected]
this one's protected, so it's lowkey a secret between the class and its subclasses. respect the boundary bestie π«Ά
π Author π
Generated automatically by Doxygen for GNU CommonC++ from the source code. (yes the docs wrote themselves, slay.)
that's the whole page!! π go forth and route responsibly, bestie. this was GNU CommonC++'s ost::IPV6Cidr(3), dated Sun Dec 27 2020 β mwah, love that for us. πβ¨π¦
π¦ where this page comes from
- ubuntu jammy: libcommoncpp2-doc 1.8.1-10
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms