OpenVPN 3 Core Library
|
Route class that must use canonical form. More...
#include <capture.hpp>
Public Member Functions | |
void | validate (const std::string &title) const |
Validates the route. | |
![]() | |
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 class that must use canonical form.
Extends RouteBase to represent a route that must be in canonical form.
Definition at line 312 of file capture.hpp.
|
inline |
Validates the route.
Performs validation using true
for the canonical parameter, requiring canonical form.
title | A string identifier used in validation messages. |
Definition at line 320 of file capture.hpp.