OpenVPN 3 Core Library
|
Route address class that may use non-canonical form. More...
#include <capture.hpp>
Public Member Functions | |
void | validate (const std::string &title) const |
Validates the route address. | |
![]() | |
std::string | to_string () const |
Converts the route to a human-readable string. | |
Json::Value | to_json () const |
Serializes the route to a JSON object. | |
void | from_json (const Json::Value &root, const std::string &title) |
Deserializes the route from a JSON object. | |
Additional Inherited Members | |
![]() | |
std::string | address |
unsigned char | prefix_length = 0 |
int | metric = -1 |
std::string | gateway |
bool | ipv6 = false |
bool | net30 = false |
![]() | |
void | validate_ (const std::string &title, const bool require_canonical) const |
Protected validation method used by derived classes. | |
![]() | |
static constexpr int | net30_prefix_length = 30 |
Route address class that may use non-canonical form.
Extends RouteBase to represent a route address that doesn't necessarily need to be in canonical form.
Definition at line 294 of file capture.hpp.
|
inline |
Validates the route address.
Performs validation using false
for the canonical parameter, allowing non-canonical forms.
title | A string identifier used in validation messages. |
Definition at line 302 of file capture.hpp.