ost::IPV6Cidr(3)

πŸ“¦ version 1.8.1, in ubuntu jammy

πŸ’– 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) const
  • bool 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